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>
This commit is contained in:
Adrian Schmutzler 2019-11-05 19:23:33 +01:00
parent 763914ef1b
commit f4026ad24d
120 changed files with 749 additions and 660 deletions

View File

@ -11,16 +11,16 @@
model = "I-O DATA WN-AG300DGR"; model = "I-O DATA WN-AG300DGR";
aliases { aliases {
led-boot = &router; led-boot = &led_router;
led-failsafe = &router; led-failsafe = &led_router;
led-running = &router; led-running = &led_router;
led-upgrade = &router; led-upgrade = &led_router;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
router: router { led_router: router {
label = "wn-ag300dgr:green:router"; label = "wn-ag300dgr:green:router";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -108,9 +108,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
@ -212,5 +213,6 @@
&wmac { &wmac {
status = "okay"; status = "okay";
qca,no-eeprom; qca,no-eeprom;
}; };

View File

@ -11,10 +11,10 @@
compatible = "sitecom,wlr-7100", "qca,ar9344"; compatible = "sitecom,wlr-7100", "qca,ar9344";
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
keys { keys {
@ -41,7 +41,7 @@
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
}; };
power: power { led_power: power {
label = "wlr-7100:amber:power"; label = "wlr-7100:amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -100,9 +100,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;

View File

@ -12,10 +12,10 @@
}; };
aliases { aliases {
led-boot = &led_green_status; led-boot = &led_status_green;
led-failsafe = &led_yellow_status; led-failsafe = &led_status_yellow;
led-running = &led_green_status; led-running = &led_status_green;
led-upgrade = &led_yellow_status; led-upgrade = &led_status_yellow;
}; };
leds { leds {
@ -33,12 +33,12 @@
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
}; };
led_green_status: green_status { led_status_green: status_green {
label = "bluesocket:green:status"; label = "bluesocket:green:status";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };
led_yellow_status: yellow_status { led_status_yellow: status_yellow {
label = "bluesocket:yellow:status"; label = "bluesocket:yellow:status";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>; gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
}; };
@ -79,6 +79,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -15,10 +15,10 @@
}; };
aliases { aliases {
led-boot = &power_green; led-boot = &led_power_green;
led-failsafe = &power_red; led-failsafe = &led_power_red;
led-running = &power_green; led-running = &led_power_green;
led-upgrade = &power_green; led-upgrade = &led_power_green;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -32,23 +32,23 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power_green { led_power_green: power_green {
label = "ap-105:green:power"; label = "ap-105:green:power";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
}; };
power_red: power_red { led_power_red: power_red {
label = "ap-105:red:power"; label = "ap-105:red:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
panic-indicator; panic-indicator;
}; };
wifi_2g_red: wifi_2g_red { wifi_2g_red {
label = "ap-105:red:wlan2g"; label = "ap-105:red:wlan2g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
}; };
wifi_5g_red: wifi_5g_red { wifi_5g_red {
label = "ap-105:red:wlan5g"; label = "ap-105:red:wlan5g";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
}; };
@ -151,6 +151,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -11,9 +11,9 @@
model = "Buffalo WZR-HP-AG300H/WZR-600DHP"; model = "Buffalo WZR-HP-AG300H/WZR-600DHP";
aliases { aliases {
led-boot = &diag; led-boot = &led_diag;
led-failsafe = &diag; led-failsafe = &led_diag;
led-upgrade = &diag; led-upgrade = &led_diag;
}; };
chosen { chosen {
@ -27,19 +27,18 @@
clock-frequency = <40000000>; clock-frequency = <40000000>;
}; };
gpio-leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
diag: diag { led_diag: diag {
label = "buffalo:red:diag"; label = "buffalo:red:diag";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
}; };
}; };
ath9k-leds { ath9k-leds {
// those leds are indeed attached to the wifi chips
compatible = "gpio-leds"; compatible = "gpio-leds";
band2g_a { band2g_a {
label = "buffalo:amber:band2g"; label = "buffalo:amber:band2g";
gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>; gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
@ -228,6 +227,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <2>; num-cs = <2>;
cs-gpios = <0>, <0>; cs-gpios = <0>, <0>;

View File

@ -11,10 +11,10 @@
model = "D-Link DIR825B1"; model = "D-Link DIR825B1";
aliases { aliases {
led-boot = &orange_power; led-boot = &led_power_orange;
led-failsafe = &orange_power; led-failsafe = &led_power_orange;
led-running = &blue_power; led-running = &led_power_blue;
led-upgrade = &orange_power; led-upgrade = &led_power_orange;
}; };
chosen { chosen {
@ -30,35 +30,36 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
blue_usb {
usb {
label = "d-link:blue:usb"; label = "d-link:blue:usb";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>; gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
trigger-sources = <&usb_ochi_port>, <&usb_echi_port>; trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
linux,default-trigger = "usbport"; linux,default-trigger = "usbport";
}; };
orange_power: orange_power { led_power_orange: power_orange {
label = "d-link:orange:power"; label = "d-link:orange:power";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
blue_power: blue_power { led_power_blue: power_blue {
label = "d-link:blue:power"; label = "d-link:blue:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
}; };
blue_wps { wps {
label = "d-link:blue:wps"; label = "d-link:blue:wps";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>; gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
}; };
orange_planet { planet_orange {
label = "d-link:orange:planet"; label = "d-link:orange:planet";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
}; };
blue_planet { planet_blue {
label = "d-link:blue:planet"; label = "d-link:blue:planet";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
}; };
@ -173,6 +174,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -220,6 +222,7 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
pll-data = <0x11110000 0x00001099 0x00991099>; pll-data = <0x11110000 0x00001099 0x00991099>;
fixed-link { fixed-link {
@ -230,6 +233,7 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
pll-data = <0x11110000 0x00001099 0x00991099>; pll-data = <0x11110000 0x00001099 0x00991099>;
phy-handle = <&phy4>; phy-handle = <&phy4>;

View File

@ -20,10 +20,10 @@
}; };
aliases { aliases {
led-boot = &d2; led-boot = &led_d2;
led-failsafe = &d2; led-failsafe = &led_d2;
led-running = &d2; led-running = &led_d2;
led-upgrade = &d2; led-upgrade = &led_d2;
}; };
extosc: ref { extosc: ref {
@ -36,7 +36,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
d2: d2 { led_d2: d2 {
label = "ja76pf2:green:d2"; label = "ja76pf2:green:d2";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };
@ -105,6 +105,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -8,10 +8,10 @@
/ { / {
aliases { aliases {
led-boot = &power_orange; led-boot = &led_power_orange;
led-failsafe = &power_orange; led-failsafe = &led_power_orange;
led-running = &power_green; led-running = &led_power_green;
led-upgrade = &power_orange; led-upgrade = &led_power_orange;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -37,7 +37,7 @@
}; };
}; };
gpio-leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
wps { wps {
@ -45,12 +45,12 @@
gpios = <&gpio 0 GPIO_ACTIVE_LOW>; gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
}; };
power_green: power_green { led_power_green: power_green {
label = "netgear:green:power"; label = "netgear:green:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
}; };
power_orange: power_orange { led_power_orange: power_orange {
label = "netgear:orange:power"; label = "netgear:orange:power";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -69,6 +69,7 @@
ath9k-leds { ath9k-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
wlan2g { wlan2g {
label = "netgear:green:wlan2g"; label = "netgear:green:wlan2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>; gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
@ -105,6 +106,7 @@
rtl8366s { rtl8366s {
compatible = "realtek,rtl8366s"; compatible = "realtek,rtl8366s";
gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>; gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>; gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
@ -177,6 +179,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -12,10 +12,10 @@
}; };
aliases { aliases {
led-boot = &rf; led-boot = &led_rf;
led-failsafe = &rf; led-failsafe = &led_rf;
led-running = &rf; led-running = &led_rf;
led-upgrade = &rf; led-upgrade = &led_rf;
}; };
extosc: ref { extosc: ref {
@ -28,7 +28,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
rf: rf_green { led_rf: rf_green {
label = "ubnt:green:rf"; label = "ubnt:green:rf";
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
}; };

View File

@ -11,9 +11,9 @@
model = "Buffalo WHR-G301N"; model = "Buffalo WHR-G301N";
aliases { aliases {
led-boot = &diag; led-boot = &led_diag;
led-failsafe = &diag; led-failsafe = &led_diag;
led-upgrade = &diag; led-upgrade = &led_diag;
}; };
keys { keys {
@ -50,7 +50,7 @@
}; };
}; };
gpio-leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&switch_led_pins>; pinctrl-0 = <&switch_led_pins>;
@ -60,7 +60,7 @@
gpios = <&gpio 0 GPIO_ACTIVE_LOW>; gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
}; };
diag: diag { led_diag: diag {
label = "whr-g301n:red:diag"; label = "whr-g301n:red:diag";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
}; };
@ -109,6 +109,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -15,10 +15,10 @@
}; };
aliases { aliases {
led-boot = &power_amber; led-boot = &led_power_amber;
led-failsafe = &power_amber; led-failsafe = &led_power_amber;
led-running = &power_green; led-running = &led_power_green;
led-upgrade = &power_amber; led-upgrade = &led_power_amber;
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
@ -54,12 +54,12 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>; pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
power_green: power_green { led_power_green: power_green {
label = "netgear:green:power"; label = "netgear:green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
}; };
power_amber: power_amber { led_power_amber: power_amber {
label = "netgear:amber:power"; label = "netgear:amber:power";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
@ -134,6 +134,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -8,10 +8,10 @@
/ { / {
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
@ -33,7 +33,7 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>; pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
power: power { led_power: power {
label = "netgear:green:power"; label = "netgear:green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
}; };
@ -57,7 +57,7 @@
ath9k-leds { ath9k-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
wlan: wlan { wlan {
label = "netgear:green:wlan"; label = "netgear:green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>; gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
@ -67,6 +67,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -32,7 +32,7 @@
}; };
}; };
gpio-leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&switch_led_pins>; pinctrl-0 = <&switch_led_pins>;
@ -86,6 +86,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -15,10 +15,10 @@
}; };
aliases { aliases {
led-boot = &power_amber; led-boot = &led_power_amber;
led-failsafe = &power_amber; led-failsafe = &led_power_amber;
led-running = &power_green; led-running = &led_power_green;
led-upgrade = &power_amber; led-upgrade = &led_power_amber;
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
@ -116,12 +116,12 @@
ath9k-leds { ath9k-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power_green { led_power_green: power_green {
label = "netgear:green:power"; label = "netgear:green:power";
gpios = <&ath9k 3 GPIO_ACTIVE_LOW>; gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
}; };
power_amber: power_amber { led_power_amber: power_amber {
label = "netgear:amber:power"; label = "netgear:amber:power";
gpios = <&ath9k 2 GPIO_ACTIVE_LOW>; gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
@ -137,6 +137,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -12,10 +12,10 @@
}; };
aliases { aliases {
led-boot = &power_amber; led-boot = &led_power_amber;
led-failsafe = &power_amber; led-failsafe = &led_power_amber;
led-running = &power_green; led-running = &led_power_green;
led-upgrade = &power_amber; led-upgrade = &led_power_amber;
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
@ -117,12 +117,12 @@
ath9k-leds { ath9k-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power_green { led_power_green: power_green {
label = "netgear:green:power"; label = "netgear:green:power";
gpios = <&ath9k 2 GPIO_ACTIVE_LOW>; gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
}; };
power_amber: power_amber { led_power_amber: power_amber {
label = "netgear:amber:power"; label = "netgear:amber:power";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>; gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";

View File

@ -32,7 +32,7 @@
}; };
}; };
gpio_leds: gpio-leds { leds: leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
led_system: system { led_system: system {
@ -49,6 +49,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -15,7 +15,7 @@
}; };
}; };
&gpio_leds { &leds {
led3g { led3g {
label = "tp-link:green:3g"; label = "tp-link:green:3g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;

View File

@ -36,7 +36,7 @@
}; };
}; };
gpio-leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
led_system: system { led_system: system {
@ -95,6 +95,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -8,17 +8,17 @@
model = "Ubiquiti AirRouter"; model = "Ubiquiti AirRouter";
aliases { aliases {
led-boot = &globe; led-boot = &led_globe;
led-failsafe = &globe; led-failsafe = &led_globe;
led-running = &globe; led-running = &led_globe;
led-upgrade = &globe; led-upgrade = &led_globe;
label-mac-device = &wifi; label-mac-device = &wifi;
}; };
airrouter-leds { airrouter-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
globe: globe { led_globe: globe {
label = "ubnt:green:globe"; label = "ubnt:green:globe";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>; gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
}; };

View File

@ -11,10 +11,10 @@
model = "Ubiquiti UniFi AP"; model = "Ubiquiti UniFi AP";
aliases { aliases {
led-boot = &dome_green; led-boot = &led_dome_green;
led-failsafe = &dome_green; led-failsafe = &led_dome_green;
led-running = &dome_green; led-running = &led_dome_green;
led-upgrade = &dome_green; led-upgrade = &led_dome_green;
label-mac-device = &wifi; label-mac-device = &wifi;
}; };
@ -36,12 +36,13 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
dome_green: dome-green {
led_dome_green: dome_green {
label = "ubnt:green:dome"; label = "ubnt:green:dome";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
}; };
dome-orange { dome_orange {
label = "ubnt:orange:dome"; label = "ubnt:orange:dome";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
}; };
@ -58,6 +59,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -1,14 +1,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "ar7241_ubnt_xm.dtsi" #include "ar7241_ubnt_xm.dtsi"
/ { / {
aliases { aliases {
led-boot = &link4; led-boot = &led_link4;
led-failsafe = &link4; led-failsafe = &led_link4;
label-mac-device = &wifi; label-mac-device = &wifi;
}; };
@ -29,7 +26,7 @@
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
}; };
link4: link4 { led_link4: link4 {
label = "ubnt:green:link4"; label = "ubnt:green:link4";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
}; };

View File

@ -11,10 +11,10 @@
model = "AVM FRITZ!WLAN Repeater 300E"; model = "AVM FRITZ!WLAN Repeater 300E";
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
label-mac-device = &ath9k; label-mac-device = &ath9k;
}; };
@ -32,7 +32,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "fritz300e:green:power"; label = "fritz300e:green:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -96,6 +96,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -8,10 +8,13 @@
model = "Buffalo BHR-4GRV"; model = "Buffalo BHR-4GRV";
}; };
&leds {
sec_vpn {
label = "buffalo:orange:vpn";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
};
&eth0 { &eth0 {
mtd-mac-address = <&art 0x0>; mtd-mac-address = <&art 0x0>;
}; };
&sec_vpn {
label = "buffalo:orange:vpn";
};

View File

@ -8,9 +8,9 @@
/ { / {
aliases { aliases {
led-boot = &diag; led-boot = &led_diag;
led-failsafe = &diag; led-failsafe = &led_diag;
led-upgrade = &diag; led-upgrade = &led_diag;
}; };
extosc: ref { extosc: ref {
@ -37,14 +37,10 @@
}; };
}; };
leds { leds: leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
sec_vpn: sec_vpn { led_diag: diag {
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
diag: diag {
label = "buffalo:red:diag"; label = "buffalo:red:diag";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
@ -111,6 +107,7 @@
&spi { &spi {
status = "okay"; status = "okay";
cs-gpios = <0>, <0>; cs-gpios = <0>, <0>;
num-cs = <2>; num-cs = <2>;

View File

@ -11,9 +11,9 @@
model = "Buffalo WZR-HP-G302H A1A0"; model = "Buffalo WZR-HP-G302H A1A0";
aliases { aliases {
led-boot = &diag; led-boot = &led_diag;
led-failsafe = &diag; led-failsafe = &led_diag;
led-upgrade = &diag; led-upgrade = &led_diag;
}; };
extosc: ref { extosc: ref {
@ -66,7 +66,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
diag: diag { led_diag: diag {
label = "buffalo:red:diag"; label = "buffalo:red:diag";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
}; };
@ -163,6 +163,7 @@
&spi { &spi {
status = "okay"; status = "okay";
cs-gpios = <0>, <0>; cs-gpios = <0>, <0>;
num-cs = <2>; num-cs = <2>;

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "ar7242_buffalo_wzr-bhr.dtsi" #include "ar7242_buffalo_wzr-bhr.dtsi"
/ { / {
@ -60,12 +57,15 @@
}; };
}; };
&eth0 { &leds {
mtd-mac-address = <&art 0x1002>; sec_vpn {
label = "buffalo:orange:security";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
}; };
&sec_vpn { &eth0 {
label = "buffalo:orange:security"; mtd-mac-address = <&art 0x1002>;
}; };
&pcie { &pcie {

View File

@ -11,10 +11,10 @@
model = "TP-Link TL-WR2543N/ND"; model = "TP-Link TL-WR2543N/ND";
aliases { aliases {
led-boot = &system; led-boot = &led_wps;
led-failsafe = &system; led-failsafe = &led_wps;
led-running = &system; led-running = &led_wps;
led-upgrade = &system; led-upgrade = &led_wps;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -49,7 +49,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
system: wps { led_wps: wps {
label = "tplink:green:wps"; label = "tplink:green:wps";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>; gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
}; };
@ -102,6 +102,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -11,10 +11,10 @@
model = "TP-Link TL-WA901ND v2"; model = "TP-Link TL-WA901ND v2";
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -45,7 +45,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
system: system { led_system: system {
label = "tp-link:green:system"; label = "tp-link:green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
}; };
@ -73,6 +73,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -126,6 +127,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -11,10 +11,10 @@
model = "TP-Link TL-WR1043ND v1"; model = "TP-Link TL-WR1043ND v1";
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -44,6 +44,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
usb { usb {
label = "tp-link:green:usb"; label = "tp-link:green:usb";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
@ -51,7 +52,7 @@
linux,default-trigger = "usbport"; linux,default-trigger = "usbport";
}; };
system: system { led_system: system {
label = "tp-link:green:system"; label = "tp-link:green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
@ -104,6 +105,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -151,6 +153,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -12,16 +12,16 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &wlan; led-boot = &led_wlan;
led-failsafe = &wlan; led-failsafe = &led_wlan;
led-upgrade = &wlan; led-upgrade = &led_wlan;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
wlan: wlan { led_wlan: wlan {
label = "gl-ar150:orange:wlan"; label = "gl-ar150:orange:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
@ -80,9 +80,10 @@
}; };
&spi { &spi {
num-chipselects = <1>;
status = "okay"; status = "okay";
num-chipselects = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
@ -140,6 +141,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x0>; mtd-mac-address = <&art 0x0>;
}; };

View File

@ -12,15 +12,15 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &wlan; led-boot = &led_wlan;
led-failsafe = &wlan; led-failsafe = &led_wlan;
led-upgrade = &wlan; led-upgrade = &led_wlan;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
wlan: wlan { led_wlan: wlan {
label = "air-pen:blue:wlan"; label = "air-pen:blue:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
@ -69,9 +69,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
@ -135,11 +136,13 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
compatible = "syscon", "simple-mfd"; compatible = "syscon", "simple-mfd";
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x2>; mtd-mac-address = <&art 0x2>;
}; };

View File

@ -12,9 +12,9 @@
aliases { aliases {
label-mac-device = &wmac; label-mac-device = &wmac;
led-boot = &vpn; led-boot = &led_vpn;
led-failsafe = &vpn; led-failsafe = &led_vpn;
led-upgrade = &vpn; led-upgrade = &led_vpn;
serial0 = &uart; serial0 = &uart;
}; };
@ -42,7 +42,7 @@
gpios = <&gpio 17 GPIO_ACTIVE_LOW>; gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
}; };
vpn: vpn { led_vpn: vpn {
label = "ap121f:green:vpn"; label = "ap121f:green:vpn";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>; gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
}; };
@ -57,6 +57,7 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; mtd-mac-address = <&art 0x0>;
gmac-config { gmac-config {
@ -68,6 +69,7 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
compatible = "syscon", "simple-mfd"; compatible = "syscon", "simple-mfd";
}; };
@ -77,6 +79,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -130,5 +133,6 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };

View File

@ -11,17 +11,17 @@
compatible = "embeddedwireless,dorin", "qca,ar9331"; compatible = "embeddedwireless,dorin", "qca,ar9331";
aliases { aliases {
led-boot = &status; led-boot = &led_status;
led-failsafe = &status; led-failsafe = &led_status;
led-running = &status; led-running = &led_status;
led-upgrade = &status; led-upgrade = &led_status;
serial0 = &uart; serial0 = &uart;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status: status { led_status: status {
label = "dorin:green:status"; label = "dorin:green:status";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>; gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
}; };
@ -62,9 +62,10 @@
}; };
&spi { &spi {
num-chipselects = <1>;
status = "okay"; status = "okay";
num-chipselects = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
@ -115,5 +116,6 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };

View File

@ -12,10 +12,10 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &system; led-boot = &led_wps;
led-failsafe = &system; led-failsafe = &led_wps;
led-running = &system; led-running = &led_wps;
led-upgrade = &system; led-upgrade = &led_wps;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -33,7 +33,7 @@
gpios = <&gpio 17 GPIO_ACTIVE_LOW>; gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
}; };
system: wps { led_wps: wps {
label = "tp-link:green:wps"; label = "tp-link:green:wps";
gpios = <&gpio 26 GPIO_ACTIVE_LOW>; gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
}; };
@ -113,9 +113,10 @@
}; };
&spi { &spi {
num-chipselects = <1>;
status = "okay"; status = "okay";
num-chipselects = <1>;
/* Spansion S25FL032PIF SPI flash */ /* Spansion S25FL032PIF SPI flash */
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
@ -168,11 +169,13 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
compatible = "syscon", "simple-mfd"; compatible = "syscon", "simple-mfd";
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -18,6 +18,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&switch_led_disable_pins>; pinctrl-0 = <&switch_led_disable_pins>;
@ -107,9 +108,10 @@
}; };
&spi { &spi {
num-chipselects = <1>;
status = "okay"; status = "okay";
num-chipselects = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
spi-max-frequency = <104000000>; spi-max-frequency = <104000000>;
@ -155,11 +157,13 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
compatible = "syscon", "simple-mfd"; compatible = "syscon", "simple-mfd";
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -9,10 +9,10 @@
/ { / {
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -30,7 +30,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
system: system { led_system: system {
label = "tl-wr703n:blue:system"; label = "tl-wr703n:blue:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>; gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
}; };
@ -47,6 +47,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -65,7 +66,7 @@
read-only; read-only;
}; };
firmware: partition@20000 { partition@20000 {
compatible = "tplink,firmware"; compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>; reg = <0x20000 0x3d0000>;
label = "firmware"; label = "firmware";
@ -95,6 +96,7 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
compatible = "syscon", "simple-mfd"; compatible = "syscon", "simple-mfd";
}; };
@ -118,6 +120,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -12,10 +12,10 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
label-mac-device = &wmac; label-mac-device = &wmac;
}; };
@ -39,6 +39,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&switch_led_disable_pins>; pinctrl-0 = <&switch_led_disable_pins>;
@ -67,7 +68,7 @@
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
}; };
system: system { led_system: system {
label = "tp-link:green:system"; label = "tp-link:green:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>; gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
}; };
@ -87,6 +88,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -151,6 +153,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -12,10 +12,10 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &status; led-boot = &led_power;
led-failsafe = &status; led-failsafe = &led_power;
led-running = &status; led-running = &led_power;
led-upgrade = &status; led-upgrade = &led_power;
}; };
keys { keys {
@ -42,7 +42,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status: power { led_power: power {
label = "pcs:amber:power"; label = "pcs:amber:power";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";

View File

@ -12,10 +12,10 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &wifi; led-boot = &led_wifi;
led-failsafe = &wifi; led-failsafe = &led_wifi;
led-running = &wifi; led-running = &led_wifi;
led-upgrade = &wifi; led-upgrade = &led_wifi;
}; };
i2c { i2c {
@ -89,7 +89,7 @@
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
}; };
wifi: wifi { led_wifi: wifi {
label = "wmb001n:blue:wifi"; label = "wmb001n:blue:wifi";
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
}; };

View File

@ -9,10 +9,10 @@
/ { / {
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &system; led-boot = &led_power;
led-failsafe = &system; led-failsafe = &led_power;
led-running = &system; led-running = &led_power;
led-upgrade = &system; led-upgrade = &led_power;
label-mac-device = &wmac; label-mac-device = &wmac;
}; };
@ -33,7 +33,7 @@
leds: leds { leds: leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
system: power { led_power: power {
label = "tp-link:green:power"; label = "tp-link:green:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";

View File

@ -37,10 +37,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;

View File

@ -11,16 +11,16 @@
model = "I-O DATA ETG3-R"; model = "I-O DATA ETG3-R";
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "etg3-r:green:power"; label = "etg3-r:green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -49,9 +49,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;

View File

@ -10,10 +10,10 @@
model = "Ubiquiti Networks XW board"; model = "Ubiquiti Networks XW board";
aliases { aliases {
led-boot = &system; led-boot = &led_link4;
led-running = &system; led-running = &led_link4;
led-upgrade = &system; led-upgrade = &led_link4;
led-failsafe = &system; led-failsafe = &led_link4;
label-mac-device = &wmac; label-mac-device = &wmac;
}; };
@ -35,7 +35,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
}; };
system: link4 { led_link4: link4 {
label = "ubnt:green:link4"; label = "ubnt:green:link4";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };

View File

@ -11,10 +11,10 @@
model = "Aerohive HiveAP 121"; model = "Aerohive HiveAP 121";
aliases { aliases {
led-boot = &power_white; led-boot = &led_power_white;
led-failsafe = &power_orange; led-failsafe = &led_power_orange;
led-running = &power_white; led-running = &led_power_white;
led-upgrade = &power_orange; led-upgrade = &led_power_orange;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -36,12 +36,12 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_orange: power_orange { led_power_orange: power_orange {
label = "hiveap-121:orange:power"; label = "hiveap-121:orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
power_white: power_white { led_power_white: power_white {
label = "hiveap-121:white:power"; label = "hiveap-121:white:power";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>; gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
}; };
@ -120,6 +120,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -12,9 +12,9 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &wan; led-boot = &led_wan;
led-failsafe = &wan; led-failsafe = &led_wan;
led-upgrade = &wan; led-upgrade = &led_wan;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -24,7 +24,7 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&led_rssimediumhigh_pin>; pinctrl-0 = <&led_rssimediumhigh_pin>;
wan: wan { led_wan: wan {
label = "cf-e120a-v3:green:wan"; label = "cf-e120a-v3:green:wan";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
}; };
@ -81,6 +81,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -93,7 +94,7 @@
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
uboot: partition@0 { partition@0 {
label = "u-boot"; label = "u-boot";
reg = <0x000000 0x010000>; reg = <0x000000 0x010000>;
read-only; read-only;
@ -105,13 +106,13 @@
read-only; read-only;
}; };
firmware: partition@20000 { partition@20000 {
compatible = "denx,uimage"; compatible = "denx,uimage";
label = "firmware"; label = "firmware";
reg = <0x020000 0x7d0000>; reg = <0x020000 0x7d0000>;
}; };
nvram: partition@7f0000 { partition@7f0000 {
label = "nvram"; label = "nvram";
reg = <0x7f0000 0x010000>; reg = <0x7f0000 0x010000>;
read-only; read-only;

View File

@ -8,10 +8,10 @@
compatible = "dlink,dir-825-c1", "qca,ar9344"; compatible = "dlink,dir-825-c1", "qca,ar9344";
aliases { aliases {
led-boot = &orange_power; led-boot = &led_power_orange;
led-failsafe = &orange_power; led-failsafe = &led_power_orange;
led-running = &blue_power; led-running = &led_power_blue;
led-upgrade = &orange_power; led-upgrade = &led_power_orange;
serial0 = &uart; serial0 = &uart;
}; };
@ -21,40 +21,40 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&enable_gpio_11>; pinctrl-0 = <&enable_gpio_11>;
blue_power: blue_power { led_power_blue: power_blue {
label = "d-link:blue:power"; label = "d-link:blue:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>; gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
}; };
blue_usb { usb {
label = "d-link:blue:usb"; label = "d-link:blue:usb";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "usbport"; linux,default-trigger = "usbport";
trigger-sources = <&hub_port1>; trigger-sources = <&hub_port1>;
}; };
blue_wan { wan_blue {
label = "d-link:blue:wan"; label = "d-link:blue:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>; gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
}; };
blue_wlan2g { wlan2g {
label = "d-link:blue:wlan2g"; label = "d-link:blue:wlan2g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
}; };
blue_wps { wps {
label = "d-link:blue:wps"; label = "d-link:blue:wps";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };
orange_power: orange_power { led_power_orange: power_orange {
label = "d-link:orange:power"; label = "d-link:orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
orange_wan { wan_orange {
label = "d-link:orange:wan"; label = "d-link:orange:wan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
}; };
@ -63,7 +63,7 @@
leds-ath9k { leds-ath9k {
compatible = "gpio-leds"; compatible = "gpio-leds";
blue_wlan5g { wlan5g {
label = "d-link:blue:wlan5g"; label = "d-link:blue:wlan5g";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>; gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt"; linux,default-trigger = "phy1tpt";

View File

@ -8,37 +8,37 @@
compatible = "dlink,dir-835-a1", "qca,ar9344"; compatible = "dlink,dir-835-a1", "qca,ar9344";
aliases { aliases {
led-boot = &orange_power; led-boot = &led_power_orange;
led-failsafe = &orange_power; led-failsafe = &led_power_orange;
led-running = &green_power; led-running = &led_power_green;
led-upgrade = &orange_power; led-upgrade = &led_power_orange;
serial0 = &uart; serial0 = &uart;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
green_power: green_power { led_power_green: power_green {
label = "d-link:green:power"; label = "d-link:green:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>; gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
}; };
green_wan { wan_green {
label = "d-link:green:wan"; label = "d-link:green:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>; gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
}; };
green_wps { wps {
label = "d-link:green:wps"; label = "d-link:green:wps";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };
orange_power: orange_power { led_power_orange: power_orange {
label = "d-link:orange:power"; label = "d-link:orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
orange_wan { wan_orange {
label = "d-link:orange:wan"; label = "d-link:orange:wan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
}; };

View File

@ -15,10 +15,10 @@
}; };
aliases { aliases {
led-boot = &power_amber; led-boot = &led_power_amber;
led-failsafe = &power_amber; led-failsafe = &led_power_amber;
led-running = &power_green; led-running = &led_power_green;
led-upgrade = &power_amber; led-upgrade = &led_power_amber;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -50,12 +50,12 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&enable_gpio_11>; pinctrl-0 = <&enable_gpio_11>;
power_green: power_green { led_power_green: power_green {
label = "netgear:green:power"; label = "netgear:green:power";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>; gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
}; };
power_amber: power_amber { led_power_amber: power_amber {
label = "netgear:amber:power"; label = "netgear:amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";

View File

@ -15,10 +15,10 @@
}; };
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
}; };
leds { leds {
@ -36,7 +36,7 @@
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
}; };
system: system { led_system: system {
label = "raccoon:blue:sys"; label = "raccoon:blue:sys";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
}; };
@ -76,10 +76,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;

View File

@ -12,10 +12,10 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &status; led-boot = &led_power_amber;
led-failsafe = &status; led-failsafe = &led_power_amber;
led-running = &running; led-running = &led_power_green;
led-upgrade = &status; led-upgrade = &led_power_amber;
}; };
keys { keys {
@ -35,12 +35,12 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status: power_amber { led_power_amber: power_amber {
label = "pcs:amber:power"; label = "pcs:amber:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
}; };
running: power_green { led_power_green: power_green {
label = "pcs:green:power"; label = "pcs:green:power";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -83,10 +83,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;

View File

@ -12,10 +12,10 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &status; led-boot = &led_power;
led-failsafe = &status; led-failsafe = &led_power;
led-running = &status; led-running = &led_power;
led-upgrade = &status; led-upgrade = &led_power;
}; };
keys { keys {
@ -42,7 +42,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status: power { led_power: power {
label = "pcs:amber:power"; label = "pcs:amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>, gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
<&gpio 4 GPIO_ACTIVE_LOW>; <&gpio 4 GPIO_ACTIVE_LOW>;
@ -75,10 +75,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;

View File

@ -5,10 +5,10 @@
/ { / {
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
}; };
leds { leds {
@ -34,7 +34,7 @@
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };
system: link4 { led_system: link4 {
label = "tp-link:green:link4"; label = "tp-link:green:link4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
}; };

View File

@ -8,15 +8,15 @@
compatible = "tplink,cpe610-v1", "qca,ar9344"; compatible = "tplink,cpe610-v1", "qca,ar9344";
aliases { aliases {
led-boot = &system; led-boot = &led_lan;
led-failsafe = &system; led-failsafe = &led_lan;
led-upgrade = &system; led-upgrade = &led_lan;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
system: lan { led_lan: lan {
label = "tp-link:green:lan"; label = "tp-link:green:lan";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
}; };
@ -40,5 +40,6 @@
&eth1 { &eth1 {
status = "okay"; status = "okay";
compatible = "syscon", "simple-mfd"; compatible = "syscon", "simple-mfd";
}; };

View File

@ -7,10 +7,10 @@
/ { / {
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
}; };
leds: leds { leds: leds {
@ -22,7 +22,7 @@
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
}; };
system: system { led_system: system {
label = "tp-link:green:system"; label = "tp-link:green:system";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -71,10 +71,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;

View File

@ -15,10 +15,10 @@
}; };
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
leds { leds {
@ -39,7 +39,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
}; };
power: power { led_power: power {
label = "mynet-n750:blue:power"; label = "mynet-n750:blue:power";
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
}; };
@ -87,10 +87,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = "jedec,spi-nor"; compatible = "jedec,spi-nor";
reg = <0>; reg = <0>;
@ -179,11 +179,13 @@
&wmac { &wmac {
status = "okay"; status = "okay";
qca,no-eeprom; qca,no-eeprom;
}; };
&mdio0 { &mdio0 {
status = "okay"; status = "okay";
phy-mask = <0>; phy-mask = <0>;
switch0@1f { switch0@1f {

View File

@ -15,16 +15,16 @@
}; };
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "mynet-wifi-rangeextender:blue:power"; label = "mynet-wifi-rangeextender:blue:power";
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
/* LED has no off state. It's either on or it blinks */ /* LED has no off state. It's either on or it blinks */
@ -87,10 +87,10 @@
}; };
&spi { &spi {
num-cs = <1>;
status = "okay"; status = "okay";
num-cs = <1>;
flash@0 { flash@0 {
compatible = /* "s25fl064k", */ "jedec,spi-nor"; compatible = /* "s25fl064k", */ "jedec,spi-nor";
reg = <0>; reg = <0>;

View File

@ -12,9 +12,9 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &rssihigh; led-boot = &led_rssihigh;
led-failsafe = &rssihigh; led-failsafe = &led_rssihigh;
led-upgrade = &rssihigh; led-upgrade = &led_rssihigh;
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
@ -53,7 +53,7 @@
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
rssihigh: rssihigh { led_rssihigh: rssihigh {
label = "cf-e313ac:green:rssihigh"; label = "cf-e313ac:green:rssihigh";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
}; };

View File

@ -12,9 +12,9 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &system; led-boot = &led_rssihigh;
led-failsafe = &system; led-failsafe = &led_rssihigh;
led-upgrade = &system; led-upgrade = &led_rssihigh;
}; };
leds { leds {
@ -48,7 +48,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
}; };
system: rssihigh { led_rssihigh: rssihigh {
label = "cf-e314n-v2:green:signal4"; label = "cf-e314n-v2:green:signal4";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };

View File

@ -10,6 +10,13 @@
compatible = "engenius,ews511ap", "qca,qca9531"; compatible = "engenius,ews511ap", "qca,qca9531";
model = "EnGenius EWS511AP"; model = "EnGenius EWS511AP";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
keys { keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
@ -23,17 +30,10 @@
}; };
}; };
aliases {
led-boot = &power_led;
led-failsafe = &power_led;
led-running = &power_led;
led-upgrade = &power_led;
};
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_led: power { led_power: power {
label = "ews511ap:amber:power"; label = "ews511ap:amber:power";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>; gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -91,6 +91,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <0>; num-cs = <0>;
flash@0 { flash@0 {
@ -131,6 +132,7 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
}; };
@ -140,5 +142,6 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };

View File

@ -11,10 +11,10 @@
model = "TP-Link Archer D50 v1"; model = "TP-Link Archer D50 v1";
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
label-mac-device = &wmac; label-mac-device = &wmac;
}; };
@ -64,7 +64,7 @@
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
}; };
system: system { led_system: system {
label = "tp-link:white:system"; label = "tp-link:white:system";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>; gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -156,6 +156,7 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&romfile 0xf100>; mtd-mac-address = <&romfile 0xf100>;
@ -164,6 +165,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&romfile 0xf100>; mtd-mac-address = <&romfile 0xf100>;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca953x_tplink_tl-wr810n.dtsi" #include "qca953x_tplink_tl-wr810n.dtsi"
/ { / {

View File

@ -11,10 +11,10 @@
compatible = "yuncore,a770", "qca,qca9531"; compatible = "yuncore,a770", "qca,qca9531";
aliases { aliases {
led-boot = &status; led-boot = &led_status;
led-failsafe = &status; led-failsafe = &led_status;
led-running = &status; led-running = &led_status;
led-upgrade = &status; led-upgrade = &led_status;
}; };
chosen { chosen {
@ -40,7 +40,7 @@
gpios = <&gpio 16 GPIO_ACTIVE_LOW>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
}; };
status: status { led_status: status {
label = "a770:green:status"; label = "a770:green:status";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";

View File

@ -12,9 +12,9 @@
aliases { aliases {
serial0 = &uart; serial0 = &uart;
led-boot = &wan; led-boot = &led_wan;
led-failsafe = &wan; led-failsafe = &led_wan;
led-upgrade = &wan; led-upgrade = &led_wan;
}; };
leds { leds {
@ -23,7 +23,7 @@
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&jtag_disable_pins &led_rssilow_pin &led_rssimediumhigh_pin &led_rssihigh_pin>; pinctrl-0 = <&jtag_disable_pins &led_rssilow_pin &led_rssimediumhigh_pin &led_rssihigh_pin>;
wan: wan { led_wan: wan {
label = "cf-e110n-v2:green:wan"; label = "cf-e110n-v2:green:wan";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
}; };
@ -92,6 +92,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -137,12 +138,14 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x0>; mtd-mac-address = <&art 0x0>;
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&art 0x1002>; mtd-mac-address = <&art 0x1002>;
gmac-config { gmac-config {
@ -152,6 +155,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x6>; mtd-mac-address = <&art 0x6>;
}; };

View File

@ -12,10 +12,10 @@
}; };
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -42,7 +42,7 @@
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };
system: link4 { led_system: link4 {
label = "tp-link:green:link4"; label = "tp-link:green:link4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca953x_tplink_tl-wr810n.dtsi" #include "qca953x_tplink_tl-wr810n.dtsi"
/ { / {

View File

@ -8,9 +8,9 @@
model = "TP-Link TL-WR841N/ND v10"; model = "TP-Link TL-WR841N/ND v10";
aliases { aliases {
led-boot = &qss_led; led-boot = &led_qss;
led-failsafe = &qss_led; led-failsafe = &led_qss;
led-running = &qss_led; led-running = &led_qss;
led-upgrade = &qss_led; led-upgrade = &led_qss;
}; };
}; };

View File

@ -5,15 +5,15 @@
/ { / {
aliases { aliases {
led-boot = &system_led; led-boot = &led_system;
led-failsafe = &system_led; led-failsafe = &led_system;
led-running = &system_led; led-running = &led_system;
led-upgrade = &system_led; led-upgrade = &led_system;
}; };
}; };
&gpio_leds { &leds {
system_led: system { led_system: system {
label = "tp-link:green:system"; label = "tp-link:green:system";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
}; };

View File

@ -8,9 +8,9 @@
model = "TP-Link TL-WR841N/ND v9"; model = "TP-Link TL-WR841N/ND v9";
aliases { aliases {
led-boot = &qss_led; led-boot = &led_qss;
led-failsafe = &qss_led; led-failsafe = &led_qss;
led-running = &qss_led; led-running = &led_qss;
led-upgrade = &qss_led; led-upgrade = &led_qss;
}; };
}; };

View File

@ -15,7 +15,7 @@
label-mac-device = &wmac; label-mac-device = &wmac;
}; };
gpio_leds: leds { leds: leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
wifi { wifi {
@ -24,7 +24,7 @@
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
}; };
qss_led: qss { led_qss: qss {
label = "tp-link:green:qss"; label = "tp-link:green:qss";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
}; };
@ -80,6 +80,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -119,6 +120,7 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
@ -127,6 +129,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -11,17 +11,17 @@
model = "TP-Link TL-WR842N v3"; model = "TP-Link TL-WR842N v3";
aliases { aliases {
led-boot = &power_led; led-boot = &led_power;
led-failsafe = &power_led; led-failsafe = &led_power;
led-running = &power_led; led-running = &led_power;
led-upgrade = &power_led; led-upgrade = &led_power;
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
gpio_leds: leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_led: power { led_power: power {
label = "tp-link:green:power"; label = "tp-link:green:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -116,6 +116,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -155,6 +156,7 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
@ -163,6 +165,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -19,7 +19,7 @@
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
gpio_leds: leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
led_system: system { led_system: system {
@ -62,6 +62,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -101,6 +102,7 @@
&eth0 { &eth0 {
status = "okay"; status = "okay";
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
@ -109,6 +111,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -11,10 +11,10 @@
model = "Buffalo BHR-4GRV2"; model = "Buffalo BHR-4GRV2";
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
chosen { chosen {
@ -24,7 +24,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "bhr-4grv2:green:power"; label = "bhr-4grv2:green:power";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -68,6 +68,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -8,10 +8,10 @@
/ { / {
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
chosen { chosen {
@ -21,7 +21,7 @@
leds: leds { leds: leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "iodata:green:power"; label = "iodata:green:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -94,6 +94,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -194,5 +195,6 @@
&wmac { &wmac {
status = "okay"; status = "okay";
qca,no-eeprom; qca,no-eeprom;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_devolo_dvl1xxx.dtsi" #include "qca9558_devolo_dvl1xxx.dtsi"
/ { / {
@ -11,22 +8,22 @@
model = "devolo WiFi pro 1200e"; model = "devolo WiFi pro 1200e";
aliases { aliases {
led-boot = &status_blue; led-boot = &led_status_blue;
led-failsafe = &status_red; led-failsafe = &led_status_red;
led-running = &status_blue; led-running = &led_status_blue;
led-upgrade = &status_red; led-upgrade = &led_status_red;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status_blue: status_blue { led_status_blue: status_blue {
label = "dvl1200e:blue:status"; label = "dvl1200e:blue:status";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
status_red: status_red { led_status_red: status_red {
label = "dvl1200e:red:status"; label = "dvl1200e:red:status";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_devolo_dvl1xxx.dtsi" #include "qca9558_devolo_dvl1xxx.dtsi"
/ { / {
@ -11,22 +8,22 @@
model = "devolo WiFi pro 1200i"; model = "devolo WiFi pro 1200i";
aliases { aliases {
led-boot = &status_blue; led-boot = &led_status_blue;
led-failsafe = &status_red; led-failsafe = &led_status_red;
led-running = &status_blue; led-running = &led_status_blue;
led-upgrade = &status_red; led-upgrade = &led_status_red;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status_blue: status_blue { led_status_blue: status_blue {
label = "dvl1200i:blue:status"; label = "dvl1200i:blue:status";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
status_red: status_red { led_status_red: status_red {
label = "dvl1200i:red:status"; label = "dvl1200i:red:status";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_devolo_dvl1xxx.dtsi" #include "qca9558_devolo_dvl1xxx.dtsi"
/ { / {
@ -11,22 +8,22 @@
model = "devolo WiFi pro 1750c"; model = "devolo WiFi pro 1750c";
aliases { aliases {
led-boot = &status_blue; led-boot = &led_status_blue;
led-failsafe = &status_red; led-failsafe = &led_status_red;
led-running = &status_blue; led-running = &led_status_blue;
led-upgrade = &status_red; led-upgrade = &led_status_red;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status_blue: status_blue { led_status_blue: status_blue {
label = "dvl1750c:blue:status"; label = "dvl1750c:blue:status";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
status_red: status_red { led_status_red: status_red {
label = "dvl1750c:red:status"; label = "dvl1750c:red:status";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_devolo_dvl1xxx.dtsi" #include "qca9558_devolo_dvl1xxx.dtsi"
/ { / {
@ -11,10 +8,10 @@
model = "devolo WiFi pro 1750e"; model = "devolo WiFi pro 1750e";
aliases { aliases {
led-boot = &status_blue; led-boot = &led_status_blue;
led-failsafe = &status_red; led-failsafe = &led_status_red;
led-running = &status_blue; led-running = &led_status_blue;
led-upgrade = &status_red; led-upgrade = &led_status_red;
}; };
keys { keys {
@ -37,13 +34,13 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status_blue: status_blue { led_status_blue: status_blue {
label = "dvl1750e:blue:status"; label = "dvl1750e:blue:status";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
status_red: status_red { led_status_red: status_red {
label = "dvl1750e:red:status"; label = "dvl1750e:red:status";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_devolo_dvl1xxx.dtsi" #include "qca9558_devolo_dvl1xxx.dtsi"
/ { / {
@ -11,22 +8,22 @@
model = "devolo WiFi pro 1750i"; model = "devolo WiFi pro 1750i";
aliases { aliases {
led-boot = &status_blue; led-boot = &led_status_blue;
led-failsafe = &status_red; led-failsafe = &led_status_red;
led-running = &status_blue; led-running = &led_status_blue;
led-upgrade = &status_red; led-upgrade = &led_status_red;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status_blue: status_blue { led_status_blue: status_blue {
label = "dvl1750i:blue:status"; label = "dvl1750i:blue:status";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
status_red: status_red { led_status_red: status_red {
label = "dvl1750i:red:status"; label = "dvl1750i:red:status";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_devolo_dvl1xxx.dtsi" #include "qca9558_devolo_dvl1xxx.dtsi"
/ { / {
@ -11,16 +8,16 @@
model = "devolo WiFi pro 1750x"; model = "devolo WiFi pro 1750x";
aliases { aliases {
led-boot = &status_red; led-boot = &led_status_red;
led-failsafe = &status_red; led-failsafe = &led_status_red;
led-running = &status_red; led-running = &led_status_red;
led-upgrade = &status_red; led-upgrade = &led_status_red;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
status_red: status_red { led_status_red: status_red {
/* This LED is not visible on the external casing. */ /* This LED is not visible on the external casing. */
label = "dvl1750x:red:status"; label = "dvl1750x:red:status";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;

View File

@ -56,6 +56,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -138,12 +139,14 @@
&eth1 { &eth1 {
mtd-mac-address = <&art 0x00>; mtd-mac-address = <&art 0x00>;
mtd-mac-address-increment = <1>; mtd-mac-address-increment = <1>;
phy-handle = <&phy1>; phy-handle = <&phy1>;
pll-data = <0x03000101 0x00000101 0x00001313>; pll-data = <0x03000101 0x00000101 0x00001313>;
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&art 0x00>; mtd-mac-address = <&art 0x00>;
mtd-mac-address-increment = <(-2)>; mtd-mac-address-increment = <(-2)>;

View File

@ -15,16 +15,16 @@
}; };
aliases { aliases {
led-boot = &power_orange; led-boot = &led_power_orange;
led-failsafe = &power_orange; led-failsafe = &led_power_orange;
led-running = &power_orange; led-running = &led_power_orange;
led-upgrade = &power_orange; led-upgrade = &led_power_orange;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_orange: power_orange { led_power_orange: power_orange {
label = "ecb1750:orange:power"; label = "ecb1750:orange:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>; gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -69,6 +69,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -15,16 +15,16 @@
}; };
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "epg5000:amber:power"; label = "epg5000:amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";

View File

@ -15,16 +15,16 @@
}; };
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
system: system { led_system: system {
label = "librerouter-v1:green:system"; label = "librerouter-v1:green:system";
gpios = <&gpio 23 GPIO_ACTIVE_HIGH>; gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
@ -110,6 +110,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -12,10 +12,10 @@
}; };
aliases { aliases {
led-boot = &power_green; led-boot = &led_power_green;
led-failsafe = &power_amber; led-failsafe = &led_power_amber;
led-running = &power_green; led-running = &led_power_green;
led-upgrade = &power_amber; led-upgrade = &led_power_amber;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -48,12 +48,12 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power_green { led_power_green: power_green {
label = "netgear:green:power"; label = "netgear:green:power";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
}; };
power_amber: power_amber { led_power_amber: power_amber {
label = "netgear:amber:power"; label = "netgear:amber:power";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>; gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
}; };
@ -135,6 +135,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -15,10 +15,10 @@
}; };
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -43,7 +43,7 @@
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
}; };
system: system { led_system: system {
label = "koala:blue:sys"; label = "koala:blue:sys";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_tplink_archer-c7.dtsi" #include "qca9558_tplink_archer-c7.dtsi"
/ { / {
@ -11,7 +8,7 @@
model = "TP-Link Archer C5 v1"; model = "TP-Link Archer C5 v1";
}; };
&gpio_keys { &keys {
rfkill { rfkill {
gpios = <&gpio 23 GPIO_ACTIVE_LOW>; gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
@ -20,7 +17,7 @@
}; };
}; };
&gpio_leds { &leds {
wlan5g { wlan5g {
label = "tp-link:green:wlan5g"; label = "tp-link:green:wlan5g";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>; gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
@ -29,17 +26,20 @@
}; };
&mtdparts { &mtdparts {
uboot: u-boot@0 { uboot: partition@0 {
label = "u-boot";
reg = <0x000000 0x020000>; reg = <0x000000 0x020000>;
read-only; read-only;
}; };
firmware@20000 { partition@20000 {
label = "firmware";
reg = <0x020000 0xfd0000>; reg = <0x020000 0xfd0000>;
compatible = "tplink,firmware"; compatible = "tplink,firmware";
}; };
art: art@ff0000 { art: partition@ff0000 {
label = "art";
reg = <0xff0000 0x010000>; reg = <0xff0000 0x010000>;
read-only; read-only;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_tplink_archer-c7.dtsi" #include "qca9558_tplink_archer-c7.dtsi"
/ { / {
@ -11,7 +8,7 @@
model = "TP-Link Archer C7 v1"; model = "TP-Link Archer C7 v1";
}; };
&gpio_keys { &keys {
rfkill { rfkill {
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
@ -20,7 +17,7 @@
}; };
}; };
&gpio_leds { &leds {
wlan5g { wlan5g {
label = "tp-link:green:wlan5g"; label = "tp-link:green:wlan5g";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>; gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
@ -29,17 +26,20 @@
}; };
&mtdparts { &mtdparts {
uboot: u-boot@0 { uboot: partition@0 {
label = "u-boot";
reg = <0x000000 0x020000>; reg = <0x000000 0x020000>;
read-only; read-only;
}; };
firmware@20000 { partition@20000 {
label = "firmware";
compatible = "tplink,firmware"; compatible = "tplink,firmware";
reg = <0x020000 0x7d0000>; reg = <0x020000 0x7d0000>;
}; };
art: art@7f0000 { art: partition@7f0000 {
label = "art";
reg = <0x7f0000 0x010000>; reg = <0x7f0000 0x010000>;
read-only; read-only;
}; };

View File

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca9558_tplink_archer-c7.dtsi" #include "qca9558_tplink_archer-c7.dtsi"
/ { / {
@ -11,7 +8,7 @@
model = "TP-Link Archer C7 v2"; model = "TP-Link Archer C7 v2";
}; };
&gpio_keys { &keys {
rfkill { rfkill {
gpios = <&gpio 23 GPIO_ACTIVE_LOW>; gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>; linux,code = <KEY_RFKILL>;
@ -20,7 +17,7 @@
}; };
}; };
&gpio_leds { &leds {
wlan5g { wlan5g {
label = "tp-link:green:wlan5g"; label = "tp-link:green:wlan5g";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>; gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
@ -29,17 +26,20 @@
}; };
&mtdparts { &mtdparts {
uboot: u-boot@0 { uboot: partition@0 {
label = "u-boot";
reg = <0x000000 0x020000>; reg = <0x000000 0x020000>;
read-only; read-only;
}; };
firmware@20000 { partition@20000 {
label = "firmware";
reg = <0x020000 0xfd0000>; reg = <0x020000 0xfd0000>;
compatible = "tplink,firmware"; compatible = "tplink,firmware";
}; };
art: art@ff0000 { art: partition@ff0000 {
label = "art";
reg = <0xff0000 0x010000>; reg = <0xff0000 0x010000>;
read-only; read-only;
}; };

View File

@ -12,17 +12,17 @@
}; };
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
gpio_leds: leds { leds: leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
system: system { led_system: system {
label = "tp-link:green:system"; label = "tp-link:green:system";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -42,7 +42,7 @@
linux,default-trigger = "usbport"; linux,default-trigger = "usbport";
}; };
led_wlan2g: wlan2g { wlan2g {
label = "tp-link:green:wlan2g"; label = "tp-link:green:wlan2g";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt"; linux,default-trigger = "phy1tpt";
@ -54,7 +54,7 @@
}; };
}; };
gpio_keys: keys { keys: keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
reset { reset {
@ -126,6 +126,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -188,6 +189,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
}; };

View File

@ -11,10 +11,10 @@
compatible = "tplink,re350k-v1", "qca,qca9558"; compatible = "tplink,re350k-v1", "qca,qca9558";
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
mdio-gpio0 = &mdio2; mdio-gpio0 = &mdio2;
}; };
@ -50,30 +50,30 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "tp-link:green:power"; label = "tp-link:green:power";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
wlan2g-green { wlan2g_green {
label = "tp-link:green:wlan2g"; label = "tp-link:green:wlan2g";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt"; linux,default-trigger = "phy1tpt";
}; };
wlan2g-red { wlan2g_red {
label = "tp-link:red:wlan2g"; label = "tp-link:red:wlan2g";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>; gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
}; };
wlan5g-green { wlan5g_green {
label = "tp-link:green:wlan5g"; label = "tp-link:green:wlan5g";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
}; };
wlan5g-red { wlan5g_red {
label = "tp-link:red:wlan5g"; label = "tp-link:red:wlan5g";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>; gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
}; };

View File

@ -22,7 +22,7 @@
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
gpio_leds: leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
led_system: system { led_system: system {
@ -145,6 +145,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -225,6 +226,7 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address = <&uboot 0x1fc00>;
mtd-mac-address-increment = <(-1)>; mtd-mac-address-increment = <(-1)>;

View File

@ -12,17 +12,17 @@
}; };
aliases { aliases {
led-boot = &system; led-boot = &led_system;
led-failsafe = &system; led-failsafe = &led_system;
led-running = &system; led-running = &led_system;
led-upgrade = &system; led-upgrade = &led_system;
label-mac-device = &wmac; label-mac-device = &wmac;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
system: system { led_system: system {
label = "tp-link:green:system"; label = "tp-link:green:system";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";

View File

@ -15,10 +15,10 @@
}; };
aliases { aliases {
led-boot = &system; led-boot = &led_power_green;
led-failsafe = &system; led-failsafe = &led_power_green;
led-running = &system; led-running = &led_power_green;
led-upgrade = &system; led-upgrade = &led_power_green;
}; };
leds { leds {
@ -29,7 +29,7 @@
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
system: power_green { led_power_green: power_green {
label = "trendnet:green:power"; label = "trendnet:green:power";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
}; };
@ -112,6 +112,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -124,7 +125,7 @@
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
uboot: partition@0 { partition@0 {
label = "u-boot"; label = "u-boot";
reg = <0x000000 0x030000>; reg = <0x000000 0x030000>;
read-only; read-only;
@ -154,7 +155,7 @@
read-only; read-only;
}; };
mac: partition@fe0000 { partition@fe0000 {
label = "mac"; label = "mac";
reg = <0xfe0000 0x010000>; reg = <0xfe0000 0x010000>;
read-only; read-only;
@ -209,5 +210,6 @@
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
}; };

View File

@ -15,16 +15,16 @@
}; };
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "nbg6716:white:power"; label = "nbg6716:white:power";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };
@ -119,6 +119,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {

View File

@ -11,10 +11,10 @@
model = "AVM FRITZ!Box 4020"; model = "AVM FRITZ!Box 4020";
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &info_red; led-failsafe = &led_info_red;
led-running = &power; led-running = &led_power;
led-upgrade = &info_red; led-upgrade = &led_info_red;
}; };
chosen { chosen {
@ -50,7 +50,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "fritz4020:green:power"; label = "fritz4020:green:power";
gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>; gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -77,7 +77,7 @@
gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>; gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
}; };
info_red: info_red { led_info_red: info_red {
label = "fritz4020:red:info"; label = "fritz4020:red:info";
gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>; gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
}; };
@ -110,6 +110,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -169,5 +170,6 @@
&wmac { &wmac {
status = "okay"; status = "okay";
qca,no-eeprom; qca,no-eeprom;
}; };

View File

@ -14,6 +14,14 @@
bootargs = "console=ttyS0,115200n8"; bootargs = "console=ttyS0,115200n8";
}; };
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &eth0;
};
led_spi { led_spi {
compatible = "spi-gpio"; compatible = "spi-gpio";
#address-cells = <1>; #address-cells = <1>;
@ -50,18 +58,10 @@
}; };
}; };
aliases {
led-boot = &power;
led-failsafe = &power;
led-running = &power;
led-upgrade = &power;
label-mac-device = &eth0;
};
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "tp-link:green:power"; label = "tp-link:green:power";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>; gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
@ -118,6 +118,7 @@
&spi { &spi {
status = "okay"; status = "okay";
num-cs = <1>; num-cs = <1>;
flash@0 { flash@0 {
@ -178,21 +179,24 @@
}; };
&eth0 { &eth0 {
status = "okay";
phy-mode = "mii"; phy-mode = "mii";
phy-handle = <&swphy4>; phy-handle = <&swphy4>;
status = "okay";
mtd-mac-address = <&info 0x8>; mtd-mac-address = <&info 0x8>;
}; };
&eth1 { &eth1 {
status = "okay"; status = "okay";
mtd-mac-address = <&info 0x8>; mtd-mac-address = <&info 0x8>;
mtd-mac-address-increment = <1>; mtd-mac-address-increment = <1>;
}; };
&wmac { &wmac {
status = "okay"; status = "okay";
mtd-cal-data = <&art 0x1000>; mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&info 0x8>; mtd-mac-address = <&info 0x8>;
}; };

View File

@ -9,10 +9,10 @@
compatible = "tplink,archer-c5x", "qca,qca9560"; compatible = "tplink,archer-c5x", "qca,qca9560";
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
label-mac-device = &eth1; label-mac-device = &eth1;
}; };
@ -43,7 +43,7 @@
leds: leds { leds: leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "tp-link:green:power"; label = "tp-link:green:power";
gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>; gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";

View File

@ -12,10 +12,10 @@
}; };
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
label-mac-device = &eth0; label-mac-device = &eth0;
}; };
@ -38,7 +38,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { led_power: power {
label = "tp-link:green:power"; label = "tp-link:green:power";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";

View File

@ -8,10 +8,10 @@
model = "D-Link DIR-842 C1"; model = "D-Link DIR-842 C1";
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
leds { leds {
@ -22,7 +22,7 @@
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
}; };
power: power { led_power: power {
label = "dir-842-c1:green:power"; label = "dir-842-c1:green:power";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };

View File

@ -8,10 +8,10 @@
model = "D-Link DIR-842 C2"; model = "D-Link DIR-842 C2";
aliases { aliases {
led-boot = &power; led-boot = &led_power;
led-failsafe = &power; led-failsafe = &led_power;
led-running = &power; led-running = &led_power;
led-upgrade = &power; led-upgrade = &led_power;
}; };
leds { leds {
@ -22,7 +22,7 @@
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
}; };
power: power { led_power: power {
label = "dir-842-c2:green:power"; label = "dir-842-c2:green:power";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };

Some files were not shown because too many files have changed in this diff Show More