From 70b192f57358f753842cbe1f8f82e26e8c6f9e1e Mon Sep 17 00:00:00 2001 From: "L. D. Pinney" Date: Sat, 29 Jul 2017 10:14:07 +0800 Subject: ramips: update device tree source files Use the GPIO dt-bindings macros and add compatible strings in the ramips device tree source files. Signed-off-by: L. D. Pinney Signed-off-by: Mathias Kresin --- target/linux/ramips/dts/Newifi-D1.dts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'target/linux/ramips/dts/Newifi-D1.dts') 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 #include / { @@ -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 = ; }; }; @@ -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>; }; }; }; -- cgit v1.2.3