Device tree configuration for humidity sensor

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Device tree configuration for humidity sensor

3,332 次查看
devikar
Contributor II

Hi,

We have setup Yocto project 4.9.11_1.0.0 for imx6qpsabresd and need to add device tree configuration for temperature and humidity sensor(si7020).
We have added the following lines in imx6qdl-sabresd.dtsi file and also enabled si7020 as a module in kernel configuration.But it looks like the kernel module is not executing the functions after inserting it, as we are not seeing a print messages of "init/probe" functions.


  adc: si7020@40 {
               compatible = "silabs,si7020";
               reg = <0x40>;
               #io-channel-cells = <1>;
  };

  iio-hwmon {
                  compatible = "iio-hwmon";
                  io-channels = <&adc 0>, <&adc 1>, <&adc 2>;
  };


Can you please let us know about if there is something wrong with this dts?

Thanks,

Devika

标签 (2)
0 项奖励
回复
2 回复数

3,094 次查看
igorpadykov
NXP Employee
NXP Employee

Hi devika

one can look at examples for sensors isl29023, mag3110 and sect.2.8 Sensors attached Linux Manual
https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi?h...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

3,097 次查看
devikar
Contributor II

Hi,

Thanks for the reply.

Now we are able to get the print messages of probe functions as we have enabled si7020 as built-in module in menuconfig.

It was not the problem with dts configuration.

Thanks,

Devika

0 项奖励
回复