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.

Including in kernel tree with i2c1 based bmp085 sensor

Hi,

I am using am335x in Linux 3.12 SDK7 version., How to enable bmp085 sensor in my kernel tree.

Regards,

Anil

  • Hi,

    I will forward this to the SW team.
  • 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