Commit 2a934742 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Jason Cooper
Browse files

ARM: orion5x: use existing dt-bindings include for Device Tree files



The orion5x-lacie-ethernet-disk-mini-v2.dts can benefit from using
gpio.h and input.h dt-bindings headers to replace hardcoded values by
more meaningful macros.

Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1398202002-28530-13-git-send-email-thomas.petazzoni@free-electrons.com


Acked-by: default avatarSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 48be9707
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -8,6 +8,8 @@

/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "orion5x.dtsi"

/ {
@@ -40,8 +42,8 @@
		#size-cells = <0>;
		button@1 {
			label = "Power-on Switch";
			linux,code = <116>; /* KEY_POWER */
			gpios = <&gpio0 18 0>;
			linux,code = <KEY_POWER>;
			gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
		};
	};

@@ -50,7 +52,7 @@

		led@1 {
			label = "power:blue";
			gpios = <&gpio0 16 1>;
			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
		};
	};
};