From eba84bee4ce518dc509fe51f252c5307dccf3a1c Mon Sep 17 00:00:00 2001 From: Andreas Eberlein Date: Thu, 29 Sep 2016 18:22:55 +0200 Subject: lantiq: Sanitize device tree files The device tree file of ARV752DPW uses numbers/hex values for gpio states and input event codes. This cleans it up and uses the available macros from header files. This way the functions are easier to read and comprehend. Signed-off-by: Andreas Eberlein [sanitize all device tree files] Signed-off-by: Mathias Kresin --- target/linux/lantiq/dts/EASY80920.dtsi | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'target/linux/lantiq/dts/EASY80920.dtsi') diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi index 57dc4574ec..c643bf1c23 100644 --- a/target/linux/lantiq/dts/EASY80920.dtsi +++ b/target/linux/lantiq/dts/EASY80920.dtsi @@ -1,4 +1,4 @@ -/include/ "vr9.dtsi" +#include "vr9.dtsi" / { chosen { @@ -116,7 +116,7 @@ ifxhcd@E101000 { status = "okay"; - gpios = <&gpio 33 0>; + gpios = <&gpio 33 GPIO_ACTIVE_HIGH>; lantiq,portmask = <0x3>; }; @@ -138,7 +138,7 @@ interrupt-map = < 0x7000 0 0 1 &icu0 29 1 // slot 14, irq 29 >; - gpios-reset = <&gpio 21 0>; + gpios-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; req-mask = <0x1>; /* GNT1 */ }; }; @@ -157,13 +157,13 @@ poll-interval = <100>; /* reset { label = "reset"; - gpios = <&gpio 7 1>; - linux,code = <0x198>; + gpios = <&gpio 7 GPIO_ACTIVE_LOW>; + linux,code = ; };*/ paging { label = "paging"; - gpios = <&gpio 11 1>; - linux,code = <0x100>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + linux,code = ; }; }; @@ -172,40 +172,40 @@ power: power { label = "easy80920:green:power"; - gpios = <&stp 9 0>; + gpios = <&stp 9 GPIO_ACTIVE_HIGH>; default-state = "keep"; }; warning { label = "easy80920:green:warning"; - gpios = <&stp 22 0>; + gpios = <&stp 22 GPIO_ACTIVE_HIGH>; }; fxs1 { label = "easy80920:green:fxs1"; - gpios = <&stp 21 0>; + gpios = <&stp 21 GPIO_ACTIVE_HIGH>; }; fxs2 { label = "easy80920:green:fxs2"; - gpios = <&stp 20 0>; + gpios = <&stp 20 GPIO_ACTIVE_HIGH>; }; fxo { label = "easy80920:green:fxo"; - gpios = <&stp 19 0>; + gpios = <&stp 19 GPIO_ACTIVE_HIGH>; }; usb1: usb1 { label = "easy80920:green:usb1"; - gpios = <&stp 18 0>; + gpios = <&stp 18 GPIO_ACTIVE_HIGH>; }; usb2: usb2 { label = "easy80920:green:usb2"; - gpios = <&stp 15 0>; + gpios = <&stp 15 GPIO_ACTIVE_HIGH>; }; sd { label = "easy80920:green:sd"; - gpios = <&stp 14 0>; + gpios = <&stp 14 GPIO_ACTIVE_HIGH>; }; wps { label = "easy80920:green:wps"; - gpios = <&stp 12 0>; + gpios = <&stp 12 GPIO_ACTIVE_HIGH>; }; }; }; -- cgit v1.2.3