diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-05 19:23:33 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-06 00:27:55 +0100 |
commit | f4026ad24d0374bdb8704e8b6ec38e9fd85f5e0e (patch) | |
tree | 7f01c18cd8fe81a40e6ac7999d668615af395ea2 /target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts | |
parent | 763914ef1be07038eb2c862c1fe3c84de419679f (diff) | |
download | upstream-f4026ad24d0374bdb8704e8b6ec38e9fd85f5e0e.tar.gz upstream-f4026ad24d0374bdb8704e8b6ec38e9fd85f5e0e.tar.bz2 upstream-f4026ad24d0374bdb8704e8b6ec38e9fd85f5e0e.zip |
ath79: DTS file style update and harmonization
This applies several style adjustments that have been requested in
recent reviews to older DTS files. Despite making the code base more
consistent, this will also help to reduce review time when DTSes
are copy/pasted.
Applied changes:
- Rename gpio-keys/gpio-leds to keys/leds
- Remove node labels that are not used
- Use label property for partitions
- Prefix led node labels with "led_"
- Remove redundant includes
- Harmonize new lines after status property
- Several smaller style fixes
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts')
-rw-r--r-- | target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts b/target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts index afc1b14b8a..7cdfa56dfd 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts +++ b/target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts @@ -1,9 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT /dts-v1/; -#include <dt-bindings/gpio/gpio.h> -#include <dt-bindings/input/input.h> - #include "qca9558_tplink_archer-c7.dtsi" / { @@ -11,7 +8,7 @@ model = "TP-Link Archer C7 v2"; }; -&gpio_keys { +&keys { rfkill { gpios = <&gpio 23 GPIO_ACTIVE_LOW>; linux,code = <KEY_RFKILL>; @@ -20,7 +17,7 @@ }; }; -&gpio_leds { +&leds { wlan5g { label = "tp-link:green:wlan5g"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; @@ -29,17 +26,20 @@ }; &mtdparts { - uboot: u-boot@0 { + uboot: partition@0 { + label = "u-boot"; reg = <0x000000 0x020000>; read-only; }; - firmware@20000 { + partition@20000 { + label = "firmware"; reg = <0x020000 0xfd0000>; compatible = "tplink,firmware"; }; - art: art@ff0000 { + art: partition@ff0000 { + label = "art"; reg = <0xff0000 0x010000>; read-only; }; |