diff options
Diffstat (limited to 'target/linux/ramips/dts/Newifi-D1.dts')
-rw-r--r-- | target/linux/ramips/dts/Newifi-D1.dts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/target/linux/ramips/dts/Newifi-D1.dts b/target/linux/ramips/dts/Newifi-D1.dts index 47cfa2bf4e..f5c7c91362 100644 --- a/target/linux/ramips/dts/Newifi-D1.dts +++ b/target/linux/ramips/dts/Newifi-D1.dts @@ -2,6 +2,7 @@ #include "mt7621.dtsi" +#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> / { @@ -22,17 +23,17 @@ status-red { label = "newifi-d1:red:status"; - gpios = <&gpio0 14 1>; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; status-green { label = "newifi-d1:green:status"; - gpios = <&gpio0 13 1>; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; statys-blue { label = "newifi-d1:blue:status"; - gpios = <&gpio0 16 1>; + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; }; }; @@ -44,7 +45,7 @@ reset { label = "reset"; - gpios = <&gpio0 15 1>; + gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; linux,code = <KEY_RESTART>; }; }; @@ -56,13 +57,13 @@ usb2power { gpio-export,name = "usb2power"; gpio-export,output = <1>; - gpios = <&gpio0 9 0>; + gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; usb3power { gpio-export,name = "usb3power"; gpio-export,output = <1>; - gpios = <&gpio0 11 0>; + gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; }; |