Skip to content

Commit dbe1b2b

Browse files
EvilOlafigorpecovnik
authored andcommitted
rockchip64: rewrite patches
1 parent b27c86e commit dbe1b2b

26 files changed

+107
-143
lines changed

patch/kernel/archive/rockchip64-6.16/board-nanopi-m4v2-dts-add-sound-card.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig
169169
index 111111111111..222222222222 100644
170170
--- a/sound/soc/rockchip/Kconfig
171171
+++ b/sound/soc/rockchip/Kconfig
172-
@@ -65,6 +65,15 @@ config SND_SOC_ROCKCHIP_RT5645
172+
@@ -75,6 +75,15 @@ config SND_SOC_ROCKCHIP_RT5645
173173
Say Y or M here if you want to add support for SoC audio on Rockchip
174174
boards using the RT5645/RT5650 codec, such as Veyron.
175175

patch/kernel/archive/rockchip64-6.16/board-nanopi-r3s-fix-leds.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ index 111111111111..222222222222 100644
123123
#include <linux/tcp.h>
124124
#include <linux/interrupt.h>
125125
#include <linux/dma-mapping.h>
126-
@@ -2438,6 +2439,15 @@ void r8169_apply_firmware(struct rtl8169_private *tp)
126+
@@ -2375,6 +2376,15 @@ void r8169_apply_firmware(struct rtl8169_private *tp)
127127
}
128128
}
129129

