rockchip64: rewrite patches against rc6

This commit is contained in:
EvilOlaf 2026-01-20 04:44:10 +00:00 committed by Igor
parent ac46a2b965
commit 58a7ec95cb
9 changed files with 48 additions and 49 deletions

View File

@ -10,8 +10,8 @@ is the complete set of changes actually done.
Signed-off-by: Aditya Prayoga <aditya@kobol.io>
---
arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts | 716 ++++++++--
1 file changed, 635 insertions(+), 81 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts | 735 +++++++++-
1 file changed, 654 insertions(+), 81 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
index 111111111111..222222222222 100644
@ -347,7 +347,7 @@ index 111111111111..222222222222 100644
};
&cpu_l0 {
@@ -275,7 +447,22 @@ &cpu_l3 {
@@ -275,7 +455,22 @@ &cpu_l3 {
cpu-supply = <&vdd_cpu_l>;
};
@ -370,7 +370,7 @@ index 111111111111..222222222222 100644
status = "okay";
};
@@ -295,6 +482,11 @@ &gmac {
@@ -295,6 +490,11 @@ &gmac {
status = "okay";
};
@ -382,7 +382,7 @@ index 111111111111..222222222222 100644
&i2c0 {
clock-frequency = <400000>;
i2c-scl-rising-time-ns = <168>;
@@ -310,6 +502,7 @@ rk808: pmic@1b {
@@ -310,6 +510,7 @@ rk808: pmic@1b {
pinctrl-names = "default";
pinctrl-0 = <&pmic_int_l>;
system-power-controller;
@ -390,7 +390,7 @@ index 111111111111..222222222222 100644
vcc1-supply = <&vcc5v0_sys>;
vcc2-supply = <&vcc5v0_sys>;
vcc3-supply = <&vcc5v0_sys>;
@@ -326,6 +519,19 @@ rk808: pmic@1b {
@@ -326,6 +527,19 @@ rk808: pmic@1b {
#clock-cells = <1>;
regulators {
@ -410,7 +410,7 @@ index 111111111111..222222222222 100644
vdd_cpu_l: DCDC_REG2 {
regulator-name = "vdd_cpu_l";
regulator-always-on;
@@ -333,19 +539,48 @@ vdd_cpu_l: DCDC_REG2 {
@@ -333,19 +547,48 @@ vdd_cpu_l: DCDC_REG2 {
regulator-min-microvolt = <750000>;
regulator-max-microvolt = <1350000>;
regulator-ramp-delay = <6001>;
@ -460,7 +460,7 @@ index 111111111111..222222222222 100644
regulator-state-mem {
regulator-on-in-suspend;
regulator-suspend-microvolt = <1800000>;
@@ -358,25 +593,61 @@ vcc_sdio_s0: LDO_REG4 {
@@ -358,25 +601,61 @@ vcc_sdio_s0: LDO_REG4 {
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3000000>;
@ -524,7 +524,7 @@ index 111111111111..222222222222 100644
};
};
@@ -384,12 +655,33 @@ vdd_cpu_b: regulator@40 {
@@ -384,12 +663,33 @@ vdd_cpu_b: regulator@40 {
compatible = "silergy,syr827";
reg = <0x40>;
fcs,suspend-voltage-selector = <1>;
@ -558,7 +558,7 @@ index 111111111111..222222222222 100644
vin-supply = <&vcc5v0_sys>;
regulator-state-mem {
@@ -404,17 +696,108 @@ &i2c2 {
@@ -404,17 +704,108 @@ &i2c2 {
i2c-scl-falling-time-ns = <30>;
status = "okay";
@ -669,7 +669,7 @@ index 111111111111..222222222222 100644
status = "okay";
};
@@ -427,6 +803,7 @@ &pcie0 {
@@ -427,6 +818,7 @@ &pcie0 {
max-link-speed = <2>;
num-lanes = <2>;
pinctrl-names = "default";
@ -677,7 +677,7 @@ index 111111111111..222222222222 100644
status = "okay";
vpcie12v-supply = <&vcc12v_dcin>;
@@ -436,36 +813,116 @@ &pcie0 {
@@ -436,36 +828,116 @@ &pcie0 {
};
&pinctrl {
@ -747,10 +747,8 @@ index 111111111111..222222222222 100644
+ system_led: sys-led {
+ rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>,
+ <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
};
- sys_red_led_on: sys-red-led-on {
- rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
+ };
+
+ sata_err_led: sata-err-led {
+ rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_down>,
+ <2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_down>,
@ -763,8 +761,10 @@ index 111111111111..222222222222 100644
+ misc {
+ pca0_pins: pca0-pins {
+ rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+
};
- sys_red_led_on: sys-red-led-on {
- rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
+ wake_on_lan: wake-on-lan {
+ rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
};
@ -802,7 +802,7 @@ index 111111111111..222222222222 100644
hdd_a_power_en: hdd-a-power-en {
rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
};
@@ -485,7 +942,7 @@ usb_lan_en: usb-lan-en {
@@ -485,7 +957,7 @@ usb_lan_en: usb-lan-en {
vcc3v0-sd {
sdmmc0_pwr_h: sdmmc0-pwr-h {
@ -811,7 +811,7 @@ index 111111111111..222222222222 100644
};
};
};
@@ -505,10 +962,28 @@ &pwm1 {
@@ -505,10 +977,28 @@ &pwm1 {
status = "okay";
};
@ -840,7 +840,7 @@ index 111111111111..222222222222 100644
vqmmc-supply = <&vcc1v8_sys_s0>;
status = "okay";
};
@@ -516,8 +991,9 @@ &sdhci {
@@ -516,8 +1006,9 @@ &sdhci {
&sdmmc {
bus-width = <4>;
cap-sd-highspeed;
@ -851,7 +851,7 @@ index 111111111111..222222222222 100644
pinctrl-names = "default";
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
vmmc-supply = <&vcc3v0_sd>;
@@ -546,6 +1022,27 @@ &spi5 {
@@ -546,6 +1037,27 @@ &spi5 {
status = "okay";
};
@ -879,7 +879,7 @@ index 111111111111..222222222222 100644
&tcphy1 {
/* phy for &usbdrd_dwc3_1 */
status = "okay";
@@ -559,61 +1056,122 @@ &tsadc {
@@ -559,61 +1071,122 @@ &tsadc {
status = "okay";
};

View File

@ -59,7 +59,7 @@ diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64
index 111111111111..222222222222 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
@@ -502,6 +502,7 @@ rk808: pmic@1b {
@@ -510,6 +510,7 @@ rk808: pmic@1b {
pinctrl-names = "default";
pinctrl-0 = <&pmic_int_l>;
system-power-controller;

View File

@ -12,7 +12,7 @@ diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64
index 111111111111..222222222222 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
@@ -800,7 +800,6 @@ &pcie_phy {
@@ -815,7 +815,6 @@ &pcie_phy {
};
&pcie0 {

View File

@ -5,8 +5,8 @@ Subject: Add dp alt mode to pinebook pro
Signed-off-by: hyx0329 <hyx0329@outlook.com>
---
arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts | 36 +++++++++-
1 file changed, 33 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts | 35 +++++++++-
1 file changed, 32 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts
index 111111111111..222222222222 100644
@ -48,7 +48,7 @@ index 111111111111..222222222222 100644
connector {
compatible = "usb-c-connector";
@@ -693,10 +709,19 @@ connector {
@@ -693,10 +708,19 @@ connector {
op-sink-microwatt = <1000000>;
power-role = "dual";
sink-pdos =
@ -70,7 +70,7 @@ index 111111111111..222222222222 100644
ports {
#address-cells = <1>;
@@ -982,6 +1007,7 @@ spiflash: flash@0 {
@@ -982,6 +1006,7 @@ spiflash: flash@0 {
};
&tcphy0 {
@ -78,7 +78,7 @@ index 111111111111..222222222222 100644
status = "okay";
};
@@ -1015,6 +1041,8 @@ &tsadc {
@@ -1015,6 +1040,8 @@ &tsadc {
&u2phy0 {
status = "okay";
@ -87,7 +87,7 @@ index 111111111111..222222222222 100644
u2phy0_otg: otg-port {
status = "okay";
@@ -1091,7 +1119,9 @@ &usbdrd3_0 {
@@ -1091,7 +1118,9 @@ &usbdrd3_0 {
};
&usbdrd_dwc3_0 {

View File

@ -20,7 +20,7 @@ diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/adm
index 111111111111..222222222222 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -5205,6 +5205,14 @@ Kernel parameters
@@ -5240,6 +5240,14 @@ Kernel parameters
nomsi Do not use MSI for native PCIe PME signaling (this makes
all PCIe root ports use INTx for all services).

View File

@ -86,7 +86,7 @@ index 111111111111..222222222222 100644
dwc3_core_soft_reset(dwc);
dwc3_event_buffers_setup(dwc);
@@ -1852,6 +1885,8 @@ static void dwc3_get_properties(struct dwc3 *dwc)
@@ -1854,6 +1887,8 @@ static void dwc3_get_properties(struct dwc3 *dwc)
dwc->dis_split_quirk = device_property_read_bool(dev,
"snps,dis-split-quirk");
@ -95,7 +95,7 @@ index 111111111111..222222222222 100644
dwc->lpm_nyet_threshold = lpm_nyet_threshold;
dwc->tx_de_emphasis = tx_de_emphasis;
@@ -2451,6 +2486,7 @@ static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg)
@@ -2453,6 +2488,7 @@ static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg)
switch (dwc->current_dr_role) {
case DWC3_GCTL_PRTCAP_DEVICE:
@ -103,7 +103,7 @@ index 111111111111..222222222222 100644
if (pm_runtime_suspended(dwc->dev))
break;
ret = dwc3_gadget_suspend(dwc);
@@ -2515,11 +2551,12 @@ static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg)
@@ -2517,11 +2553,12 @@ static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg)
switch (dwc->current_dr_role) {
case DWC3_GCTL_PRTCAP_DEVICE:
@ -117,7 +117,7 @@ index 111111111111..222222222222 100644
dwc3_gadget_resume(dwc);
break;
case DWC3_GCTL_PRTCAP_HOST:
@@ -2583,6 +2620,7 @@ static int dwc3_runtime_checks(struct dwc3 *dwc)
@@ -2585,6 +2622,7 @@ static int dwc3_runtime_checks(struct dwc3 *dwc)
{
switch (dwc->current_dr_role) {
case DWC3_GCTL_PRTCAP_DEVICE:
@ -125,7 +125,7 @@ index 111111111111..222222222222 100644
if (dwc->connected)
return -EBUSY;
break;
@@ -2621,6 +2659,7 @@ int dwc3_runtime_resume(struct dwc3 *dwc)
@@ -2623,6 +2661,7 @@ int dwc3_runtime_resume(struct dwc3 *dwc)
switch (dwc->current_dr_role) {
case DWC3_GCTL_PRTCAP_DEVICE:
@ -133,7 +133,7 @@ index 111111111111..222222222222 100644
if (dwc->pending_events) {
pm_runtime_put(dev);
dwc->pending_events = false;
@@ -2645,6 +2684,7 @@ int dwc3_runtime_idle(struct dwc3 *dwc)
@@ -2647,6 +2686,7 @@ int dwc3_runtime_idle(struct dwc3 *dwc)
switch (dwc->current_dr_role) {
case DWC3_GCTL_PRTCAP_DEVICE:
@ -169,7 +169,7 @@ index 111111111111..222222222222 100644
* @susphy_state: state of DWC3_GUSB2PHYCFG_SUSPHY + DWC3_GUSB3PIPECTL_SUSPHY
* before PM suspend.
* @imod_interval: set the interrupt moderation interval in 250ns
@@ -1406,6 +1416,8 @@ struct dwc3 {
@@ -1407,6 +1417,8 @@ struct dwc3 {
unsigned suspended:1;
unsigned susphy_state:1;

View File

@ -18,10 +18,10 @@ Signed-off-by: Ondrej Jirman <megi@xff.cz>
1 file changed, 45 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec/altmodes/displayport.c
index d96ab106a980b..2ef5fe61421be 100644
index 111111111111..222222222222 100644
--- a/drivers/usb/typec/altmodes/displayport.c
+++ b/drivers/usb/typec/altmodes/displayport.c
@@ -123,11 +123,29 @@ static int dp_altmode_configure(struct dp_altmode *dp, u8 con)
@@ -177,11 +177,29 @@ static int dp_altmode_configure(struct dp_altmode *dp, u8 con)
/* Account for active cable capabilities */
if (dp->plug_prime)
pin_assign &= DP_CAP_UFP_D_PIN_ASSIGN(dp->plug_prime->vdo);
@ -51,7 +51,7 @@ index d96ab106a980b..2ef5fe61421be 100644
/* Determining the initial pin assignment. */
if (!DP_CONF_GET_PIN_ASSIGN(dp->data.conf)) {
/* Is USB together with DP preferred */
@@ -757,16 +775,38 @@ int dp_altmode_probe(struct typec_altmode *alt)
@@ -814,16 +832,38 @@ int dp_altmode_probe(struct typec_altmode *alt)
struct typec_altmode *plug = typec_altmode_get_plug(alt, TYPEC_PLUG_SOP_P);
struct fwnode_handle *fwnode;
struct dp_altmode *dp;

View File

@ -1,16 +1,15 @@
From bd96d53d233d7c476e4e681e9cba7847a6fc0db6 Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Alex Ling <ling_kasim@hotmail.com>
Date: Sat, 10 Jan 2026 11:47:20 +0800
Subject: [PATCH] arm64: dts: Automatic fan speed and USB 3.0 Type-A port
support
Subject: arm64: dts: Automatic fan speed and USB 3.0 Type-A port support
Signed-off-by: Alex Ling <ling_kasim@hotmail.com>
---
.../boot/dts/rockchip/rk3588s-roc-pc.dts | 35 ++++++++++++++++++-
arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts | 35 +++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
index 449e457ca..a28445845 100644
index 111111111111..222222222222 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
@@ -364,7 +364,35 @@ rgmii_phy1: ethernet-phy@1 {
@ -63,5 +62,5 @@ index 449e457ca..a28445845 100644
status = "okay";
};
--
2.43.0
Armbian

View File

@ -102,7 +102,7 @@ diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boot/dts
index 111111111111..222222222222 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
@@ -2257,6 +2257,18 @@ rng@fe378000 {
@@ -2268,6 +2268,18 @@ rng@fe378000 {
resets = <&scmi_reset SCMI_SRST_H_TRNG_NS>;
};