Skip to content

Commit

Permalink
mpc85xx: Add QCA8327 LED nodes to tl-wdr4900-v1 dts
Browse files Browse the repository at this point in the history
This commit introduces led nodes in tl-wdr4900-v1 dts.
It allows to configure switch leds from userspace.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: openwrt#16226
Signed-off-by: Robert Marko <robimarko@gmail.com>
  • Loading branch information
CHKDSK88 authored and robimarko committed Aug 23, 2024
1 parent 71c6d99 commit cf765b1
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -185,30 +185,90 @@

nvmem-cells = <&macaddr_uboot_4fc00 1>;
nvmem-cell-names = "mac-address";

leds {
#address-cells = <1>;
#size-cells = <0>;

led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WAN;
default-state = "keep";
};
};
};

port@2 {
reg = <2>;
label = "lan1";
phy-handle = <&phy_port2>;

leds {
#address-cells = <1>;
#size-cells = <0>;

led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
};

port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&phy_port3>;

leds {
#address-cells = <1>;
#size-cells = <0>;

led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
};

port@4 {
reg = <4>;
label = "lan3";
phy-handle = <&phy_port4>;

leds {
#address-cells = <1>;
#size-cells = <0>;

led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
};

port@5 {
reg = <5>;
label = "lan4";
phy-handle = <&phy_port5>;

leds {
#address-cells = <1>;
#size-cells = <0>;

led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
};
};
};
Expand Down

0 comments on commit cf765b1

Please sign in to comment.