-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rockchip: sync upstream 6.6 source code
- Loading branch information
1 parent
55b08d2
commit fac34a2
Showing
9 changed files
with
168 additions
and
27 deletions.
There are no files selected for viewing
Empty file modified
0
target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3399-king3399.dts
100755 → 100644
Empty file.
Empty file modified
0
target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3566-panther-x2.dts
100755 → 100644
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
target/linux/rockchip/patches-6.6/100-rockchip-use-system-LED-for-OpenWrt.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
From 6731d2c9039fbe1ecf21915eab3acee0a999508a Mon Sep 17 00:00:00 2001 | ||
From: David Bauer <[email protected]> | ||
Date: Fri, 10 Jul 2020 21:38:20 +0200 | ||
Subject: [PATCH] rockchip: use system LED for OpenWrt | ||
|
||
Use the SYS LED on the casing for showing system status. | ||
|
||
This patch is kept separate from the NanoPi R2S support patch, as i plan | ||
on submitting the device support upstream. | ||
|
||
Signed-off-by: David Bauer <[email protected]> | ||
--- | ||
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts | 9 ++++++++- | ||
1 file changed, 8 insertions(+), 1 deletion(-) | ||
|
||
--- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts | ||
@@ -6,6 +6,7 @@ | ||
/dts-v1/; | ||
|
||
#include <dt-bindings/input/input.h> | ||
+#include <dt-bindings/leds/common.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include "rk3328.dtsi" | ||
|
||
@@ -16,6 +17,11 @@ | ||
aliases { | ||
ethernet1 = &rtl8153; | ||
mmc0 = &sdmmc; | ||
+ | ||
+ led-boot = &sys_led; | ||
+ led-failsafe = &sys_led; | ||
+ led-running = &sys_led; | ||
+ led-upgrade = &sys_led; | ||
}; | ||
|
||
chosen { | ||
@@ -48,19 +54,22 @@ | ||
pinctrl-names = "default"; | ||
|
||
lan_led: led-0 { | ||
+ color = <LED_COLOR_ID_GREEN>; | ||
+ function = LED_FUNCTION_LAN; | ||
gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; | ||
- label = "nanopi-r2s:green:lan"; | ||
}; | ||
|
||
sys_led: led-1 { | ||
+ color = <LED_COLOR_ID_RED>; | ||
+ function = LED_FUNCTION_STATUS; | ||
gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>; | ||
- label = "nanopi-r2s:red:sys"; | ||
default-state = "on"; | ||
}; | ||
|
||
wan_led: led-2 { | ||
+ color = <LED_COLOR_ID_GREEN>; | ||
+ function = LED_FUNCTION_WAN; | ||
gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; | ||
- label = "nanopi-r2s:green:wan"; | ||
}; | ||
}; | ||
|
||
--- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | ||
@@ -13,6 +13,11 @@ | ||
aliases { | ||
mmc0 = &sdmmc; | ||
mmc1 = &emmc; | ||
+ | ||
+ led-boot = &power_led; | ||
+ led-failsafe = &power_led; | ||
+ led-running = &power_led; | ||
+ led-upgrade = &power_led; | ||
}; | ||
|
||
chosen { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,16 @@ userspace or following a kernel panic is always working. | |
|
||
Signed-off-by: David Bauer <[email protected]> | ||
|
||
--- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts | ||
@@ -335,7 +335,6 @@ | ||
sd-uhs-sdr12; | ||
sd-uhs-sdr25; | ||
sd-uhs-sdr50; | ||
- sd-uhs-sdr104; | ||
vmmc-supply = <&vcc_sd>; | ||
vqmmc-supply = <&vcc_sdio>; | ||
status = "okay"; | ||
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts | ||
@@ -121,6 +121,11 @@ | ||
|
16 changes: 16 additions & 0 deletions
16
target/linux/rockchip/patches-6.6/106-r4s-openwrt-leds.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts | ||
@@ -19,6 +19,13 @@ | ||
model = "FriendlyElec NanoPi R4S"; | ||
compatible = "friendlyarm,nanopi-r4s", "rockchip,rk3399"; | ||
|
||
+ aliases { | ||
+ led-boot = &sys_led; | ||
+ led-failsafe = &sys_led; | ||
+ led-running = &sys_led; | ||
+ led-upgrade = &sys_led; | ||
+ }; | ||
+ | ||
/delete-node/ display-subsystem; | ||
|
||
gpio-leds { |
40 changes: 40 additions & 0 deletions
40
...linux/rockchip/patches-6.6/114-arm64-dts-rockchip-Update-LED-properties-for-Orange-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
From d2166e3b3680bd2b206aebf1e1ce4c0d346f3c50 Mon Sep 17 00:00:00 2001 | ||
From: Tianling Shen <[email protected]> | ||
Date: Fri, 19 May 2023 12:10:52 +0800 | ||
Subject: [PATCH] arm64: dts: rockchip: Update LED properties for Orange Pi R1 | ||
Plus | ||
|
||
Add OpenWrt's LED aliases for showing system status. | ||
|
||
Signed-off-by: Tianling Shen <[email protected]> | ||
--- | ||
.../dts/rockchip/rk3328-orangepi-r1-plus.dts | 17 +++++++++-------- | ||
1 file changed, 9 insertions(+), 8 deletions(-) | ||
|
||
--- a/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dts | ||
@@ -17,6 +17,11 @@ | ||
aliases { | ||
ethernet1 = &rtl8153; | ||
mmc0 = &sdmmc; | ||
+ | ||
+ led-boot = &status_led; | ||
+ led-failsafe = &status_led; | ||
+ led-running = &status_led; | ||
+ led-upgrade = &status_led; | ||
}; | ||
|
||
chosen { | ||
@@ -41,11 +46,10 @@ | ||
gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
- led-1 { | ||
+ status_led: led-1 { | ||
function = LED_FUNCTION_STATUS; | ||
color = <LED_COLOR_ID_RED>; | ||
gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>; | ||
- linux,default-trigger = "heartbeat"; | ||
}; | ||
|
||
led-2 { |
24 changes: 24 additions & 0 deletions
24
...linux/rockchip/patches-6.6/115-arm64-dts-rockchip-add-LED-configuration-to-Orange-P.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From b46a530d12ada422b9d5b2b97059e0d3ed950b40 Mon Sep 17 00:00:00 2001 | ||
From: Tianling Shen <[email protected]> | ||
Date: Fri, 19 May 2023 12:38:04 +0800 | ||
Subject: [PATCH] arm64: dts: rockchip: add LED configuration to Orange Pi R1 | ||
Plus | ||
|
||
Add the correct value for the RTL8153 LED configuration register to | ||
match the blink behavior of the other port on the device. | ||
|
||
Signed-off-by: Tianling Shen <[email protected]> | ||
--- | ||
arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dts | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
--- a/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dts | ||
@@ -365,6 +365,7 @@ | ||
rtl8153: device@2 { | ||
compatible = "usbbda,8153"; | ||
reg = <2>; | ||
+ realtek,led-data = <0x87>; | ||
}; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,8 @@ Signed-off-by: hmz007 <[email protected]> | |
--- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts | ||
@@ -7,6 +7,7 @@ | ||
|
||
#include <dt-bindings/input/input.h> | ||
#include <dt-bindings/leds/common.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
+#include "rk3328-dram-default-timing.dtsi" | ||
#include "rk3328.dtsi" | ||
|