Other Parts Discussed in Thread: TPS659037
我们有一个基于 AM57xx GPEVM 的定制板。 我们使用 TPS659037。 在电路板上、我们希望使用 TPS659037上的 GPADC 通道来读取一些电压。 如果我观察 TPS659037上的 GPADC_IN2、我会看到它的读数约为880mV。
在我的 DTS 文件中、我启用了 gpadc、正如 omap5-board-common.dtsi 中所示:
root@rev1:/sys/devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-0058/48070000.i2c:tps659038@58:tps659038_gpadc/IIO:device0# ls
dev in_voltage0_raw in_voltage14_raw in_voltage4_raw in_voltage7_raw of _node
in_temp12_raw in_voltage10_input in_voltage15_input in_voltage5_input in_voltage8_input power
in_temp13_raw in_voltage10_raw in_voltage15_raw in_voltage5_raw in_voltage8_raw 子系统
in_temp1_raw in_voltage11_input in_voltage2_input in_voltage6_input in_voltage9_input uevent
in_temp3_raw in_voltage11_raw in_voltage2_raw in_voltage6_raw in_voltage9_raw
in_voltage0_input in_voltage14_input in_voltage4_input in_voltage7_input name
root@rev1:/sys/devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-0058/48070000.i2c:tps659038@58:tps659038_gpadc/IIO:device0# cat in_voltage5_raw
7.
root@rev1:/sys/devices/platform/44000000.ocp/48070000.i2c/i2c-0/0-0058/48070000.i2c:tps659038@58:tps659038_gpadc/IIO:device0# cat in_voltage5_input
0