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-v1.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-v1.dts')
-rw-r--r-- | target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts b/target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts index c26695d248..fda519439a 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts +++ b/target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.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 v1"; }; -&gpio_keys { +&keys { rfkill { gpios = <&gpio 13 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"; compatible = "tplink,firmware"; reg = <0x020000 0x7d0000>; }; - art: art@7f0000 { + art: partition@7f0000 { + label = "art"; reg = <0x7f0000 0x010000>; read-only; }; |