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
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!
-----------------------------------------------------------------------------------------------------------------------
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