Device tree configuration for humidity sensor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Device tree configuration for humidity sensor

1,793 Views
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

Labels (2)
0 Kudos
2 Replies

1,557 Views
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 Kudos

1,560 Views
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 Kudos