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/WBMR300.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/WBMR300.dts')
-rw-r--r-- | target/linux/lantiq/dts/WBMR300.dts | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/target/linux/lantiq/dts/WBMR300.dts b/target/linux/lantiq/dts/WBMR300.dts index 02ec172d92..dc0b2862a9 100644 --- a/target/linux/lantiq/dts/WBMR300.dts +++ b/target/linux/lantiq/dts/WBMR300.dts @@ -1,6 +1,6 @@ /dts-v1/; -/include/ "vr9.dtsi" +#include "vr9.dtsi" / { model = "WBMR300 - Buffalo WBMR-300HPD"; @@ -61,13 +61,13 @@ ifxhcd@E101000 { status = "okay"; - gpios = <&gpio 33 0>; + gpios = <&gpio 33 GPIO_ACTIVE_HIGH>; lantiq,portmask = <0x3>; }; ifxhcd@E106000 { status = "okay"; - gpios = <&gpio 33 0>; + gpios = <&gpio 33 GPIO_ACTIVE_HIGH>; }; }; @@ -79,7 +79,7 @@ gpio_poweroff { compatible = "gpio-poweroff"; - gpios = <&gpio 6 1>; + gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; gpio-keys-polled { @@ -90,34 +90,34 @@ power { label = "power"; - gpios = <&gpio 5 1>; - linux,code = <0x74>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; + linux,code = <KEY_POWER>; }; reset { label = "reset"; - gpios = <&gpio 7 1>; - linux,code = <0x198>; + gpios = <&gpio 7 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RESTART>; }; wps { label = "wps"; - gpios = <&gpio 31 1>; - linux,code = <0x211>; + gpios = <&gpio 31 GPIO_ACTIVE_LOW>; + linux,code = <KEY_WPS_BUTTON>; }; auto { label = "auto"; - gpios = <&gpio 48 0>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + gpios = <&gpio 48 GPIO_ACTIVE_HIGH>; + linux,code = <BTN_0>; + linux,input-type = <EV_SW>; }; router { label = "router"; - gpios = <&gpio 2 0>; - linux,code = <0x100>; - linux,input-type = <5>; /* EV_SW */ + gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; + linux,code = <BTN_0>; + linux,input-type = <EV_SW>; }; }; @@ -126,68 +126,68 @@ diag_r: diag_r { label = "wbmr300:red:diag"; - gpios = <&gpio 0 0>; + gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; default_state = "off"; }; wifi_g: wifi_g { label = "wbmr300:green:wifi"; - gpios = <&gpio 1 0>; + gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; }; dsl: dsl { label = "dsl"; - gpios = <&gpio 4 0>; + gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; }; router_y: router_y { label = "wbmr300:yellow:router"; - gpios = <&gpio 8 0>; + gpios = <&gpio 8 GPIO_ACTIVE_HIGH>; }; wifi_y: wifi_y { label = "wbmr300:yellow:wifi"; - gpios = <&gpio 9 0>; + gpios = <&gpio 9 GPIO_ACTIVE_HIGH>; }; lan1: lan1 { label = "wbmr300:green:lan1"; - gpios = <&gpio 11 0>; + gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; }; wan: wan { label = "wbmr300:green:wan"; - gpios = <&gpio 12 0>; + gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; }; lan3: lan3 { label = "wbmr300:green:lan3"; - gpios = <&gpio 15 0>; + gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; }; lan2: lan2 { label = "wbmr300:green:lan2"; - gpios = <&gpio 33 0>; + gpios = <&gpio 33 GPIO_ACTIVE_HIGH>; }; internet_g: internet_g { label = "wbmr300:green:internet"; - gpios = <&gpio 34 0>; + gpios = <&gpio 34 GPIO_ACTIVE_HIGH>; }; internet_y: internet_y { label = "wbmr300:yellow:internet"; - gpios = <&gpio 35 0>; + gpios = <&gpio 35 GPIO_ACTIVE_HIGH>; }; router_g: router_g { label = "wbmr300:green:router"; - gpios = <&gpio 36 0>; + gpios = <&gpio 36 GPIO_ACTIVE_HIGH>; }; power_g: power_g { label = "wbmr300:green:power"; - gpios = <&gpio 49 0>; + gpios = <&gpio 49 GPIO_ACTIVE_HIGH>; }; }; }; |