diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-12-17 00:59:55 +0300 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-01-21 11:58:56 +0300 |
commit | bca12924f09dc03f2bda3b3e39408fee920a343b (patch) | |
tree | 4d523b55a8db22235de423887ce2092bb19e467e /arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | |
parent | 7145570159fb20654b507026a8e388f739fffa5c (diff) | |
download | linux-bca12924f09dc03f2bda3b3e39408fee920a343b.tar.xz |
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/sun7i-a20-cubieboard2.dts')
-rw-r--r-- | arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts index 809d448ecf30..27ca1a16ca91 100644 --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts @@ -15,6 +15,8 @@ #include "sun7i-a20.dtsi" #include "sunxi-common-regulators.dtsi" +#include <dt-bindings/gpio/gpio.h> + / { model = "Cubietech Cubieboard2"; compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20"; @@ -25,7 +27,7 @@ pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; vmmc-supply = <®_vcc3v3>; bus-width = <4>; - cd-gpios = <&pio 7 1 0>; /* PH1 */ + cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ cd-inverted; status = "okay"; }; @@ -120,12 +122,12 @@ blue { label = "cubieboard2:blue:usr"; - gpios = <&pio 7 21 0>; + gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; }; green { label = "cubieboard2:green:usr"; - gpios = <&pio 7 20 0>; + gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; }; }; |