rockchip: switch to use upstream phy led binding for nanopi r5s
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> (cherry picked from commit 594e1e03a1e7ca69c3f9e3a1923f6156cca7be3d)
This commit is contained in:
@@ -54,6 +54,16 @@ boot() {
|
||||
led_set "enp1s0-2::lan" "link_10 link_100 link_1000" "0"
|
||||
led_set "enp1s0-2::lan" "rx tx" "1"
|
||||
;;
|
||||
friendlyarm,nanopi-r5s)
|
||||
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"
|
||||
led_set "stmmac-0:01:amber:lan" "rx tx" "0"
|
||||
led_set "stmmac-0:01:green:lan" "trigger" "netdev"
|
||||
led_set "stmmac-0:01:green:lan" "device_name" "eth0"
|
||||
led_set "stmmac-0:01:green:lan" "link_10 link_100 link_1000" "0"
|
||||
led_set "stmmac-0:01:green:lan" "rx tx" "1"
|
||||
;;
|
||||
huake,guangmiao-g4c)
|
||||
led_set "enp1s0-0::lan" "link_10 link_100 link_1000" "1"
|
||||
led_set "enp1s0-0::lan" "rx tx" "0"
|
||||
|
||||
@@ -320,15 +320,33 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
|
||||
&pinctrl {
|
||||
--- a/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts
|
||||
+++ b/arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts
|
||||
@@ -78,6 +78,7 @@
|
||||
@@ -78,6 +78,25 @@
|
||||
reg = <1>;
|
||||
pinctrl-0 = <ð_phy0_reset_pin>;
|
||||
pinctrl-names = "default";
|
||||
+ 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";
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
};
|
||||
|
||||
@@ -85,6 +86,19 @@
|
||||
@@ -85,6 +104,19 @@
|
||||
num-lanes = <1>;
|
||||
reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
@@ -348,7 +366,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
|
||||
};
|
||||
|
||||
&pcie30phy {
|
||||
@@ -97,6 +111,19 @@
|
||||
@@ -97,6 +129,19 @@
|
||||
reset-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
|
||||
vpcie3v3-supply = <&vcc3v3_pcie>;
|
||||
status = "okay";
|
||||
|
||||
Reference in New Issue
Block a user