Hi,
We have a working script with our environment. We modified our dts and driver to follow the register setting. But after the driver initialization, we don't see the adc working. no clk generated in fysnc pin and the status of register 0x15 is 0xff. Below is my register dump:
adsdev@MMDAQ1:~ $ sudo cat /sys/kernel/debug/regmap/1-004c/registers
000: 00
001: 00
002: 81
003: 00
004: 00
005: 05
006: 00
007: 70
008: 00
009: 00
00a: 00
00b: 00
00c: 01
00d: 02
00e: 03
00f: 04
010: 05
011: 06
012: 07
013: 81
014: 44
015: ff
016: 00
017: 00
018: 00
019: 00
01a: 00
01b: 00
01c: 00
01d: 00
01e: 00
01f: 40
020: 00
021: a0
022: 00
023: 00
024: 00
025: 00
026: 00
027: 00
028: 00
029: 00
02a: 00
02b: 00
02c: 00
02d: 00
02e: 00
02f: 00
030: 00
031: 00
032: 00
033: ff
034: 00
035: 00
036: 00
037: 00
038: 00
039: 00
03a: 00
03b: 60
03c: 00
03d: a0
03e: c9
03f: 80
040: 00
041: 00
042: 00
043: c9
044: 80
045: 00
046: 00
047: 00
048: c9
049: 80
04a: 00
04b: 00
04c: 00
04d: c9
04e: 80
04f: 00
050: 00
051: 00
052: c9
053: 80
054: 00
055: 00
056: 00
057: c9
058: 80
059: 00
05a: 00
05b: 00
05c: c9
05d: 80
05e: 00
05f: 00
060: 00
061: c9
062: 80
063: 00
064: 00
065: 00
066: 00
067: 00
068: 00
069: 00
06a: 00
06b: 01
06c: 40
06d: 7b
06e: 00
06f: 00
070: e7
071: 00
072: 00
073: 80
074: 80
075: e0
076: 00
077: c0
078: 00
079: 00
Below is our working script:
i2cset -y 1 0x4c 0x00 0x00
i2cset -y 1 0x4c 0x01 0x01
sleep 1
i2cset -y 1 0x4c 0x00 0x00
i2cset -y 1 0x4c 0x02 0x81
sleep 1
i2cset -y 1 0x4c 0x07 0x70
#enable pll auto clock//select 12.288Mhz MCLK
i2cset -y 1 0x4c 0x13 0x81
# FS = 44.1/48k BCLK/fsync ratio =64
i2cset -y 1 0x4c 0x14 0x44
i2cset -y 1 0x4c 0x16 0x00
i2cset -y 1 0x4c 0x21 0xA0
i2cset -y 1 0x4c 0x3b 0x60
i2cset -y 1 0x4c 0x73 0x80
i2cset -y 1 0x4c 0x74 0x80
i2cset -y 1 0x4c 0x00 0x00
i2cset -y 1 0x4c 0x75 0xe0
Please help. Thanks.