ARM: socfpga: dts: Fix adxl34x formating and compatible string
authorWalter Lozano <walter@vanguardiasur.com.ar>
Fri, 26 Jun 2015 02:25:57 +0000 (02:25 +0000)
committerDinh Nguyen <dinguyen@opensource.altera.com>
Tue, 7 Jul 2015 13:54:20 +0000 (08:54 -0500)
This patch fixes the formating of DTS bindings for the adxl34x digital
accelerometer, and updates the compatible string after the deprecation
of "adxl345x" compatible string.

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 71468a7eb28f146b3c96c06b955ebb3444a8d033..1ae60822335428fa848be2aef24f9754731bfd29 100644 (file)
        status = "okay";
 };
 
-&i2c1{
+&i2c1 {
        status = "okay";
 
-       accel1: accel1@53{
-               compatible = "adxl34x";
+       accel1: accelerometer@53 {
+               compatible = "adi,adxl345";
                reg = <0x53>;
 
-               interrupt-parent = < &portc >;
+               interrupt-parent = <&portc>;
                interrupts = <3 2>;
        };
 };