rockchip: switch to use upstream phy led binding for nanopi r6s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit e52ec95379)
This commit is contained in:
@@ -65,7 +65,8 @@ boot() {
|
||||
led_set "enp1s0-2::lan" "link_10 link_100 link_1000" "0"
|
||||
led_set "enp1s0-2::lan" "rx tx" "1"
|
||||
;;
|
||||
friendlyarm,nanopi-r5s)
|
||||
friendlyarm,nanopi-r5s|\
|
||||
friendlyarm,nanopi-r6s)
|
||||
led_set "stmmac-0:01:amber:lan" "trigger" "netdev"
|
||||
led_set "stmmac-0:01:amber:lan" "device_name" "eth0"
|
||||
led_set "stmmac-0:01:amber:lan" "link_10 link_100 link_1000" "1"
|
||||
|
||||
@@ -264,7 +264,25 @@
|
||||
rgmii_phy1: ethernet-phy@1 {
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
reg = <1>;
|
||||
realtek,led-data = <0x6d60>;
|
||||
|
||||
leds {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
led@1 {
|
||||
reg = <1>;
|
||||
color = <LED_COLOR_ID_AMBER>;
|
||||
function = LED_FUNCTION_LAN;
|
||||
default-state = "keep";
|
||||
};
|
||||
|
||||
led@2 {
|
||||
reg = <2>;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_LAN;
|
||||
default-state = "keep";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user