Device tree configuration for humidity sensor

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Device tree configuration for humidity sensor

1,990件の閲覧回数
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 返答(返信)

1,754件の閲覧回数
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 件の賞賛
返信

1,757件の閲覧回数
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 件の賞賛
返信