From: Walter Lozano Date: Tue, 21 Apr 2015 05:35:53 +0000 (-0500) Subject: ARM: socfpga: dts: Add adxl34x X-Git-Tag: v4.2-rc1~99^2~49^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bf513bf04660321eb6181082def79ee1fd93b48f;p=karo-tx-linux.git ARM: socfpga: dts: Add adxl34x This patch adds the DTS bindings for the adxl34x digital accelerometer. Signed-off-by: Walter Lozano Acked-by: Steffen Trumtrar Signed-off-by: Dinh Nguyen --- diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts index 16ea6f5f2ab8..71468a7eb28f 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts +++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts @@ -68,3 +68,19 @@ &usb1 { status = "okay"; }; + +&gpio2 { + status = "okay"; +}; + +&i2c1{ + status = "okay"; + + accel1: accel1@53{ + compatible = "adxl34x"; + reg = <0x53>; + + interrupt-parent = < &portc >; + interrupts = <3 2>; + }; +};