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/NBG-419N2.dts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'target/linux/ramips/dts/NBG-419N2.dts') diff --git a/target/linux/ramips/dts/NBG-419N2.dts b/target/linux/ramips/dts/NBG-419N2.dts index 73143bd642..a6e4803964 100644 --- a/target/linux/ramips/dts/NBG-419N2.dts +++ b/target/linux/ramips/dts/NBG-419N2.dts @@ -2,10 +2,11 @@ #include "rt3352.dtsi" +#include #include / { - compatible = "NBG-419N2", "ralink,rt3352-soc"; + compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc"; model = "ZyXEL NBG-419N v2"; palmbus@10000000 { @@ -49,17 +50,17 @@ power { label = "nbg-419n2:green:power"; - gpios = <&gpio0 9 1>; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { label = "nbg-419n2:green:wps"; - gpios = <&gpio0 14 1>; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; usb { label = "nbg-419n2:green:usb"; - gpios = <&gpio0 13 1>; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; @@ -70,18 +71,18 @@ poll-interval = <20>; reset { label = "reset"; - gpios = <&gpio0 10 1>; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio0 0 1>; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; linux,code = ; }; rfkill { label = "rfkill"; linux,input-type = ; - gpios = <&gpio0 12 0>; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; linux,code = ; }; }; -- cgit v1.2.3