]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: socfpga: dts: Add adxl34x
authorWalter Lozano <walter@vanguardiasur.com.ar>
Tue, 21 Apr 2015 05:35:53 +0000 (00:35 -0500)
committerDinh Nguyen <dinguyen@opensource.altera.com>
Mon, 11 May 2015 18:14:58 +0000 (13:14 -0500)
This patch adds the DTS bindings for the adxl34x digital
accelerometer.

Signed-off-by: Walter Lozano <walter@vanguardiasur.com.ar>
Acked-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/boot/dts/socfpga_cyclone5_sockit.dts

index 16ea6f5f2ab81092d76697d020ef575610dc8045..71468a7eb28f146b3c96c06b955ebb3444a8d033 100644 (file)
 &usb1 {
        status = "okay";
 };
+
+&gpio2 {
+       status = "okay";
+};
+
+&i2c1{
+       status = "okay";
+
+       accel1: accel1@53{
+               compatible = "adxl34x";
+               reg = <0x53>;
+
+               interrupt-parent = < &portc >;
+               interrupts = <3 2>;
+       };
+};