diff options
author | Sungbo Eo <mans0n@gorani.run> | 2020-03-15 20:56:40 +0900 |
---|---|---|
committer | Sungbo Eo <mans0n@gorani.run> | 2020-03-16 17:16:30 +0900 |
commit | 9559a3304e5563c76c4a1c4901ab8ea3b6a8a5da (patch) | |
tree | fff57586c465b9fec6ff1134d5e6c6378e346583 /target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts | |
parent | c9512d564da6dd149d68c2e150c52b9c466f4ccd (diff) | |
download | upstream-9559a3304e5563c76c4a1c4901ab8ea3b6a8a5da.tar.gz upstream-9559a3304e5563c76c4a1c4901ab8ea3b6a8a5da.tar.bz2 upstream-9559a3304e5563c76c4a1c4901ab8ea3b6a8a5da.zip |
oxnas: use dt-bindings macros for GPIO
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts')
-rw-r--r-- | target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts index c626e5789e..c0edc8cf84 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts @@ -2,6 +2,7 @@ #include "ox820.dtsi" +#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> / { @@ -31,7 +32,8 @@ i2c-gpio { compatible = "i2c-gpio"; - gpios = <&gpio1 9 0 &gpio1 10 0>; + gpios = <&gpio1 9 GPIO_ACTIVE_HIGH + &gpio1 10 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c>; i2c-gpio,delay-us = <10>; @@ -52,12 +54,12 @@ poll-interval = <100>; power { label = "power"; - gpios = <&gpio0 11 1>; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; linux,code = <KEY_POWER>; }; reset { label = "reset"; - gpios = <&gpio1 6 1>; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; linux,code = <KEY_RESTART>; }; }; @@ -68,7 +70,7 @@ pinctrl-0 = <&pinctrl_leds>; led_status: status { label = "akitio:red:status"; - gpios = <&gpio0 29 0>; + gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; }; }; @@ -76,7 +78,7 @@ compatible = "gpio-poweroff"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_poweroff>; - gpios = <&gpio1 13 2>; + gpios = <&gpio1 13 GPIO_SINGLE_ENDED>; }; }; |