This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMP112: 传感器论坛

Part Number: TMP112
Other Parts Discussed in Thread: LM75SW-LINUX, TMP102

为了能够在Linux中读取TMP112的数据,我根据官网tmp112的页面在linux的内核配置上了LM75SW-LINUX驱动:

 Device Drivers ---> 
<*> Hardware Monitoring support --->
<*> National Semiconductor LM75
and compatibles

并在设备树下添加了以下内容:

&i2c1 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
status = "okay";

tmp112@48{
compatible = "ti,tmp112";
reg = <0x48>;
status = "okay";
};
};
搭建实验环境后,将tmp112 ADD0接地,根据数据表此时它的设备地址应为0x48,与设备树相符
我希望读取 /sys/bus/i2c/devices/0-0048/temp1_input 的内容,即温度数据

然而在/sys/bus/i2c/devices/0-0048/目录下没有temp1_input ,请问这是为什么? 是数据接口的路径找错了吗?
还需要哪些配置才能在linux上找到tmp112的数据接口?
如果有类似的教程的话感激不尽,谢谢!