Skip to content

Commit

Permalink
add new patch
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilOlaf authored Jan 28, 2025
1 parent 964a72a commit 6a30050
Showing 1 changed file with 18 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: John Doe <[email protected]>
Date: Mon, 27 Jan 2025 14:11:28 +0000
Subject: Patching kernel rockchip64 files
arch/arm64/boot/dts/rockchip/rk3566-nanopi-r3s.dts
drivers/net/ethernet/realtek/r8169_main.c drivers/net/phy/realtek.c
Date: Tue, 28 Jan 2025 12:13:35 +0800
Subject: Patching NanoPi-R3S LEDs

Signed-off-by: John Doe <[email protected]>
---
arch/arm64/boot/dts/rockchip/rk3566-nanopi-r3s.dts | 42 +++++++---
arch/arm64/boot/dts/rockchip/rk3566-nanopi-r3s.dts | 41 +++++++---
drivers/net/ethernet/realtek/r8169_main.c | 11 +++
drivers/net/phy/realtek.c | 11 +++
3 files changed, 54 insertions(+), 10 deletions(-)
3 files changed, 53 insertions(+), 10 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3566-nanopi-r3s.dts b/arch/arm64/boot/dts/rockchip/rk3566-nanopi-r3s.dts
index fb1f65c86..4589ed45b 100644
index fb1f65c86..553a9e599 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-nanopi-r3s.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3566-nanopi-r3s.dts
@@ -51,21 +51,24 @@ gpio-leds {
@@ -50,23 +50,25 @@ gpio-leds {

power_led: led-0 {
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_POWER;
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
default-state = "on";
- default-state = "on";
+ linux,default-trigger = "heartbeat";
};

lan_led: led-1 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
+ function-enumerator = <2>;
gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "r8169-0-100:00:link";
};

wan_led: led-2 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WAN;
+ function-enumerator = <3>;
gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "stmmac-0:01:link";
};
};

vcc3v3_sys: regulator-vcc3v3-sys {
@@ -135,22 +138,31 @@ &cpu2 {
compatible = "regulator-fixed";
@@ -135,22 +137,31 @@ &cpu2 {
&cpu3 {
cpu-supply = <&vdd_cpu>;
};
Expand Down Expand Up @@ -76,14 +76,9 @@ index fb1f65c86..4589ed45b 100644

&gpu {
mali-supply = <&vdd_gpu>;
@@ -403,25 +415,35 @@ hym8563: rtc@51 {
};

&mdio1 {
rgmii_phy1: ethernet-phy@1 {
@@ -407,22 +418,32 @@ rgmii_phy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
- reg = <1>;
+ reg = <0x1>;
reg = <1>;
interrupt-parent = <&gpio4>;
interrupts = <RK_PC3 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
Expand All @@ -100,6 +95,7 @@ index fb1f65c86..4589ed45b 100644
pinctrl-names = "default";
pinctrl-0 = <&pcie_reset_h>;
reset-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
status = "okay";
+
+ pcie@0,0 {
+ reg = <0x00000000 0 0 0 0>;
Expand All @@ -112,12 +108,12 @@ index fb1f65c86..4589ed45b 100644
+ realtek,ledsel = <0x870>;
+ };
+ };
status = "okay";
};

&pinctrl {
gpio-leds {
@@ -437,12 +459,12 @@ wan_led_pin: wan-led-pin {
lan_led_pin: lan-led-pin {
@@ -437,12 +458,12 @@ wan_led_pin: wan-led-pin {
rockchip,pins = <3 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
Expand Down Expand Up @@ -219,3 +215,4 @@ index f65d7f1f3..f5d831924 100644
dev_err(dev, "clkout configuration failed: %pe\n",
--
Created with Armbian build tools https://github.com/armbian/build

0 comments on commit 6a30050

Please sign in to comment.