Why does Linux Kernel not apply ST-sensor driver to pressure sensor?
I connected an external sensor via i2c and modified the device tree dk2 with following addition:
&i2c5 {
status = "okay";
clock-frequency = <100000>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c5_pins_a>;
pinctrl-1 = <&i2c5_pins_sleep_a>;
pressure@5c{
compatible = "st,lps22hb-press";
reg = <0x5c>;
vdd-supply = <&v3v3>;
};
I am able to see the sensor on the correct address in the register but the kernel doesnt seem to recognize it as a st pressure sensor. Its also not shown in the list of iio.
I also modified the device tree dk1 like this:
&i2c5 {
status = "okay";
clock-frequency = <100000>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c5_pins_a>;
pinctrl-1 = <&i2c5_pins_sleep_a>;
}the sensor is the correct one btw.
edit:
I also checked in the config that ST-sensor-Drivers are activated before building.
