Skip to content

Commit 09241a0

Browse files
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: mac80211: add rt2x00 5.19 kernel support kernel: refresh 5.19 patch (coolsnowwolf#9943) kernel: refresh 5.15 patch (coolsnowwolf#9944) rockchip: set rockchip_setup_macs for NanoPi R5S rockchip: add FriendlyElec NanoPi R5S support
2 parents 0b0ea48 + 9a16693 commit 09241a0

File tree

11 files changed

+53
-18
lines changed

11 files changed

+53
-18
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
2+
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
3+
@@ -586,10 +586,18 @@ static void rt2x00usb_assign_endpoint(struct data_queue *queue,
4+
5+
if (queue->qid == QID_RX) {
6+
pipe = usb_rcvbulkpipe(usb_dev, queue->usb_endpoint);
7+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0)
8+
queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe, 0);
9+
+#else
10+
+ queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe);
11+
+#endif
12+
} else {
13+
pipe = usb_sndbulkpipe(usb_dev, queue->usb_endpoint);
14+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0)
15+
queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe, 1);
16+
+#else
17+
+ queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe);
18+
+#endif
19+
}
20+
21+
if (!queue->usb_maxpacket)

target/linux/rockchip/armv8/base-files/etc/board.d/01_leds

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ sharevdi,guangmiao-g4c)
2727
firefly,rk3568-roc-pc)
2828
ucidef_set_led_timer "health" "health" "firefly:yellow:user" "200" "800"
2929
;;
30+
friendlyelec,nanopi-r5s)
31+
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
32+
ucidef_set_led_netdev "lan1" "LAN1" "green:lan1" "eth1"
33+
ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth2"
34+
;;
3035
esac
3136

3237
board_config_flush

target/linux/rockchip/armv8/base-files/etc/board.d/02_network

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ rockchip_setup_macs()
5353
friendlyarm,nanopi-r2c|\
5454
friendlyarm,nanopi-r2s|\
5555
sharevdi,guangmiao-g4c|\
56+
friendlyelec,nanopi-r5s|\
5657
firefly,rk3568-roc-pc)
5758
wan_mac=$(nanopi_r2s_generate_mac)
5859
lan_mac=$(macaddr_add "$wan_mac" +1)

target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,10 @@ firefly,rk3568-roc-pc)
4848
set_interface_core 2 "eth0"
4949
set_interface_core 4 "eth1"
5050
;;
51+
friendlyelec,nanopi-r5s
52+
set_interface_core 0 "eth0"
53+
set_interface_core 2 "eth1"
54+
set_interface_core 4 "eth2"
55+
;;
5156
esac
5257

target/linux/rockchip/armv8/config-5.19

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,6 @@ CONFIG_I2C_CHARDEV=y
367367
CONFIG_I2C_COMPAT=y
368368
CONFIG_I2C_HELPER_AUTO=y
369369
CONFIG_I2C_RK3X=y
370-
CONFIG_IGB=y
371-
CONFIG_IGB_HWMON=y
372-
CONFIG_IGC=y
373370
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
374371
CONFIG_INDIRECT_PIO=y
375372
CONFIG_INPUT=y

target/linux/rockchip/image/armv8.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,16 @@ define Device/friendlyarm_nanopi-r4se
9191
endef
9292
TARGET_DEVICES += friendlyarm_nanopi-r4se
9393

94+
define Device/friendlyelec_nanopi-r5s
95+
DEVICE_VENDOR := FriendlyARM
96+
DEVICE_MODEL := NanoPi R5S
97+
SOC := rk3568
98+
UBOOT_DEVICE_NAME := nanopi-r5s-rk3568
99+
IMAGE/sysupgrade.img.gz := boot-common | boot-script nanopi-r5s | pine64-img | gzip | append-metadata
100+
DEVICE_PACKAGES := kmod-r8125
101+
endef
102+
TARGET_DEVICES += friendlyelec_nanopi-r5s
103+
94104
define Device/pine64_rockpro64
95105
DEVICE_VENDOR := Pine64
96106
DEVICE_MODEL := RockPro64

