Hi,
I am using am335x in Linux 3.12 SDK7 version., How to enable bmp085 sensor in my kernel tree.
Regards,
Anil
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am using am335x in Linux 3.12 SDK7 version., How to enable bmp085 sensor in my kernel tree.
Regards,
Anil
Hi Anil,
You can reference the modules connected to i2c0 as an example.
Basically you need to create:
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
status = "okay";
clock-frequency = <400000> /*or whatever fits your use case*/
bmp085@<i2c address> {
compatible = "bosch,bmp085";
reg = <i2c address as above>;
status = "okay";
};
};
Best Regards,
Yordan