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/DIR-810L.dts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'target/linux/ramips/dts/DIR-810L.dts') diff --git a/target/linux/ramips/dts/DIR-810L.dts b/target/linux/ramips/dts/DIR-810L.dts index 9621183e07..7a1736d563 100644 --- a/target/linux/ramips/dts/DIR-810L.dts +++ b/target/linux/ramips/dts/DIR-810L.dts @@ -2,6 +2,7 @@ #include "mt7620a.dtsi" +#include #include / { @@ -16,13 +17,13 @@ reset { label = "reset"; - gpios = <&gpio0 1 1>; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio0 2 1>; + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -32,17 +33,17 @@ power { label = "dir-810l:green:power"; - gpios = <&gpio0 9 0>; + gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; wan { label = "dir-810l:orange:wan"; - gpios = <&gpio0 12 0>; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; }; status { label = "dir-810l:orange:power"; - gpios = <&gpio0 13 0>; + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; }; }; -- cgit v1.2.3