@@ -139,7 +139,7 @@ index 111111111111..222222222222 100644
139139
static void rtl8168_config_eee_mac(struct rtl8169_private *tp)
140140
{
141141
/* Adjust EEE LED frequency */
142-
@@ -3449,6 +3459,7 @@ static void rtl_hw_start_8168h_1(struct rtl8169_private *tp)
142+
@@ -3392,6 +3402,7 @@ static void rtl_hw_start_8168h_1(struct rtl8169_private *tp)
143143
rtl_eri_write(tp, 0xb8, ERIAR_MASK_0011, 0x0000);
144144

145145
rtl8168_config_eee_mac(tp);
@@ -151,8 +151,8 @@ diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/re
151151
index 111111111111..222222222222 100644
152152
--- a/drivers/net/phy/realtek/realtek_main.c
153153
+++ b/drivers/net/phy/realtek/realtek_main.c
154-
@@ -135,6 +135,15 @@ static int rtl821x_write_page(struct phy_device *phydev, int page)
155-
return __phy_write(phydev, RTL821x_PAGE_SELECT, page);
154+
@@ -215,6 +215,15 @@ static int rtl821x_modify_ext_page(struct phy_device *phydev, u16 ext_page,
155+
return phy_restore_page(phydev, oldpage, ret);
156156
}
157157

158158
+static void rtl821x_led_of_init(struct phy_device *phydev)
@@ -167,15 +167,15 @@ index 111111111111..222222222222 100644
167167
static int rtl821x_probe(struct phy_device *phydev)
168168
{
169169
struct device *dev = &phydev->mdio.dev;
170-
@@ -460,6 +469,8 @@ static int rtl8211f_config_init(struct phy_device *phydev)
170+
@@ -589,6 +598,8 @@ static int rtl8211f_config_init(struct phy_device *phydev)
171171
if (ret)
172172
return ret;
173173

174174
+ rtl821x_led_of_init(phydev);
175175
+
176176
if (priv->has_phycr2) {
177-
ret = phy_modify_paged(phydev, 0xa43, RTL8211F_PHYCR2,
178-
RTL8211F_CLKOUT_EN, priv->phycr2);
177+
ret = phy_modify_paged(phydev, RTL8211F_PHYCR_PAGE,
178+
RTL8211F_PHYCR2, RTL8211F_CLKOUT_EN,
179179
--
180180
Armbian
181181

patch/kernel/archive/rockchip64-6.16/board-pbp-add-dp-alt-mode.patch

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ index 111111111111..222222222222 100644
157157
break;
158158
case DP_STATE_EXIT_PRIME:
159159
if (typec_cable_altmode_exit(dp->plug_prime, TYPEC_PLUG_SOP_P))
160-
@@ -733,8 +775,14 @@ int dp_altmode_probe(struct typec_altmode *alt)
160+
@@ -737,8 +779,14 @@ int dp_altmode_probe(struct typec_altmode *alt)
161161
if (!(DP_CAP_PIN_ASSIGN_DFP_D(port->vdo) &
162162
DP_CAP_PIN_ASSIGN_UFP_D(alt->vdo)) &&
163163
!(DP_CAP_PIN_ASSIGN_UFP_D(port->vdo) &
@@ -186,7 +186,7 @@ index 111111111111..222222222222 100644
186186
#include <linux/hrtimer.h>
187187
#include <linux/jiffies.h>
188188
#include <linux/kernel.h>
189-
@@ -575,6 +576,11 @@ struct tcpm_port {
189+
@@ -580,6 +581,11 @@ struct tcpm_port {
190190
unsigned int message_id_prime;
191191
unsigned int rx_msgid_prime;
192192

@@ -198,7 +198,7 @@ index 111111111111..222222222222 100644
198198
/* Timer deadline values configured at runtime */
199199
struct pd_timings timings;
200200

201-
@@ -968,6 +974,35 @@ static void tcpm_ams_finish(struct tcpm_port *port)
201+
@@ -983,6 +989,35 @@ static void tcpm_ams_finish(struct tcpm_port *port)
202202
port->ams = NONE_AMS;
203203
}
204204

@@ -234,7 +234,7 @@ index 111111111111..222222222222 100644
234234
static int tcpm_pd_transmit(struct tcpm_port *port,
235235
enum tcpm_transmit_type tx_sop_type,
236236
const struct pd_message *msg)
237-
@@ -1207,6 +1242,8 @@ static int tcpm_set_roles(struct tcpm_port *port, bool attached,
237+
@@ -1222,6 +1257,8 @@ static int tcpm_set_roles(struct tcpm_port *port, bool attached, int state,
238238
typec_set_data_role(port->typec_port, data);
239239
typec_set_pwr_role(port->typec_port, role);
240240

@@ -243,7 +243,7 @@ index 111111111111..222222222222 100644
243243
return 0;
244244
}
245245

246-
@@ -1780,7 +1817,7 @@ static void svdm_consume_modes(struct tcpm_port *port, const u32 *p, int cnt,
246+
@@ -1845,7 +1882,7 @@ static void svdm_consume_modes(struct tcpm_port *port, const u32 *p, int cnt,
247247
paltmode->mode = i;
248248
paltmode->vdo = p[i];
249249

@@ -252,7 +252,7 @@ index 111111111111..222222222222 100644
252252
pmdata->altmodes, paltmode->svid,
253253
paltmode->mode, paltmode->vdo);
254254

255-
@@ -1804,6 +1841,8 @@ static void tcpm_register_partner_altmodes(struct tcpm_port *port)
255+
@@ -1869,6 +1906,8 @@ static void tcpm_register_partner_altmodes(struct tcpm_port *port)
256256
tcpm_log(port, "Failed to register partner SVID 0x%04x",
257257
modep->altmode_desc[i].svid);
258258
altmode = NULL;
@@ -261,7 +261,7 @@ index 111111111111..222222222222 100644
261261
}
262262
port->partner_altmode[i] = altmode;
263263
}
264-
@@ -2180,11 +2219,13 @@ static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev,
264+
@@ -2245,11 +2284,13 @@ static int tcpm_pd_svdm(struct tcpm_port *port, struct typec_altmode *adev,
265265
modep->svid_index++;
266266
if (modep->svid_index < modep->nsvids) {
267267
u16 svid = modep->svids[modep->svid_index];
@@ -275,15 +275,15 @@ index 111111111111..222222222222 100644
275275
*response_tx_sop_type = TCPC_TX_SOP_PRIME;
276276
response[0] = VDO(USB_SID_PD, 1,
277277
typec_get_cable_svdm_version(typec),
278-
@@ -4413,6 +4454,7 @@ static void tcpm_typec_disconnect(struct tcpm_port *port)
278+
@@ -4471,6 +4512,7 @@ static void tcpm_typec_disconnect(struct tcpm_port *port)
279279
port->cable = NULL;
280280
if (port->connected) {
281281
if (port->partner) {
282282
+ tcpm_update_extcon_data(port, false);
283283
typec_partner_set_usb_power_delivery(port->partner, NULL);
284284
typec_unregister_partner(port->partner);
285285
port->partner = NULL;
286-
@@ -4507,6 +4549,8 @@ static void tcpm_detach(struct tcpm_port *port)
286+
@@ -4565,6 +4607,8 @@ static void tcpm_detach(struct tcpm_port *port)
287287
}
288288

289289
tcpm_reset_port(port);
@@ -292,7 +292,7 @@ index 111111111111..222222222222 100644
292292
}
293293

294294
static void tcpm_src_detach(struct tcpm_port *port)
295-
@@ -7164,6 +7208,64 @@ static void tcpm_fw_get_timings(struct tcpm_port *port, struct fwnode_handle *fw
295+
@@ -7274,6 +7318,64 @@ static void tcpm_fw_get_timings(struct tcpm_port *port, struct fwnode_handle *fw
296296
port->timings.snk_bc12_cmpletion_time = val;
297297
}
298298

@@ -356,8 +356,8 @@ index 111111111111..222222222222 100644
356356
+
357357
static int tcpm_fw_get_caps(struct tcpm_port *port, struct fwnode_handle *fwnode)
358358
{
359-
struct fwnode_handle *capabilities, *child, *caps = NULL;
360-
@@ -7177,6 +7279,23 @@ static int tcpm_fw_get_caps(struct tcpm_port *port, struct fwnode_handle *fwnode
359+
struct fwnode_handle *capabilities, *caps = NULL;
360+
@@ -7287,6 +7389,23 @@ static int tcpm_fw_get_caps(struct tcpm_port *port, struct fwnode_handle *fwnode
361361
if (!fwnode)
362362
return -EINVAL;
363363

@@ -381,7 +381,7 @@ index 111111111111..222222222222 100644
381381
/*
382382
* This fwnode has a "compatible" property, but is never populated as a
383383
* struct device. Instead we simply parse it to read the properties.
384-
@@ -7748,6 +7867,17 @@ struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc)
384+
@@ -7856,6 +7975,17 @@ struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc)
385385
tcpm_fw_get_pd_revision(port, tcpc->fwnode);
386386

387387
port->try_role = port->typec_caps.prefer_role;
@@ -399,7 +399,7 @@ index 111111111111..222222222222 100644
399399

400400
port->typec_caps.revision = 0x0120; /* Type-C spec release 1.2 */
401401

402-
@@ -7797,6 +7927,12 @@ struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc)
402+
@@ -7905,6 +8035,12 @@ struct tcpm_port *tcpm_register_port(struct device *dev, struct tcpc_dev *tcpc)
403403
&tcpm_cable_ops);
404404
port->registered = true;
405405

patch/kernel/archive/rockchip64-6.16/board-rockpro64-fix-spi1-flash-speed.patch

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ See Revision ea20f750bfead37ced7b604a44f8f014e317abad
99
1 file changed, 1 insertion(+), 1 deletion(-)
1010

1111
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi
12-
index 14cdf715535e..0b4bdb555f65 100644
12+
index 111111111111..222222222222 100644
1313
--- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi
1414
+++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi
15-
@@ -850,11 +850,11 @@ &spi1 {
16-
status = "okay";
17-
15+
@@ -852,7 +852,7 @@ &spi1 {
1816
flash@0 {
1917
compatible = "jedec,spi-nor";
2018
reg = <0>;
@@ -23,7 +21,6 @@ index 14cdf715535e..0b4bdb555f65 100644
2321
vcc-supply = <&vcc_3v0>;
2422
};
2523
};
26-
27-
&tcphy0 {
2824
--
29-
Created with Armbian build tools https://github.com/armbian/build
25+
Armbian
26+

patch/kernel/archive/rockchip64-6.16/board-rocks0.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From b6bb3bd96fa150019d6f6a6adb602359596ce361 Mon Sep 17 00:00:00 2001
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Paolo Sabatino <[email protected]>
33
Date: Sat, 5 Apr 2025 17:59:02 +0200
4-
Subject: [PATCH] Add some missing nodes in rk3308-rock-so device tree
4+
Subject: Add some missing nodes in rk3308-rock-so device tree
55

66
This is the consolidation of these two legacy patches:
77
* https://github.com/paolosabatino/armbian-build/blob/935149d2822cd2a2c63891ca6614563f5538b706/patch/kernel/archive/rockchip64-6.12/board-rocks0-0001-deviceTree.patch
88
* https://github.com/paolosabatino/armbian-build/blob/935149d2822cd2a2c63891ca6614563f5538b706/patch/kernel/archive/rockchip64-6.12/board-rocks0-0002-Revert-arm64-dts-rockchip-Fix-sdmmc-access-on-rk3308.patch
99
---
10-
.../boot/dts/rockchip/rk3308-rock-s0.dts | 76 ++++++++++++++++++-
11-
1 file changed, 74 insertions(+), 2 deletions(-)
10+
arch/arm64/boot/dts/rockchip/rk3308-rock-s0.dts | 79 +++++++---
11+
1 file changed, 61 insertions(+), 18 deletions(-)
1212

1313
diff --git a/arch/arm64/boot/dts/rockchip/rk3308-rock-s0.dts b/arch/arm64/boot/dts/rockchip/rk3308-rock-s0.dts
14-
index 8311af4c8689..ea4b063cb7bd 100644
14+
index 111111111111..222222222222 100644
1515
--- a/arch/arm64/boot/dts/rockchip/rk3308-rock-s0.dts
1616
+++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-s0.dts
1717
@@ -34,6 +34,34 @@ led-green {
@@ -143,5 +143,5 @@ index 8311af4c8689..ea4b063cb7bd 100644
143143
};
144144

145145
--
146-
2.43.0
146+
Armbian
147147

patch/kernel/archive/rockchip64-6.16/general-add-panel-simple-dsi.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile
6565
index 111111111111..222222222222 100644
6666
--- a/drivers/gpu/drm/panel/Makefile
6767
+++ b/drivers/gpu/drm/panel/Makefile
68-
@@ -11,6 +11,7 @@ obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) += panel-boe-tv101wum-nl6.o
68+
@@ -12,6 +12,7 @@ obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) += panel-boe-tv101wum-nl6.o
6969
obj-$(CONFIG_DRM_PANEL_DSI_CM) += panel-dsi-cm.o
7070
obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o
7171
obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o

patch/kernel/archive/rockchip64-6.16/general-cryptov1-trng.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
1818
index 111111111111..222222222222 100644
1919
--- a/drivers/crypto/Kconfig
2020
+++ b/drivers/crypto/Kconfig
21-
@@ -700,6 +700,14 @@ config CRYPTO_DEV_ROCKCHIP
21+
@@ -694,6 +694,14 @@ config CRYPTO_DEV_ROCKCHIP
2222
This driver interfaces with the hardware crypto accelerator.
2323
Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
2424

@@ -163,15 +163,15 @@ diff --git a/drivers/crypto/rockchip/rk3288_crypto_ahash.c b/drivers/crypto/rock
163163
index 111111111111..222222222222 100644
164164
--- a/drivers/crypto/rockchip/rk3288_crypto_ahash.c
165165
+++ b/drivers/crypto/rockchip/rk3288_crypto_ahash.c
166-
@@ -296,6 +296,7 @@ static int rk_hash_run(struct crypto_engine *engine, void *breq)
166+
@@ -298,6 +298,7 @@ static int rk_hash_run(struct crypto_engine *engine, void *breq)
167167
goto theend;
168168
}
169169

170170
+ mutex_lock(&rkc->lock);
171171
rk_ahash_reg_init(areq, rkc);
172172

173173
while (sg) {
174-
@@ -330,6 +331,7 @@ static int rk_hash_run(struct crypto_engine *engine, void *breq)
174+
@@ -332,6 +333,7 @@ static int rk_hash_run(struct crypto_engine *engine, void *breq)
175175
}
176176

177177
theend:

patch/kernel/archive/rockchip64-6.16/general-disable-mtu-validation.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/eth
1818
index 111111111111..222222222222 100644
1919
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
2020
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
21-
@@ -5921,27 +5921,15 @@ static void stmmac_set_rx_mode(struct net_device *dev)
21+
@@ -5934,27 +5934,15 @@ static void stmmac_set_rx_mode(struct net_device *dev)
2222
static int stmmac_change_mtu(struct net_device *dev, int new_mtu)
2323
{
2424
struct stmmac_priv *priv = netdev_priv(dev);

patch/kernel/archive/rockchip64-6.16/general-driver-tm16xx-led-driver.patch

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
From 1f6c39c03f03b131f49d7d4631b1cda6c1f336e0 Mon Sep 17 00:00:00 2001
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Paolo Sabatino <[email protected]>
33
Date: Sat, 21 Jun 2025 15:07:40 +0200
4-
Subject: [PATCH] Add tm16xx led auxiliary display driver
4+
Subject: Add tm16xx led auxiliary display driver
55

66
---
7-
.../bindings/auxdisplay/tm16xx.yaml | 150 +++
8-
drivers/auxdisplay/Kconfig | 10 +
9-
drivers/auxdisplay/Makefile | 1 +
10-
drivers/auxdisplay/tm16xx.c | 1187 +++++++++++++++++
7+
Documentation/devicetree/bindings/auxdisplay/tm16xx.yaml | 150 ++
8+
drivers/auxdisplay/Kconfig | 10 +
9+
drivers/auxdisplay/Makefile | 1 +
10+
drivers/auxdisplay/tm16xx.c | 1187 ++++++++++
1111
4 files changed, 1348 insertions(+)
12-
create mode 100644 Documentation/devicetree/bindings/auxdisplay/tm16xx.yaml
13-
create mode 100644 drivers/auxdisplay/tm16xx.c
1412

1513
diff --git a/Documentation/devicetree/bindings/auxdisplay/tm16xx.yaml b/Documentation/devicetree/bindings/auxdisplay/tm16xx.yaml
1614
new file mode 100644
17-
index 000000000000..f3d411f4f4a0
15+
index 000000000000..111111111111
1816
--- /dev/null
1917
+++ b/Documentation/devicetree/bindings/auxdisplay/tm16xx.yaml
2018
@@ -0,0 +1,150 @@
@@ -169,7 +167,7 @@ index 000000000000..f3d411f4f4a0
169167
+ };
170168
+ };
171169
diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig
172-
index bedc6133f970..4e4bb1a2b131 100644
170+
index 111111111111..222222222222 100644
173171
--- a/drivers/auxdisplay/Kconfig
174172
+++ b/drivers/auxdisplay/Kconfig
175173
@@ -49,6 +49,16 @@ config HD44780
@@ -190,7 +188,7 @@ index bedc6133f970..4e4bb1a2b131 100644
190188
tristate "lcd2s 20x4 character display over I2C console"
191189
depends on I2C
192190
diff --git a/drivers/auxdisplay/Makefile b/drivers/auxdisplay/Makefile
193-
index f5c13ed1cd4f..066f452b1e26 100644
191+
index 111111111111..222222222222 100644
194192
--- a/drivers/auxdisplay/Makefile
195193
+++ b/drivers/auxdisplay/Makefile
196194
@@ -9,6 +9,7 @@ obj-$(CONFIG_CHARLCD) += charlcd.o
@@ -203,7 +201,7 @@ index f5c13ed1cd4f..066f452b1e26 100644
203201
obj-$(CONFIG_LCD2S) += lcd2s.o
204202
diff --git a/drivers/auxdisplay/tm16xx.c b/drivers/auxdisplay/tm16xx.c
205203
new file mode 100644
206-
index 000000000000..72c4031f20d1
204+
index 000000000000..111111111111
207205
--- /dev/null
208206
+++ b/drivers/auxdisplay/tm16xx.c
209207
@@ -0,0 +1,1187 @@
@@ -1395,5 +1393,5 @@ index 000000000000..72c4031f20d1
13951393
+MODULE_ALIAS("spi:tm16xx");
13961394
+MODULE_ALIAS("i2c:tm16xx");
13971395
--
1398-
2.43.0
1396+
Armbian
13991397

patch/kernel/archive/rockchip64-6.16/general-rockchip-overlays.patch

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,19 @@ Signed-off-by: Werner <[email protected]>
1212
1 file changed, 3 insertions(+)
1313

1414
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
15-
index a6461ea411f7..33d4f5e86db0 100644
15+
index 111111111111..222222222222 100644
1616
--- a/scripts/Makefile.build
1717
+++ b/scripts/Makefile.build
18-
@@ -105,10 +105,13 @@ always-y += $(hostprogs-always-y) $(hostprogs-always-m)
19-
20-
# userprogs-always-y is likewise.
18+
@@ -107,6 +107,9 @@ always-y += $(hostprogs-always-y) $(hostprogs-always-m)
2119
userprogs += $(userprogs-always-y) $(userprogs-always-m)
2220
always-y += $(userprogs-always-y) $(userprogs-always-m)
23-
21+
2422
+# Overlay targets
2523
+extra-y += $(dtbo-y) $(scr-y) $(dtbotxt-y)
2624
+
2725
# Add subdir path
28-
26+
2927
ifneq ($(obj),.)
30-
extra-y := $(addprefix $(obj)/, $(extra-y))
31-
always-y := $(addprefix $(obj)/, $(always-y))
3228
--
33-
Created with Armbian build tools https://github.com/armbian/build
29+
Armbian
30+

0 commit comments

Comments
 (0)