]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: overo: Add LIS33DE accelerometer
authorFlorian Vaussard <florian.vaussard@epfl.ch>
Tue, 11 Mar 2014 12:20:30 +0000 (13:20 +0100)
committerTony Lindgren <tony@atomide.com>
Wed, 12 Mar 2014 17:21:12 +0000 (10:21 -0700)
The LIS33DE accelerometer is used on several Gumstix expansion boards,
thus add the DT node to omap3-overo-common-peripherals.dtsi.

For the boards that do not have the accelerometer (like Tobi), mark the
status as disabled.

Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-overo-common-peripherals.dtsi
arch/arm/boot/dts/omap3-overo-tobi-common.dtsi

index bca81ae0e64656ced8d411587f43bdf658adbeda..5831bcc529660bd9581d462bf3cbf928e9e9a49f 100644 (file)
  * Peripherals common to all Gumstix Overo boards (Tobi, Summit, Palo43,...)
  */
 
+/ {
+       lis33_3v3: lis33-3v3-reg {
+               compatible = "regulator-fixed";
+               regulator-name = "lis33-3v3-reg";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+       };
+
+       lis33_1v8: lis33-1v8-reg {
+               compatible = "regulator-fixed";
+               regulator-name = "lis33-1v8-reg";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+       };
+};
+
 &omap3_pmx_core {
        i2c3_pins: pinmux_i2c3_pins {
                pinctrl-single,pins = <
                reg = <0x51>;
                pagesize = <8>;
        };
+
+       lis33de: lis33de@1d {
+               compatible = "st,lis33de", "st,lis3lv02d";
+               reg = <0x1d>;
+               Vdd-supply = <&lis33_1v8>;
+               Vdd_IO-supply = <&lis33_3v3>;
+
+               st,click-single-x;
+               st,click-single-y;
+               st,click-single-z;
+               st,click-thresh-x = <10>;
+               st,click-thresh-y = <10>;
+               st,click-thresh-z = <10>;
+               st,irq1-click;
+               st,irq2-click;
+               st,wakeup-x-lo;
+               st,wakeup-x-hi;
+               st,wakeup-y-lo;
+               st,wakeup-y-hi;
+               st,wakeup-z-lo;
+               st,wakeup-z-hi;
+               st,min-limit-x = <120>;
+               st,min-limit-y = <120>;
+               st,min-limit-z = <140>;
+               st,max-limit-x = <550>;
+               st,max-limit-y = <550>;
+               st,max-limit-z = <750>;
+       };
 };
 
 &mmc3 {
index 060eb7710870c80a7ea9f88a02e34ce9995f04f4..13df50b394423c11a67319e15374f9edc7a86259 100644 (file)
@@ -35,3 +35,7 @@
        };
 };
 
+&lis33de {
+       status = "disabled";
+};
+