Skip to content

Commit

Permalink
[bot] AutoMerging: merge all upstream's changes:
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
github-actions[bot] committed Aug 14, 2022
2 parents aee245c + 9a16693 commit 1148478
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00usb.c
@@ -586,10 +586,18 @@ static void rt2x00usb_assign_endpoint(struct data_queue *queue,

if (queue->qid == QID_RX) {
pipe = usb_rcvbulkpipe(usb_dev, queue->usb_endpoint);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0)
queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe, 0);
+#else
+ queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe);
+#endif
} else {
pipe = usb_sndbulkpipe(usb_dev, queue->usb_endpoint);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0)
queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe, 1);
+#else
+ queue->usb_maxpacket = usb_maxpacket(usb_dev, pipe);
+#endif
}

if (!queue->usb_maxpacket)
5 changes: 5 additions & 0 deletions target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ sharevdi,guangmiao-g4c)
firefly,rk3568-roc-pc)
ucidef_set_led_timer "health" "health" "firefly:yellow:user" "200" "800"
;;
friendlyelec,nanopi-r5s)
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
ucidef_set_led_netdev "lan1" "LAN1" "green:lan1" "eth1"
ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth2"
;;
esac

board_config_flush
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ rockchip_setup_macs()
friendlyarm,nanopi-r2c|\
friendlyarm,nanopi-r2s|\
sharevdi,guangmiao-g4c|\
friendlyelec,nanopi-r5s|\
firefly,rk3568-roc-pc)
wan_mac=$(nanopi_r2s_generate_mac)
lan_mac=$(macaddr_add "$wan_mac" +1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@ firefly,rk3568-roc-pc)
set_interface_core 2 "eth0"
set_interface_core 4 "eth1"
;;
friendlyelec,nanopi-r5s
set_interface_core 0 "eth0"
set_interface_core 2 "eth1"
set_interface_core 4 "eth2"
;;
esac

3 changes: 0 additions & 3 deletions target/linux/rockchip/armv8/config-5.19
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,6 @@ CONFIG_I2C_CHARDEV=y
CONFIG_I2C_COMPAT=y
CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_RK3X=y
CONFIG_IGB=y
CONFIG_IGB_HWMON=y
CONFIG_IGC=y
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
CONFIG_INDIRECT_PIO=y
CONFIG_INPUT=y
Expand Down
10 changes: 10 additions & 0 deletions target/linux/rockchip/image/armv8.mk
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ define Device/friendlyarm_nanopi-r4se
endef
TARGET_DEVICES += friendlyarm_nanopi-r4se

define Device/friendlyelec_nanopi-r5s
DEVICE_VENDOR := FriendlyARM
DEVICE_MODEL := NanoPi R5S
SOC := rk3568
UBOOT_DEVICE_NAME := nanopi-r5s-rk3568
IMAGE/sysupgrade.img.gz := boot-common | boot-script nanopi-r5s | pine64-img | gzip | append-metadata
DEVICE_PACKAGES := kmod-r8125
endef
TARGET_DEVICES += friendlyelec_nanopi-r5s

define Device/pine64_rockpro64
DEVICE_VENDOR := Pine64
DEVICE_MODEL := RockPro64
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -33,6 +33,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gr
@@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gr
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-kevin.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-inx.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-scarlet-kd.dtb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Signed-off-by: wevsty <ty@wevs.org>
reg = <0x0 0xff100000 0x0 0x1000>;
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -1937,6 +1937,16 @@
@@ -2042,6 +2042,16 @@
};
};

Expand All @@ -48,9 +48,9 @@ Signed-off-by: wevsty <ty@wevs.org>
gpu: gpu@ff9a0000 {
compatible = "rockchip,rk3399-mali", "arm,mali-t860";
reg = <0x0 0xff9a0000 0x0 0x10000>;
--- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi 2022-08-09 00:09:02.289032224 +0800
+++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi 2022-08-09 00:11:01.829992919 +0800
@@ -89,6 +89,16 @@
--- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
@@ -211,6 +211,16 @@
};
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ Signed-off-by: jensen <jensenhuang@friendlyarm.com>
2 files changed, 8220 insertions(+), 9 deletions(-)
create mode 100644 drivers/phy/rockchip/p3phy.fw

diff --git a/drivers/phy/rockchip/p3phy.fw b/drivers/phy/rockchip/p3phy.fw
new file mode 100644
index 0000000000000..301c42837ad94
--- /dev/null
+++ b/drivers/phy/rockchip/p3phy.fw
@@ -0,0 +1,8192 @@
Expand Down Expand Up @@ -8209,8 +8206,6 @@ index 0000000000000..301c42837ad94
+0x0000,
+0x0000,
+0x0000
diff --git a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
index bb5fed0c03caf..53c4890f7391d 100644
--- a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
+++ b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
@@ -20,6 +20,7 @@
Expand All @@ -8221,7 +8216,7 @@ index bb5fed0c03caf..53c4890f7391d 100644
#define GRF_PCIE30PHY_CON6 0x18
#define GRF_PCIE30PHY_CON9 0x24
#define GRF_PCIE30PHY_STATUS0 0x80
@@ -61,6 +62,10 @@
@@ -61,6 +62,10 @@ struct rockchip_p3phy_ops {
int (*phy_init)(struct rockchip_p3phy_priv *priv);
};

Expand All @@ -8232,15 +8227,15 @@ index bb5fed0c03caf..53c4890f7391d 100644
static int rockchip_p3phy_set_mode(struct phy *phy, enum phy_mode mode, int submode)
{
struct rockchip_p3phy_priv *priv = phy_get_drvdata(phy);
@@ -86,6 +91,7 @@
@@ -86,6 +91,7 @@ static int rockchip_p3phy_rk3568_init(st
struct phy *phy = priv->phy;
bool bifurcation = false;
int ret;
+ int i;
u32 reg;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-orangepi.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-pinebook-pro.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb
@@ -65,4 +65,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-ro
@@ -66,5 +75,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-ro
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-soquartz-cm4.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-r66s.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-station-p2.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nanopi-r5s.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-rock-3a.dtb

0 comments on commit 1148478

Please sign in to comment.