diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2017-05-25 18:26:41 (GMT) |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2017-06-01 14:42:08 (GMT) |
commit | f333973340a4b84461074a1c38ede3ebbc3de297 (patch) | |
tree | 45f122edb0e84796ec9a647cc506a3867bee48fd /arch | |
parent | 702a3e579b115b7e443773e56910a6b13d7ea7bf (diff) | |
download | u-boot-f333973340a4b84461074a1c38ede3ebbc3de297.tar.xz |
arm64: dts: sun50i: h5: orangepi-pc2: Use GPIO flag binding macro
Instead of defining numerical value on GPIO flag
better to use existing binding macro.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/dts/sun50i-h5-orangepi-pc2.dts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/dts/sun50i-h5-orangepi-pc2.dts b/arch/arm/dts/sun50i-h5-orangepi-pc2.dts index 81594e6..780d59a 100644 --- a/arch/arm/dts/sun50i-h5-orangepi-pc2.dts +++ b/arch/arm/dts/sun50i-h5-orangepi-pc2.dts @@ -44,6 +44,8 @@ #include "sun50i-h5.dtsi" +#include <dt-bindings/gpio/gpio.h> + / { model = "OrangePi PC 2"; compatible = "xunlong,orangepi-pc-2", "allwinner,sun50i-h5"; @@ -79,7 +81,7 @@ pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; vmmc-supply = <®_vcc3v3>; bus-width = <4>; - cd-gpios = <&pio 5 6 0>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; cd-inverted; status = "okay"; }; |