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/WBMR.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/WBMR.dts')
-rw-r--r-- | target/linux/lantiq/dts/WBMR.dts | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/target/linux/lantiq/dts/WBMR.dts b/target/linux/lantiq/dts/WBMR.dts index 067ca87d46..07671d6053 100644 --- a/target/linux/lantiq/dts/WBMR.dts +++ b/target/linux/lantiq/dts/WBMR.dts @@ -1,6 +1,6 @@ /dts-v1/; -/include/ "ar9.dtsi" +#include "ar9.dtsi" / { model = "WBMR - Buffalo WBMR-HP-G300H"; @@ -101,7 +101,7 @@ ifxhcd@E101000 { status = "okay"; - gpios = <&gpio 36 0>; + gpios = <&gpio 36 GPIO_ACTIVE_HIGH>; }; pci@E105400 { @@ -117,23 +117,23 @@ wps { label = "wps"; - gpios = <&gpio 0 1>; - linux,code = <0x211>; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + linux,code = <KEY_WPS_BUTTON>; }; reset { label = "reset"; - gpios = <&gpio 37 1>; - linux,code = <0x198>; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RESTART>; }; eject { label = "eject"; - gpios = <&gpio 34 1>; - linux,code = <0xf7>; + gpios = <&gpio 34 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RFKILL>; }; movie { label = "movie"; - gpios = <&gpio 22 1>; - linux,code = <0x109>; + gpios = <&gpio 22 GPIO_ACTIVE_LOW>; + linux,code = <BTN_9>; }; }; @@ -142,40 +142,40 @@ power_green: power { label = "wbmr:green:power"; - gpios = <&gpio 1 1>; + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; default-state = "keep"; }; power_red: power2 { label = "wbmr:red:power"; - gpios = <&gpio 5 1>; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; security { label = "wbmr:yellow:security"; - gpios = <&gpio 14 1>; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; wifi: wifi { label = "wbmr:green:wireless"; - gpios = <&gpio 15 1>; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; dsl: dsl { label = "wbmr:green:dsl"; - gpios = <&gpio 16 1>; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; online_green: online { label = "wbmr:green:internet"; - gpios = <&gpio 17 1>; + gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; online2 { label = "wbmr:red:internet"; - gpios = <&gpio 18 1>; + gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; movie { label = "wbmr:blue:movie"; - gpios = <&gpio 20 1>; + gpios = <&gpio 20 GPIO_ACTIVE_LOW>; }; usb: usb { label = "wbmr:green:usb"; - gpios = <&gpio 28 1>; + gpios = <&gpio 28 GPIO_ACTIVE_LOW>; default-state = "on"; }; }; |