summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2023-06-11 10:14:25 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2023-06-11 10:14:25 +0200
commit130e5c63c7939d6ddce658f5918ee3d25de50cce (patch)
tree3572f77c44909c3d0a966a9aeb950dfead6e6eb6 /target
parent71a6f45fdfe6221c755fa15379eab77110413f8e (diff)
downloadopenwrt-130e5c63c7939d6ddce658f5918ee3d25de50cce.tar.gz
openwrt-130e5c63c7939d6ddce658f5918ee3d25de50cce.tar.bz2
openwrt-130e5c63c7939d6ddce658f5918ee3d25de50cce.zip
bmips: dts: improve and align device tree files
Align all the device tree files and follow the same criteria before more devices are ported from bcm63xx and this goes out of control. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/bmips/dts/bcm63167-sercomm-h500-s.dtsi11
-rw-r--r--target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts10
-rw-r--r--target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts10
-rw-r--r--target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts19
-rw-r--r--target/linux/bmips/dts/bcm6328-comtrend-ar-5387un.dts8
-rw-r--r--target/linux/bmips/dts/bcm6358-huawei-hg556a-b.dts9
-rw-r--r--target/linux/bmips/dts/bcm6362-huawei-hg253s-v2.dts10
-rw-r--r--target/linux/bmips/dts/bcm6362-netgear-dgnd3700-v2.dts17
-rw-r--r--target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts8
-rw-r--r--target/linux/bmips/dts/bcm6368-netgear-dgnd3700.dtsi5
-rw-r--r--target/linux/bmips/dts/bcm6368-observa-vh4032n.dts2
-rw-r--r--target/linux/bmips/dts/bcm6369-netgear-evg2000.dts2
12 files changed, 40 insertions, 71 deletions
diff --git a/target/linux/bmips/dts/bcm63167-sercomm-h500-s.dtsi b/target/linux/bmips/dts/bcm63167-sercomm-h500-s.dtsi
index 8e0024a20f..95f330d6c5 100644
--- a/target/linux/bmips/dts/bcm63167-sercomm-h500-s.dtsi
+++ b/target/linux/bmips/dts/bcm63167-sercomm-h500-s.dtsi
@@ -8,10 +8,6 @@
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-internet = &led_internet_green;
- led-usb = &led_mobile_green;
- led-wireless = &led_wireless_green;
};
keys {
@@ -56,7 +52,7 @@
label = "red:mobile";
};
- led_mobile_green: led@1 {
+ led@1 {
reg = <1>;
label = "green:mobile";
};
@@ -64,9 +60,10 @@
led_power_red: led@8 {
reg = <8>;
label = "red:power";
+ panic-indicator;
};
- led_wireless_green: led@9 {
+ led@9 {
reg = <9>;
label = "green:wifi";
};
@@ -86,7 +83,7 @@
label = "red:internet";
};
- led_internet_green: led@15 {
+ led@15 {
reg = <15>;
label = "green:internet";
};
diff --git a/target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts b/target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts
index 8c4611ee88..5196f90afa 100644
--- a/target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts
+++ b/target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts
@@ -11,10 +11,6 @@
led-failsafe = &led_power_green;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-internet = &led_internet_green;
- led-usb = &led_usb_green;
};
keys {
@@ -78,13 +74,13 @@
label = "red:internet";
};
- led_dsl_green: led@3 {
+ led@3 {
reg = <3>;
active-low;
label = "green:dsl";
};
- led_usb_green: led@4 {
+ led@4 {
reg = <4>;
active-low;
label = "green:usb";
@@ -96,7 +92,7 @@
label = "green:wps";
};
- led_internet_green: led@8 {
+ led@8 {
reg = <8>;
active-low;
label = "green:internet";
diff --git a/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts b/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts
index bb769b09e1..7b0ebf2aef 100644
--- a/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts
+++ b/target/linux/bmips/dts/bcm63168-sercomm-shg2500.dts
@@ -11,10 +11,6 @@
led-failsafe = &led_power_red;
led-running = &led_power_red;
led-upgrade = &led_power_red;
-
- led-internet = &led_internet_green;
- led-usb = &led_modem_green;
- led-wireless = &led_wireless_green;
};
i2c {
@@ -82,7 +78,7 @@
label = "red:modem";
};
- led_modem_green: led@2 {
+ led@2 {
reg = <2>;
label = "green:modem";
};
@@ -107,7 +103,7 @@
label = "green:phone";
};
- led_wireless_green: led@7 {
+ led@7 {
reg = <7>;
label = "green:wifi";
};
@@ -117,7 +113,7 @@
label = "red:power";
};
- led_internet_green: led@9 {
+ led@9 {
reg = <9>;
label = "green:internet";
};
diff --git a/target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts b/target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts
index 8ac37be495..45ed6e2a3b 100644
--- a/target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts
+++ b/target/linux/bmips/dts/bcm6318-comtrend-ar-5315u.dts
@@ -11,10 +11,6 @@
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-internet = &led_internet_green;
- led-usb = &led_usb_green;
};
keys {
@@ -130,41 +126,41 @@
label = "green:power";
};
- led_usb_green: led@2 {
+ led@2 {
reg = <2>;
active-low;
label = "green:usb";
};
led@4 {
+ /* EPHY0 Act */
reg = <4>;
brcm,hardware-controlled;
brcm,link-signal-sources = <4>;
- /* EPHY0 Act */
};
led@5 {
+ /* EPHY1 Act */
reg = <5>;
brcm,hardware-controlled;
brcm,link-signal-sources = <5>;
- /* EPHY1 Act */
};
led@6 {
+ /* EPHY2 Act */
reg = <6>;
brcm,hardware-controlled;
brcm,link-signal-sources = <6>;
- /* EPHY2 Act */
};
led@7 {
+ /* EPHY3 Act */
reg = <7>;
brcm,hardware-controlled;
brcm,link-signal-sources = <7>;
- /* EPHY3 Act */
};
- led_internet_green: led@8 {
+ led@8 {
reg = <8>;
active-low;
label = "green:internet";
@@ -176,7 +172,7 @@
label = "red:internet";
};
- led_dsl_green: led@10 {
+ led@10 {
reg = <10>;
active-low;
label = "green:dsl";
@@ -186,6 +182,7 @@
reg = <11>;
active-low;
label = "red:power";
+ panic-indicator;
};
};
diff --git a/target/linux/bmips/dts/bcm6328-comtrend-ar-5387un.dts b/target/linux/bmips/dts/bcm6328-comtrend-ar-5387un.dts
index 72802366a0..a0d1c117f7 100644
--- a/target/linux/bmips/dts/bcm6328-comtrend-ar-5387un.dts
+++ b/target/linux/bmips/dts/bcm6328-comtrend-ar-5387un.dts
@@ -11,9 +11,6 @@
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-internet = &led_internet_green;
};
keys {
@@ -129,9 +126,10 @@
led_power_red: led@4 {
reg = <4>;
label = "red:power";
+ panic-indicator;
};
- led_internet_green: led@7 {
+ led@7 {
reg = <7>;
label = "green:internet";
};
@@ -141,7 +139,7 @@
label = "green:power";
};
- led_dsl_green: led@11 {
+ led@11 {
reg = <11>;
active-low;
label = "green:dsl";
diff --git a/target/linux/bmips/dts/bcm6358-huawei-hg556a-b.dts b/target/linux/bmips/dts/bcm6358-huawei-hg556a-b.dts
index 716c6227f8..d5f162846d 100644
--- a/target/linux/bmips/dts/bcm6358-huawei-hg556a-b.dts
+++ b/target/linux/bmips/dts/bcm6358-huawei-hg556a-b.dts
@@ -3,17 +3,14 @@
#include "bcm6358.dtsi"
/ {
- compatible = "huawei,hg556a-b", "brcm,bcm6358";
model = "Huawei EchoLife HG556a (version B)";
+ compatible = "huawei,hg556a-b", "brcm,bcm6358";
aliases {
led-boot = &led_power_red;
led-failsafe = &led_power_red;
led-running = &led_power_red;
led-upgrade = &led_power_red;
-
- led-dsl = &led_dsl_red;
- led-usb = &led_hspa_red;
};
keys {
@@ -57,12 +54,12 @@
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
- led_hspa_red: led@1 {
+ led@1 {
label = "red:hspa";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
- led_dsl_red: led@2 {
+ led@2 {
label = "red:dsl";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
diff --git a/target/linux/bmips/dts/bcm6362-huawei-hg253s-v2.dts b/target/linux/bmips/dts/bcm6362-huawei-hg253s-v2.dts
index 2a9a6c559a..f562bcd9b2 100644
--- a/target/linux/bmips/dts/bcm6362-huawei-hg253s-v2.dts
+++ b/target/linux/bmips/dts/bcm6362-huawei-hg253s-v2.dts
@@ -10,10 +10,6 @@
led-boot = &led_phone_green;
led-failsafe = &led_phone_green;
led-upgrade = &led_phone_green;
-
- led-internet = &led_internet_green;
- led-usb = &led_usb_green;
- led-wireless = &led_wireless_green;
};
keys {
@@ -50,7 +46,7 @@
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
- led_usb_green: led@30 {
+ led@30 {
label = "green:usb";
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
};
@@ -74,13 +70,13 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_leds>;
- led_internet_green: led@3 {
+ led@3 {
reg = <3>;
active-low;
label = "green:internet";
};
- led_wireless_green: led@5 {
+ led@5 {
reg = <5>;
active-low;
label = "green:wifi";
diff --git a/target/linux/bmips/dts/bcm6362-netgear-dgnd3700-v2.dts b/target/linux/bmips/dts/bcm6362-netgear-dgnd3700-v2.dts
index ddcde2b688..46bb3e8bf6 100644
--- a/target/linux/bmips/dts/bcm6362-netgear-dgnd3700-v2.dts
+++ b/target/linux/bmips/dts/bcm6362-netgear-dgnd3700-v2.dts
@@ -11,12 +11,6 @@
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-ethernet = &led_ethernet_green;
- led-internet = &led_internet_green;
- led-usb = &led_usb1_green;
- led-usb2 = &led_usb2_green;
};
keys {
@@ -48,7 +42,7 @@
leds {
compatible = "gpio-leds";
- led_dsl_green: led@28 {
+ led@28 {
label = "green:dsl";
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
@@ -56,6 +50,7 @@
led_power_red: led@34 {
label = "red:power";
gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
+ panic-indicator;
};
};
};
@@ -82,7 +77,7 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led>;
- led_internet_green: led@1 {
+ led@1 {
reg = <1>;
active-low;
label = "green:internet";
@@ -99,13 +94,13 @@
label = "green:wps";
};
- led_usb1_green: led@10 {
+ led@10 {
reg = <10>;
active-low;
label = "green:usb1";
};
- led_usb2_green: led@11 {
+ led@11 {
reg = <11>;
active-low;
label = "green:usb2";
@@ -117,7 +112,7 @@
label = "amber:internet";
};
- led_ethernet_green: led@13 {
+ led@13 {
reg = <13>;
active-low;
label = "green:ethernet";
diff --git a/target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts b/target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts
index 60029fe7f8..e67db8b6bd 100644
--- a/target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts
+++ b/target/linux/bmips/dts/bcm6368-comtrend-vr-3025u.dts
@@ -11,9 +11,6 @@
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
-
- led-dsl = &led_dsl_green;
- led-internet = &led_internet_green;
};
keys {
@@ -31,12 +28,12 @@
leds {
compatible = "gpio-leds";
- led_dsl_green: led@2 {
+ led@2 {
label = "green:dsl";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
- led_internet_green: led@5 {
+ led@5 {
label = "green:internet";
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
@@ -49,6 +46,7 @@
led_power_red: led@24 {
label = "red:power";
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
+ panic-indicator;
};
led@31 {
diff --git a/target/linux/bmips/dts/bcm6368-netgear-dgnd3700.dtsi b/target/linux/bmips/dts/bcm6368-netgear-dgnd3700.dtsi
index 2299611d55..7449455631 100644
--- a/target/linux/bmips/dts/bcm6368-netgear-dgnd3700.dtsi
+++ b/target/linux/bmips/dts/bcm6368-netgear-dgnd3700.dtsi
@@ -59,14 +59,14 @@
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
- /* usb front */
led@13 {
+ /* Front USB port */
label = "green:usb2";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
- /* usb back */
led@14 {
+ /* Back USB port */
label = "green:usb1";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
@@ -85,7 +85,6 @@
led_power_green: led@24 {
label = "green:power";
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
- default-state = "on";
};
led@26 {
diff --git a/target/linux/bmips/dts/bcm6368-observa-vh4032n.dts b/target/linux/bmips/dts/bcm6368-observa-vh4032n.dts
index 4a4cca0982..14fbd856f8 100644
--- a/target/linux/bmips/dts/bcm6368-observa-vh4032n.dts
+++ b/target/linux/bmips/dts/bcm6368-observa-vh4032n.dts
@@ -58,12 +58,12 @@
led_power_blue: led@22 {
label = "blue:power";
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
- default-state = "on";
};
led_power_red: led@24 {
label = "red:power";
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
+ panic-indicator;
};
led@25 {
diff --git a/target/linux/bmips/dts/bcm6369-netgear-evg2000.dts b/target/linux/bmips/dts/bcm6369-netgear-evg2000.dts
index 9f03c9e4dc..460c88f755 100644
--- a/target/linux/bmips/dts/bcm6369-netgear-evg2000.dts
+++ b/target/linux/bmips/dts/bcm6369-netgear-evg2000.dts
@@ -63,12 +63,12 @@
led_power_green: led@22 {
label = "green:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
- default-state = "on";
};
led_power_red: led@23 {
label = "red:power";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
+ panic-indicator;
};
led@24 {