Skip to content

Commit ee43699

Browse files
committed
rockchip64-6.18: rewrite kernel patches against 6.18.21
1 parent db136dc commit ee43699

9 files changed

+66
-73
lines changed

patch/kernel/archive/rockchip64-6.18/board-odroidm2-support-for-vu8s-panel.patch

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
From 348ea187b63901762119ba4cd79c7855513609e3 Mon Sep 17 00:00:00 2001
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Milivoje Legenovic <m.legenovic@gmail.com>
33
Date: Sat, 14 Mar 2026 23:11:33 +0100
4-
Subject: [PATCH 1/1] Odroid-M2: Add support for Hardkernel ODROID-Vu8S panel
4+
Subject: Odroid-M2: Add support for Hardkernel ODROID-Vu8S panel
55

66
Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
77
---
8-
.../boot/dts/rockchip/rk3588s-odroid-m2.dts | 135 +++++++++++
9-
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 228 ++++++++++++++++++
8+
arch/arm64/boot/dts/rockchip/rk3588s-odroid-m2.dts | 135 ++++++
9+
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 228 ++++++++++
1010
2 files changed, 363 insertions(+)
1111

1212
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-odroid-m2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-odroid-m2.dts
13-
index c27a1e3db6fa..f312246f2897 100644
13+
index 111111111111..222222222222 100644
1414
--- a/arch/arm64/boot/dts/rockchip/rk3588s-odroid-m2.dts
1515
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-odroid-m2.dts
1616
@@ -19,6 +19,47 @@ aliases {
@@ -115,9 +115,9 @@ index c27a1e3db6fa..f312246f2897 100644
115115
+};
116116
+
117117
&gmac1 {
118-
clock_in_out = "output";
118+
clock_in_out = "input";
119119
phy-handle = <&rgmii_phy1>;
120-
@@ -339,6 +429,20 @@ &i2c8 {
120+
@@ -341,6 +431,20 @@ &i2c8 {
121121
pinctrl-0 = <&i2c8m2_xfer>;
122122
status = "okay";
123123

@@ -138,7 +138,7 @@ index c27a1e3db6fa..f312246f2897 100644
138138
usbc0: usb-typec@22 {
139139
compatible = "fcs,fusb302";
140140
reg = <0x22>;
141-
@@ -450,6 +554,10 @@ lcd {
141+
@@ -454,6 +558,10 @@ lcd {
142142
lcd_pwren: lcd-pwren {
143143
rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
144144
};
@@ -149,7 +149,7 @@ index c27a1e3db6fa..f312246f2897 100644
149149
};
150150

151151
leds {
152-
@@ -487,6 +595,16 @@ pcf8563_int: pcf8563-int {
152+
@@ -497,6 +605,16 @@ rtl8211f_rst: rtl8211f-rst {
153153
};
154154
};
155155

@@ -166,7 +166,7 @@ index c27a1e3db6fa..f312246f2897 100644
166166
usb {
167167
usb2_host_pwren: usb2-host-pwren {
168168
rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
169-
@@ -512,6 +630,11 @@ &pwm0 {
169+
@@ -522,6 +640,11 @@ &pwm0 {
170170
status = "okay";
171171
};
172172

@@ -178,7 +178,7 @@ index c27a1e3db6fa..f312246f2897 100644
178178
&saradc {
179179
vref-supply = <&vcca_1v8_s0>;
180180
status = "okay";
181-
@@ -960,3 +1083,15 @@ vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
181+
@@ -970,3 +1093,15 @@ vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
182182
remote-endpoint = <&hdmi0_in_vp0>;
183183
};
184184
};
@@ -195,7 +195,7 @@ index c27a1e3db6fa..f312246f2897 100644
195195
+ };
196196
+};
197197
diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
198-
index ad4993b2f92a..8750f9961fd5 100644
198+
index 111111111111..222222222222 100644
199199
--- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
200200
+++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
201201
@@ -1611,6 +1611,207 @@ static const struct ili9881c_instr bsd1218_a101kl68_init[] = {
@@ -455,5 +455,5 @@ index ad4993b2f92a..8750f9961fd5 100644
455455
};
456456
MODULE_DEVICE_TABLE(of, ili9881c_of_match);
457457
--
458-
2.47.3
458+
Armbian
459459

patch/kernel/archive/rockchip64-6.18/board-orangepi5pro-net-phy-motorcomm-Support-YT8531S-PHY-in-YT6801-Ethe.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Yao Zi <me@ziyao.cc>
33
Date: Fri, 9 Jan 2026 09:34:44 +0000
4-
Subject: [PATCH 3/5] net: phy: motorcomm: Support YT8531S PHY in YT6801
5-
Ethernet controller
4+
Subject: net: phy: motorcomm: Support YT8531S PHY in YT6801 Ethernet
5+
controller
66

77
YT6801's internal PHY is confirmed as a GMII-capable variant of YT8531S
88
by a previous series[1] and reading PHY ID. Add support for
@@ -22,7 +22,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2222
1 file changed, 4 insertions(+)
2323

2424
diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c
25-
index b49897500a59..033920f7e0c7 100644
25+
index 111111111111..222222222222 100644
2626
--- a/drivers/net/phy/motorcomm.c
2727
+++ b/drivers/net/phy/motorcomm.c
2828
@@ -910,6 +910,10 @@ static int ytphy_rgmii_clk_delay_config(struct phy_device *phydev)
@@ -37,5 +37,5 @@ index b49897500a59..033920f7e0c7 100644
3737
return -EOPNOTSUPP;
3838
}
3939
--
40-
2.53.0
40+
Armbian
4141

patch/kernel/archive/rockchip64-6.18/board-orangepi5pro-net-stmmac-Add-generic-suspend-resume-helper-for-PCI.patch

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Yao Zi <ziyao@disroot.org>
33
Date: Mon, 24 Nov 2025 16:04:15 +0000
4-
Subject: [PATCH 1/5] net: stmmac: Add generic suspend/resume helper for
5-
PCI-based controllers
4+
Subject: net: stmmac: Add generic suspend/resume helper for PCI-based
5+
controllers
66

77
Most glue driver for PCI-based DWMAC controllers utilize similar
88
platform suspend/resume routines. Add a generic implementation to reduce
@@ -14,16 +14,14 @@ Reviewed-by: Yanteng Si <siyanteng@cqsoftware.com.cn>
1414
Link: https://patch.msgid.link/20251124160417.51514-2-ziyao@disroot.org
1515
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1616
---
17-
drivers/net/ethernet/stmicro/stmmac/Kconfig | 5 ++
18-
drivers/net/ethernet/stmicro/stmmac/Makefile | 1 +
19-
.../ethernet/stmicro/stmmac/stmmac_libpci.c | 48 +++++++++++++++++++
20-
.../ethernet/stmicro/stmmac/stmmac_libpci.h | 12 +++++
17+
drivers/net/ethernet/stmicro/stmmac/Kconfig | 5 +
18+
drivers/net/ethernet/stmicro/stmmac/Makefile | 1 +
19+
drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.c | 48 ++++++++++
20+
drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.h | 12 +++
2121
4 files changed, 66 insertions(+)
22-
create mode 100644 drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.c
23-
create mode 100644 drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.h
2422

2523
diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig
26-
index 9507131875b2..2f8bfe691184 100644
24+
index 111111111111..222222222222 100644
2725
--- a/drivers/net/ethernet/stmicro/stmmac/Kconfig
2826
+++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig
2927
@@ -339,6 +339,11 @@ config DWMAC_VISCONTI
@@ -39,7 +37,7 @@ index 9507131875b2..2f8bfe691184 100644
3937
tristate "Intel GMAC support"
4038
default X86
4139
diff --git a/drivers/net/ethernet/stmicro/stmmac/Makefile b/drivers/net/ethernet/stmicro/stmmac/Makefile
42-
index 51e068e26ce4..d813ef8bd3b8 100644
40+
index 111111111111..222222222222 100644
4341
--- a/drivers/net/ethernet/stmicro/stmmac/Makefile
4442
+++ b/drivers/net/ethernet/stmicro/stmmac/Makefile
4543
@@ -43,6 +43,7 @@ obj-$(CONFIG_DWMAC_VISCONTI) += dwmac-visconti.o
@@ -52,7 +50,7 @@ index 51e068e26ce4..d813ef8bd3b8 100644
5250
obj-$(CONFIG_DWMAC_LOONGSON) += dwmac-loongson.o
5351
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.c
5452
new file mode 100644
55-
index 000000000000..5c5dd502f79a
53+
index 000000000000..111111111111
5654
--- /dev/null
5755
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.c
5856
@@ -0,0 +1,48 @@
@@ -106,7 +104,7 @@ index 000000000000..5c5dd502f79a
106104
+MODULE_LICENSE("GPL");
107105
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.h b/drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.h
108106
new file mode 100644
109-
index 000000000000..71553184f982
107+
index 000000000000..111111111111
110108
--- /dev/null
111109
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_libpci.h
112110
@@ -0,0 +1,12 @@
@@ -123,5 +121,5 @@ index 000000000000..71553184f982
123121
+
124122
+#endif /* __STMMAC_LIBPCI_H__ */
125123
--
126-
2.53.0
124+
Armbian
127125

patch/kernel/archive/rockchip64-6.18/board-orangepi5pro-net-stmmac-Add-glue-driver-for-Motorcomm-YT6801-ethe.patch

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Yao Zi <me@ziyao.cc>
33
Date: Fri, 9 Jan 2026 09:34:45 +0000
4-
Subject: [PATCH 2/5] net: stmmac: Add glue driver for Motorcomm YT6801
5-
ethernet controller
4+
Subject: net: stmmac: Add glue driver for Motorcomm YT6801 ethernet controller
65

76
Motorcomm YT6801 is a PCIe ethernet controller based on DWMAC4 IP. It
87
integrates an GbE phy, supporting WOL, VLAN tagging and various types
@@ -21,14 +20,13 @@ Reviewed-by: Sai Krishna <saikrishnag@marvell.com>
2120
Link: https://patch.msgid.link/20260109093445.46791-4-me@ziyao.cc
2221
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2322
---
24-
drivers/net/ethernet/stmicro/stmmac/Kconfig | 9 +
25-
drivers/net/ethernet/stmicro/stmmac/Makefile | 1 +
26-
.../ethernet/stmicro/stmmac/dwmac-motorcomm.c | 384 ++++++++++++++++++
23+
drivers/net/ethernet/stmicro/stmmac/Kconfig | 9 +
24+
drivers/net/ethernet/stmicro/stmmac/Makefile | 1 +
25+
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c | 384 ++++++++++
2726
3 files changed, 394 insertions(+)
28-
create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
2927

3028
diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig
31-
index 2f8bfe691184..793e01f9998f 100644
29+
index 111111111111..222222222222 100644
3230
--- a/drivers/net/ethernet/stmicro/stmmac/Kconfig
3331
+++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig
3432
@@ -363,6 +363,15 @@ config DWMAC_LOONGSON
@@ -48,7 +46,7 @@ index 2f8bfe691184..793e01f9998f 100644
4846
tristate "STMMAC PCI bus support"
4947
depends on STMMAC_ETH && PCI
5048
diff --git a/drivers/net/ethernet/stmicro/stmmac/Makefile b/drivers/net/ethernet/stmicro/stmmac/Makefile
51-
index d813ef8bd3b8..bcae68b14809 100644
49+
index 111111111111..222222222222 100644
5250
--- a/drivers/net/ethernet/stmicro/stmmac/Makefile
5351
+++ b/drivers/net/ethernet/stmicro/stmmac/Makefile
5452
@@ -47,4 +47,5 @@ obj-$(CONFIG_STMMAC_LIBPCI) += stmmac_libpci.o
@@ -59,7 +57,7 @@ index d813ef8bd3b8..bcae68b14809 100644
5957
stmmac-pci-objs:= stmmac_pci.o
6058
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
6159
new file mode 100644
62-
index 000000000000..8b45b9cf7202
60+
index 000000000000..111111111111
6361
--- /dev/null
6462
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
6563
@@ -0,0 +1,384 @@
@@ -448,5 +446,5 @@ index 000000000000..8b45b9cf7202
448446
+MODULE_AUTHOR("Yao Zi <me@ziyao.cc>");
449447
+MODULE_LICENSE("GPL");
450448
--
451-
2.53.0
449+
Armbian
452450

patch/kernel/archive/rockchip64-6.18/board-orangepi5pro-net-stmmac-dwmac-motorcomm-Fix-compilation-errors-an.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: c127dev <contact@c127.dev>
33
Date: Thu, 26 Mar 2026 00:30:25 +0000
4-
Subject: [PATCH 5/5] net: stmmac: dwmac-motorcomm: Fix compilation errors and
5-
panics on kernel 6.18
4+
Subject: net: stmmac: dwmac-motorcomm: Fix compilation errors and panics on
5+
kernel 6.18
66

77
This patch fixes compilation issues and kernel panics that occur when
88
backporting the motorcomm driver by Yao Zi to the 6.18 kernel.
@@ -22,14 +22,14 @@ The fixes include:
2222

2323
Signed-off-by: c127dev <contact@c127.dev>
2424
---
25-
.../ethernet/stmicro/stmmac/dwmac-motorcomm.c | 20 ++++++++++++++++---
25+
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c | 20 ++++++++--
2626
1 file changed, 17 insertions(+), 3 deletions(-)
2727

2828
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
29-
index 61a197cd34ab..f149e3d93da4 100644
29+
index 111111111111..222222222222 100644
3030
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
3131
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
32-
@@ -210,7 +210,7 @@ motorcomm_default_plat_data(struct pci_dev *pdev)
32+
@@ -209,7 +209,7 @@ motorcomm_default_plat_data(struct pci_dev *pdev)
3333
struct plat_stmmacenet_data *plat;
3434
struct device *dev = &pdev->dev;
3535

@@ -38,7 +38,7 @@ index 61a197cd34ab..f149e3d93da4 100644
3838
if (!plat)
3939
return NULL;
4040

41-
@@ -234,11 +234,25 @@ motorcomm_default_plat_data(struct pci_dev *pdev)
41+
@@ -233,11 +233,25 @@ motorcomm_default_plat_data(struct pci_dev *pdev)
4242
plat->dma_cfg->eame = true;
4343
plat->dma_cfg->mixed_burst = true;
4444

@@ -67,5 +67,5 @@ index 61a197cd34ab..f149e3d93da4 100644
6767
plat->bus_id = pci_dev_id(pdev);
6868
plat->phy_interface = PHY_INTERFACE_MODE_GMII;
6969
--
70-
2.53.0
70+
Armbian
7171

patch/kernel/archive/rockchip64-6.18/board-orangepi5pro-net-stmmac-dwmac-motorcomm-fix-eFUSE-MAC-Address-Rea.patch

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: c127dev <contact@c127.dev>
33
Date: Sun, 15 Mar 2026 01:06:19 +0000
4-
Subject: [PATCH 4/5] net: stmmac: dwmac-motorcomm: fix eFUSE MAC Address Read
5-
Failure
4+
Subject: net: stmmac: dwmac-motorcomm: fix eFUSE MAC Address Read Failure
65

76
This patch fixes an issue where reading the MAC address from the eFUSE
87
fails due to a race condition.
@@ -19,11 +18,11 @@ eFUSE controller to load its internal data before returning valid reads.
1918

2019
Signed-off-by: c127dev <contact@c127.dev>
2120
---
22-
.../ethernet/stmicro/stmmac/dwmac-motorcomm.c | 23 +++++++++++++++----
21+
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c | 23 ++++++++--
2322
1 file changed, 18 insertions(+), 5 deletions(-)
2423

2524
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
26-
index 8b45b9cf7202..61a197cd34ab 100644
25+
index 111111111111..222222222222 100644
2726
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
2827
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
2928
@@ -6,6 +6,7 @@
@@ -47,7 +46,7 @@ index 8b45b9cf7202..61a197cd34ab 100644
4746

4847
*byte = FIELD_GET(EFUSE_OP_RD_DATA, reg);
4948

50-
@@ -334,6 +335,20 @@ static int motorcomm_probe(struct pci_dev *pdev, const struct pci_device_id *id)
49+
@@ -348,6 +349,20 @@ static int motorcomm_probe(struct pci_dev *pdev, const struct pci_device_id *id)
5150

5251
motorcomm_reset(priv);
5352

@@ -68,7 +67,7 @@ index 8b45b9cf7202..61a197cd34ab 100644
6867
ret = motorcomm_efuse_read_mac(&pdev->dev, priv, res.mac);
6968
if (ret == -ENOENT) {
7069
dev_warn(&pdev->dev, "eFuse contains no valid MAC address\n");
71-
@@ -349,8 +364,6 @@ static int motorcomm_probe(struct pci_dev *pdev, const struct pci_device_id *id)
70+
@@ -363,8 +378,6 @@ static int motorcomm_probe(struct pci_dev *pdev, const struct pci_device_id *id)
7271
if (ret)
7372
return dev_err_probe(&pdev->dev, ret, "failed to setup IRQ\n");
7473

@@ -78,5 +77,5 @@ index 8b45b9cf7202..61a197cd34ab 100644
7877

7978
return stmmac_dvr_probe(&pdev->dev, plat, &res);
8079
--
81-
2.53.0
80+
Armbian
8281

patch/kernel/archive/rockchip64-6.18/general-ASoC-codecs-es8328-allow-sharing-LRCK-for-microphone.patch

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: c127dev <contact@c127.dev>
33
Date: Mon, 23 Mar 2026 17:34:45 +0000
4-
Subject: [PATCH] ASoC: codecs: es8328: allow sharing LRCK for microphone and
5-
playback
4+
Subject: ASoC: codecs: es8328: allow sharing LRCK for microphone and playback
65

76
In some board designs, such as the Orange Pi 5 Pro SBC, the ADC LRCK
87
pin might not be directly connected. This causes the microphone to fail
@@ -23,10 +22,10 @@ Signed-off-by: c127dev <contact@c127.dev>
2322
1 file changed, 10 insertions(+)
2423

2524
diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c
26-
index 9838fe42cb6f..d34d6893f5b9 100644
25+
index 111111111111..222222222222 100644
2726
--- a/sound/soc/codecs/es8328.c
2827
+++ b/sound/soc/codecs/es8328.c
29-
@@ -906,6 +906,16 @@ int es8328_probe(struct device *dev, struct regmap *regmap)
28+
@@ -878,6 +878,16 @@ int es8328_probe(struct device *dev, struct regmap *regmap)
3029

3130
dev_set_drvdata(dev, es8328);
3231

@@ -44,5 +43,5 @@ index 9838fe42cb6f..d34d6893f5b9 100644
4443
&es8328_component_driver, &es8328_dai, 1);
4544
}
4645
--
47-
2.53.0
46+
Armbian
4847

0 commit comments

Comments
 (0)