diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-12-16 22:59:55 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-01-21 09:58:56 +0100 |
commit | bca12924f09dc03f2bda3b3e39408fee920a343b (patch) | |
tree | 4d523b55a8db22235de423887ce2092bb19e467e /arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | |
parent | ARM: sunxi: DT: Convert to device tree includes (diff) | |
download | linux-bca12924f09dc03f2bda3b3e39408fee920a343b.tar.xz linux-bca12924f09dc03f2bda3b3e39408fee920a343b.zip |
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-olinuxino-lime2.dts')
-rw-r--r-- | arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts index 5fda1e02acdb..ce1e28afa2fe 100644 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts @@ -49,6 +49,8 @@ #include "sun7i-a20.dtsi" #include "sunxi-common-regulators.dtsi" +#include <dt-bindings/gpio/gpio.h> + / { model = "Olimex A20-OLinuXino-LIME2"; compatible = "olimex,a20-olinuxino-lime2", "allwinner,sun7i-a20"; @@ -59,7 +61,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"; }; @@ -199,14 +201,14 @@ green { label = "a20-olinuxino-lime2:green:usr"; - gpios = <&pio 7 2 0>; + gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; default-state = "on"; }; }; reg_ahci_5v: ahci-5v { pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>; - gpio = <&pio 2 3 0>; + gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>; status = "okay"; }; |