ARM: nomadik: push accelerometer down to boards
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Jul 2015 00:11:36 +0000 (02:11 +0200)
committerOlof Johansson <olof@lixom.net>
Tue, 11 Aug 2015 13:29:59 +0000 (15:29 +0200)
The two Nomadik variants have the accelerometer mounted on
different I2C lines. Push the definition down to the top-level
board DTS files to get things right.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/ste-nomadik-nhk15.dts
arch/arm/boot/dts/ste-nomadik-s8815.dts
arch/arm/boot/dts/ste-nomadik-stn8815.dtsi

index 9d888b0..4a21c64 100644 (file)
        };
 
        i2c0 {
+               lis3lv02dl@1d {
+                       /* Accelerometer */
+                       compatible = "st,lis3lv02dl-accel";
+                       reg = <0x1d>;
+               };
                stmpe0: stmpe2401@43 {
                        compatible = "st,stmpe2401";
                        reg = <0x43>;
index 11b5e34..35282c0 100644 (file)
                };
        };
 
+       i2c1 {
+               lis3lv02dl@1d {
+                       /* Accelerometer */
+                       compatible = "st,lis3lv02dl-accel";
+                       reg = <0x1d>;
+               };
+       };
+
        /* GPIO I2C connected to the USB portions of the STw4811 only */
        gpio-i2c {
                compatible = "i2c-gpio";
index ce8936b..176e332 100644 (file)
                           compatible = "st,stw5095";
                           reg = <0x1a>;
                };
-               lis3lv02dl@1d {
-                       /* Accelerometer */
-                       compatible = "st,lis3lv02dl-accel";
-                       reg = <0x1d>;
-               };
        };
 
        amba {