diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-12-16 16:59:55 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-01-21 03:58:56 -0500 |
commit | bca12924f09dc03f2bda3b3e39408fee920a343b (patch) | |
tree | 4d523b55a8db22235de423887ce2092bb19e467e /arch/arm/boot/dts/sun5i-a13-olinuxino.dts | |
parent | 7145570159fb20654b507026a8e388f739fffa5c (diff) |
ARM: sunxi: DT: convert DTs to use common GPIOs includes
Replace the various raw GPIO flags by their definition in the common
dt-bindings header.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun5i-a13-olinuxino.dts')
-rw-r--r-- | arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts index 529ff27dbb9f..e28a0765429a 100644 --- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts | |||
@@ -50,6 +50,8 @@ | |||
50 | /dts-v1/; | 50 | /dts-v1/; |
51 | #include "sun5i-a13.dtsi" | 51 | #include "sun5i-a13.dtsi" |
52 | #include "sunxi-common-regulators.dtsi" | 52 | #include "sunxi-common-regulators.dtsi" |
53 | |||
54 | #include <dt-bindings/gpio/gpio.h> | ||
53 | #include <dt-bindings/input/input.h> | 55 | #include <dt-bindings/input/input.h> |
54 | 56 | ||
55 | / { | 57 | / { |
@@ -62,7 +64,7 @@ | |||
62 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>; | 64 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>; |
63 | vmmc-supply = <®_vcc3v3>; | 65 | vmmc-supply = <®_vcc3v3>; |
64 | bus-width = <4>; | 66 | bus-width = <4>; |
65 | cd-gpios = <&pio 6 0 0>; /* PG0 */ | 67 | cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */ |
66 | cd-inverted; | 68 | cd-inverted; |
67 | status = "okay"; | 69 | status = "okay"; |
68 | }; | 70 | }; |
@@ -174,14 +176,14 @@ | |||
174 | pinctrl-0 = <&led_pins_olinuxino>; | 176 | pinctrl-0 = <&led_pins_olinuxino>; |
175 | 177 | ||
176 | power { | 178 | power { |
177 | gpios = <&pio 6 9 0>; | 179 | gpios = <&pio 6 9 GPIO_ACTIVE_HIGH>; |
178 | default-state = "on"; | 180 | default-state = "on"; |
179 | }; | 181 | }; |
180 | }; | 182 | }; |
181 | 183 | ||
182 | reg_usb1_vbus: usb1-vbus { | 184 | reg_usb1_vbus: usb1-vbus { |
183 | pinctrl-0 = <&usb1_vbus_pin_olinuxino>; | 185 | pinctrl-0 = <&usb1_vbus_pin_olinuxino>; |
184 | gpio = <&pio 6 11 0>; | 186 | gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>; |
185 | status = "okay"; | 187 | status = "okay"; |
186 | }; | 188 | }; |
187 | }; | 189 | }; |