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>
This commit is contained in:
Álvaro Fernández Rojas 2023-06-11 10:14:25 +02:00
parent 13579e6441
commit 0ea4866d65
12 changed files with 40 additions and 71 deletions

View File

@ -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";
};

View File

@ -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";

View File

@ -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";
};

View File

@ -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;
};
};

View File

@ -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";

View File

@ -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>;
};

View File

@ -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";

View File

@ -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";

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {