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 9d888b0e75af3c59aeb2acd8fb13e7a72fe0a741..4a21c6492dbb89b386bb4ab365b9b10a16f4a72f 100644 (file)
        };
 
        i2c0 {
+               lis3lv02dl@1d {
+                       /* Accelerometer */
+                       compatible = "st,lis3lv02dl-accel";
+                       reg = <0x1d>;
+               };
                stmpe0: stmpe2401@43 {
                        compatible = "st,stmpe2401";
                        reg = <0x43>;
index 11b5e34150b835d002e473a49a75ba49e867ed78..35282c0105c6a1de01b80371b77e98aa82cfadf1 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 ce8936bebe5e7a24e5c83e4d060d0d8dc5142dd3..176e332fc0bd6b48843f2dd3dfaa5a488c7260b2 100644 (file)
                           compatible = "st,stw5095";
                           reg = <0x1a>;
                };
-               lis3lv02dl@1d {
-                       /* Accelerometer */
-                       compatible = "st,lis3lv02dl-accel";
-                       reg = <0x1d>;
-               };
        };
 
        amba {