target/linux/rockchip/patches-5.15/208-rockchip-rk3399-add-support-for-GuangMiao-G4C.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/arch/arm64/boot/dts/rockchip/Makefile
22
+++ b/arch/arm64/boot/dts/rockchip/Makefile
3-
@@ -33,6 +33,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gr
3+
@@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gr
44
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-kevin.dtb
55
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-inx.dtb
66
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-kd.dtb

target/linux/rockchip/patches-5.19/0057-arm64-dts-rockchip-add-hardware-random-number-genera.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Signed-off-by: wevsty <[email protected]>
3131
reg = <0x0 0xff100000 0x0 0x1000>;
3232
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
3333
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
34-
@@ -1937,6 +1937,16 @@
34+
@@ -2042,6 +2042,16 @@
3535
};
3636
};
3737

@@ -48,9 +48,9 @@ Signed-off-by: wevsty <[email protected]>
4848
gpu: gpu@ff9a0000 {
4949
compatible = "rockchip,rk3399-mali", "arm,mali-t860";
5050
reg = <0x0 0xff9a0000 0x0 0x10000>;
51-
--- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi 2022-08-09 00:09:02.289032224 +0800
52-
+++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi 2022-08-09 00:11:01.829992919 +0800
53-
@@ -89,6 +89,16 @@
51+
--- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
52+
+++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
53+
@@ -211,6 +211,16 @@
5454
};
5555
};
5656

target/linux/rockchip/patches-5.19/0105-nanopi-r4s-sd-signalling.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Signed-off-by: David Bauer <[email protected]>
1212

1313
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
1414
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
15-
@@ -137,6 +137,11 @@
15+
@@ -121,6 +121,11 @@
1616
status = "disabled";
1717
};
1818

target/linux/rockchip/patches-5.19/0800-rockchip-snps-pcie3-update-fw-when-init.patch

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ Signed-off-by: jensen <[email protected]>
1111
2 files changed, 8220 insertions(+), 9 deletions(-)
1212
create mode 100644 drivers/phy/rockchip/p3phy.fw
1313

14-
diff --git a/drivers/phy/rockchip/p3phy.fw b/drivers/phy/rockchip/p3phy.fw
15-
new file mode 100644
16-
index 0000000000000..301c42837ad94
1714
--- /dev/null
1815
+++ b/drivers/phy/rockchip/p3phy.fw
1916
@@ -0,0 +1,8192 @@
@@ -8209,8 +8206,6 @@ index 0000000000000..301c42837ad94
82098206
+0x0000,
82108207
+0x0000,
82118208
+0x0000
8212-
diff --git a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
8213-
index bb5fed0c03caf..53c4890f7391d 100644
82148209
--- a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
82158210
+++ b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
82168211
@@ -20,6 +20,7 @@
@@ -8221,7 +8216,7 @@ index bb5fed0c03caf..53c4890f7391d 100644
82218216
#define GRF_PCIE30PHY_CON6 0x18
82228217
#define GRF_PCIE30PHY_CON9 0x24
82238218
#define GRF_PCIE30PHY_STATUS0 0x80
8224-
@@ -61,6 +62,10 @@
8219+
@@ -61,6 +62,10 @@ struct rockchip_p3phy_ops {
82258220
int (*phy_init)(struct rockchip_p3phy_priv *priv);
82268221
};
82278222

@@ -8232,15 +8227,15 @@ index bb5fed0c03caf..53c4890f7391d 100644
82328227
static int rockchip_p3phy_set_mode(struct phy *phy, enum phy_mode mode, int submode)
82338228
{
82348229
struct rockchip_p3phy_priv *priv = phy_get_drvdata(phy);
8235-
@@ -86,6 +91,7 @@
8230+
@@ -86,6 +91,7 @@ static int rockchip_p3phy_rk3568_init(st
82368231
struct phy *phy = priv->phy;
82378232
bool bifurcation = false;
82388233
int ret;
82398234
+ int i;
82408235
u32 reg;
82418236

82428237
/* Deassert PCIe PMA output clamp mode */
8243-
@@ -110,16 +116,35 @@
8238+
@@ -110,16 +116,35 @@ static int rockchip_p3phy_rk3568_init(st
82448239
(0xf << 16) & ~RK3568_BIFURCATION_LANE_0_1);
82458240
}
82468241

0 commit comments

Comments
 (0)