diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-02-11 12:07:12 -0500 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-02-11 14:35:30 -0500 |
commit | 29e74f8bd71e70f5fe97685ba2cdf12b78791883 (patch) | |
tree | 943450f92d5c90845a83c76c2d2a3d4c5d11d617 /arch/arm/boot/dts/armada-370-rd.dts | |
parent | 934b524b3f499954c83f248afdddaa0f62b59657 (diff) |
ARM: mvebu: use GPIO DT defines in Armada 370/XP boards
Instead of harcoding 0 and 1 for the gpio specifications in the Armada
370/XP boards, use the <dt-bindings/gpio/gpio.h> header file and its
GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW definitions.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/boot/dts/armada-370-rd.dts')
-rw-r--r-- | arch/arm/boot/dts/armada-370-rd.dts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts index abbb807459d2..c28865d2d7da 100644 --- a/arch/arm/boot/dts/armada-370-rd.dts +++ b/arch/arm/boot/dts/armada-370-rd.dts | |||
@@ -12,6 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | /dts-v1/; | 14 | /dts-v1/; |
15 | #include <dt-bindings/gpio/gpio.h> | ||
15 | #include "armada-370.dtsi" | 16 | #include "armada-370.dtsi" |
16 | 17 | ||
17 | / { | 18 | / { |
@@ -101,7 +102,7 @@ | |||
101 | button@1 { | 102 | button@1 { |
102 | label = "Software Button"; | 103 | label = "Software Button"; |
103 | linux,code = <116>; | 104 | linux,code = <116>; |
104 | gpios = <&gpio0 6 1>; | 105 | gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
105 | }; | 106 | }; |
106 | }; | 107 | }; |
107 | 108 | ||