diff options
author | Andreas Eberlein <foodeas@aeberlein.de> | 2016-09-29 18:22:55 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2016-10-19 19:55:04 +0200 |
commit | eba84bee4ce518dc509fe51f252c5307dccf3a1c (patch) | |
tree | e2f79978f223531baed356be87f12d3d407f342b /target/linux/lantiq/dts/ARV4510PW.dts | |
parent | 72d12672de933274f6a0c54277e5621b0ea275e1 (diff) | |
download | upstream-eba84bee4ce518dc509fe51f252c5307dccf3a1c.tar.gz upstream-eba84bee4ce518dc509fe51f252c5307dccf3a1c.tar.bz2 upstream-eba84bee4ce518dc509fe51f252c5307dccf3a1c.zip |
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 <foodeas@aeberlein.de>
[sanitize all device tree files]
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/dts/ARV4510PW.dts')
-rw-r--r-- | target/linux/lantiq/dts/ARV4510PW.dts | 46 |
1 files changed, 23 insertions, 23 deletions
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 = <KEY_WPS_BUTTON>; }; reset { label = "reset"; - gpios = <&gpio 3 1>; - linux,code = <0x198>; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RESTART>; }; }; @@ -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>; }; }; }; |