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/ARV4510PW.dts | 46 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'target/linux/lantiq/dts/ARV4510PW.dts') diff --git a/target/linux/lantiq/dts/ARV4510PW.dts b/target/linux/lantiq/dts/ARV4510PW.dts index dca7a35794..68aae2b246 100644 --- a/target/linux/lantiq/dts/ARV4510PW.dts +++ b/target/linux/lantiq/dts/ARV4510PW.dts @@ -1,6 +1,6 @@ /dts-v1/; -/include/ "danube.dtsi" +#include "danube.dtsi" / { model = "ARV4510PW - Wippies, Elisa"; @@ -131,7 +131,7 @@ 0x7800 0 0 2 &icu0 66 0x7800 0 0 3 &icu0 66 >; - gpio-reset = <&gpio 21 0>; + gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>; req-mask = <0x7>; }; @@ -145,13 +145,13 @@ wps { label = "wps"; - gpios = <&gpio 14 1>; - linux,code = <0x211>; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + linux,code = ; }; reset { label = "reset"; - gpios = <&gpio 3 1>; - linux,code = <0x198>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + linux,code = ; }; }; @@ -159,72 +159,72 @@ compatible = "gpio-leds"; power: power { label = "power"; - gpios = <&gpios 21 0>; + gpios = <&gpios 21 GPIO_ACTIVE_HIGH>; default-state = "keep"; }; power2: power2 { label = "power2"; - gpios = <&gpios 20 0>; + gpios = <&gpios 20 GPIO_ACTIVE_HIGH>; }; lan1 { label = "lan1"; - gpios = <&gpios 19 0>; + gpios = <&gpios 19 GPIO_ACTIVE_HIGH>; }; lan2 { label = "lan2"; - gpios = <&gpios 18 0>; + gpios = <&gpios 18 GPIO_ACTIVE_HIGH>; }; lan3 { label = "lan3"; - gpios = <&gpios 17 0>; + gpios = <&gpios 17 GPIO_ACTIVE_HIGH>; }; lan4 { label = "lan4"; - gpios = <&gpios 16 0>; + gpios = <&gpios 16 GPIO_ACTIVE_HIGH>; }; wifi: wifi { label = "wifi"; - gpios = <&gpios 15 0>; + gpios = <&gpios 15 GPIO_ACTIVE_HIGH>; }; adsl: adsl { label = "adsl"; - gpios = <&gpios 14 0>; + gpios = <&gpios 14 GPIO_ACTIVE_HIGH>; }; internet: internet { label = "internet"; - gpios = <&gpios 13 0>; + gpios = <&gpios 13 GPIO_ACTIVE_HIGH>; }; internet2 { label = "internet2"; - gpios = <&gpios 12 0>; + gpios = <&gpios 12 GPIO_ACTIVE_HIGH>; }; voip { label = "voip"; - gpios = <&gpios 11 0>; + gpios = <&gpios 11 GPIO_ACTIVE_HIGH>; }; phone { label = "phone"; - gpios = <&gpios 10 0>; + gpios = <&gpios 10 GPIO_ACTIVE_HIGH>; }; phone2 { label = "phone2"; - gpios = <&gpios 9 0>; + gpios = <&gpios 9 GPIO_ACTIVE_HIGH>; }; usb: usb { label = "usb"; - gpios = <&gpios 8 0>; + gpios = <&gpios 8 GPIO_ACTIVE_HIGH>; }; usb2: usb2 { label = "usb2"; - gpios = <&gpios 7 0>; + gpios = <&gpios 7 GPIO_ACTIVE_HIGH>; }; usb3 { label = "usb3"; - gpios = <&gpios 6 0>; + gpios = <&gpios 6 GPIO_ACTIVE_HIGH>; }; unlabeled { label = "unlabeled"; - gpios = <&gpios 5 0>; + gpios = <&gpios 5 GPIO_ACTIVE_HIGH>; }; }; }; -- cgit v1.2.3