diff options
Diffstat (limited to 'target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg-212.dts')
-rw-r--r-- | target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg-212.dts | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg-212.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg-212.dts index 4610aab883..6abab23586 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg-212.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg-212.dts @@ -2,6 +2,7 @@ #include "ox820.dtsi" +#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> / { @@ -37,12 +38,12 @@ reset { label = "reset"; - gpios = <&gpio1 11 1>; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; linux,code = <KEY_RESTART>; }; copy { label = "copy"; - gpios = <&gpio1 13 1>; + gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; linux,code = <KEY_COPY>; }; }; @@ -51,15 +52,15 @@ compatible = "gpio-leds"; led_status: status { label = "zyxel:blue:status"; - gpios = <&gpio1 5 0>; + gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; }; led_warn: status2 { label = "zyxel:red:status"; - gpios = <&gpio1 6 1>; + gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; }; copy { label = "zyxel:orange:copy"; - gpios = <&gpio1 8 1>; + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; @@ -67,7 +68,8 @@ i2c-gpio { compatible = "i2c-gpio"; - gpios = <&gpio1 9 0 &gpio1 10 0>; + gpios = <&gpio1 9 GPIO_ACTIVE_HIGH + &gpio1 10 GPIO_ACTIVE_HIGH>; i2c-gpio,delay-us = <10>; }; }; |