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:
  rockchip: force enable rk3568 msi interrupt
  rockchip: update rk3568 pcie2x1 dts part
  kernel: package mhi pci driver
  linux-firmware: package ath11k consumer cards firmware
  linux-firmware: update to 20221109
  • Loading branch information
github-actions[bot] committed Dec 21, 2022
2 parents 29fdaac + c4be33b commit ae92ccb
Show file tree
Hide file tree
Showing 15 changed files with 720 additions and 59 deletions.
39 changes: 0 additions & 39 deletions package/firmware/ath11k-firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

include $(TOPDIR)/rules.mk

RSTRIP:=:
STRIP:=:

PKG_NAME:=ath11k-firmware
PKG_SOURCE_DATE:=2022-11-25
PKG_SOURCE_VERSION:=9f285fbc1f7040d0ca6480926d1922b479e2d839
Expand Down Expand Up @@ -40,21 +37,11 @@ $(Package/ath11k-firmware-default)
TITLE:=ath11k firmware for IPQ8074 devices
endef

define Package/ath11k-firmware-qca6390
$(Package/ath11k-firmware-default)
TITLE:=ath11k firmware for QCA6390 devices
endef

define Package/ath11k-firmware-qcn9074
$(Package/ath11k-firmware-default)
TITLE:=ath11k firmware for QCN9074 devices
endef

define Package/ath11k-firmware-wcn6855
$(Package/ath11k-firmware-default)
TITLE:=ath11k firmware for WCN6855 devices
endef

define Build/Compile

endef
Expand All @@ -81,39 +68,13 @@ define Package/ath11k-firmware-ipq8074/install
$(1)/lib/firmware/IPQ8074/
endef

define Package/ath11k-firmware-qca6390/install
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/QCA6390/hw2.0
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/QCA6390/hw2.0/1.0.1/WLAN.HST.1.0.1-05266-QCAHSTSWPLZ_V2_TO_X86-1/* \
$(1)/lib/firmware/ath11k/QCA6390/hw2.0/
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/QCA6390/hw2.0/board-2.bin \
$(1)/lib/firmware/ath11k/QCA6390/hw2.0/board-2.bin
endef

define Package/ath11k-firmware-qcn9074/install
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/QCN9074/hw1.0
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/QCN9074/hw1.0/2.5.0.1/WLAN.HK.2.5.0.1-01208-QCAHKSWPL_SILICONZ-1/* \
$(1)/lib/firmware/ath11k/QCN9074/hw1.0/
endef

define Package/ath11k-firmware-wcn6855/install
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/WCN6855/hw2.0
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/WCN6855/hw2.0/1.1/WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.16/* \
$(1)/lib/firmware/ath11k/WCN6855/hw2.0/
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/WCN6855/hw2.0/board-2.bin \
$(1)/lib/firmware/ath11k/WCN6855/hw2.0/board-2.bin
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/WCN6855/hw2.0/regdb.bin \
$(1)/lib/firmware/ath11k/WCN6855/hw2.0/regdb.bin
$(LN) ./hw2.0 $(1)/lib/firmware/ath11k/WCN6855/hw2.1
endef

$(eval $(call BuildPackage,ath11k-firmware-ipq6018))
$(eval $(call BuildPackage,ath11k-firmware-ipq8074))
$(eval $(call BuildPackage,ath11k-firmware-qca6390))
$(eval $(call BuildPackage,ath11k-firmware-qcn9074))
$(eval $(call BuildPackage,ath11k-firmware-wcn6855))
6 changes: 3 additions & 3 deletions package/firmware/linux-firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=linux-firmware
PKG_VERSION:=20221012
PKG_RELEASE:=1
PKG_VERSION:=20221109
PKG_RELEASE:=2

PKG_SOURCE_URL:=@KERNEL/linux/kernel/firmware
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_HASH:=e9d174af729511c8cccb60ec4e0b223b3c44b67d813b42d1ab9813acfa667fa5
PKG_HASH:=c0ddffbbcf30f2e015bddd5c6d3ce1f13976b906aceabda4a57e3c41a3190701

PKG_MAINTAINER:=Felix Fietkau <[email protected]>

Expand Down
23 changes: 23 additions & 0 deletions package/firmware/linux-firmware/qca_ath11k.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Package/ath11k-firmware-qca6390 = $(call Package/firmware-default,QCA6390 ath11k firmware)
define Package/ath11k-firmware-qca6390/install
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/QCA6390/hw2.0
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/ath11k/QCA6390/hw2.0/* $(1)/lib/firmware/ath11k/QCA6390/hw2.0/
endef
$(eval $(call BuildPackage,ath11k-firmware-qca6390))

Package/ath11k-firmware-wcn6750 = $(call Package/firmware-default,WCN6750 ath11k firmware)
define Package/ath11k-firmware-wcn6750/install
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/WCN6750/hw1.0
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/ath11k/WCN6750/hw1.0/* $(1)/lib/firmware/ath11k/WCN6750/hw1.0/
endef
$(eval $(call BuildPackage,ath11k-firmware-wcn6750))

Package/ath11k-firmware-wcn6855 = $(call Package/firmware-default,WCN6855 ath11k firmware)
define Package/ath11k-firmware-wcn6855/install
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/WCN6855/hw2.0
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/ath11k/WCN6855/hw2.0/* $(1)/lib/firmware/ath11k/WCN6855/hw2.0/
endef
$(eval $(call BuildPackage,ath11k-firmware-wcn6855))
4 changes: 2 additions & 2 deletions package/kernel/linux/modules/netsupport.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ define KernelPackage/qrtr
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=Qualcomm IPC Router support
HIDDEN:=1
DEPENDS:=@(LINUX_5_15||LINUX_6_1)
DEPENDS:=@!(LINUX_5_4||LINUX_5_10)
KCONFIG:=CONFIG_QRTR
FILES:= \
$(LINUX_DIR)/net/qrtr/qrtr.ko \
Expand Down Expand Up @@ -1403,7 +1403,7 @@ $(eval $(call KernelPackage,qrtr-smd))
define KernelPackage/qrtr-mhi
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=MHI IPC Router channels
DEPENDS:=+kmod-mhi +kmod-qrtr
DEPENDS:=+kmod-mhi-bus +kmod-qrtr
KCONFIG:=CONFIG_QRTR_MHI
FILES:= $(LINUX_DIR)/net/qrtr/qrtr-mhi.ko
AUTOLOAD:=$(call AutoProbe,qrtr-mhi)
Expand Down
35 changes: 25 additions & 10 deletions package/kernel/linux/modules/other.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1284,22 +1284,37 @@ endef

$(eval $(call KernelPackage,qcom-qmi-helpers))

define KernelPackage/mhi
define KernelPackage/mhi-bus
SUBMENU:=$(OTHER_MENU)
TITLE:=Modem Host Interface (MHI) bus
TITLE:=MHI bus
DEPENDS:=@(LINUX_5_15||LINUX_6_1)
KCONFIG:=CONFIG_MHI_BUS \
CONFIG_MHI_BUS_DEBUG=y \
CONFIG_MHI_BUS_PCI_GENERIC=n \
CONFIG_MHI_NET=n
CONFIG_MHI_BUS_DEBUG=y
FILES:= \
$(LINUX_DIR)/drivers/bus/mhi/core/[email protected] \
$(LINUX_DIR)/drivers/bus/mhi/host/[email protected]
$(LINUX_DIR)/drivers/bus/mhi/core/[email protected] \
$(LINUX_DIR)/drivers/bus/mhi/host/[email protected]
AUTOLOAD:=$(call AutoProbe,mhi)
endef

define KernelPackage/mhi/description
Bus driver for MHI protocol.
define KernelPackage/mhi-bus/description
Kernel module for the Qualcomm MHI bus.
endef

$(eval $(call KernelPackage,mhi))
$(eval $(call KernelPackage,mhi-bus))

define KernelPackage/mhi-pci-generic
SUBMENU:=$(OTHER_MENU)
TITLE:=MHI PCI controller driver
DEPENDS:=@(LINUX_5_15||LINUX_6_1) +kmod-mhi-bus
KCONFIG:=CONFIG_MHI_BUS_PCI_GENERIC
FILES:= \
$(LINUX_DIR)/drivers/bus/mhi/[email protected] \
$(LINUX_DIR)/drivers/bus/mhi/host/[email protected]
AUTOLOAD:=$(call AutoProbe,mhi_pci_generic)
endef

define KernelPackage/mhi-pci-generic/description
Kernel module for the MHI PCI controller driver.
endef

$(eval $(call KernelPackage,mhi-pci-generic))
1 change: 1 addition & 0 deletions target/linux/rockchip/armv8/config-5.15
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ CONFIG_RESET_CONTROLLER=y
CONFIG_RESET_SCMI=y
CONFIG_RFS_ACCEL=y
CONFIG_ROCKCHIP_EFUSE=y
CONFIG_ROCKCHIP_ERRATUM_114514=y
CONFIG_ROCKCHIP_GRF=y
CONFIG_ROCKCHIP_IODOMAIN=y
CONFIG_ROCKCHIP_IOMMU=y
Expand Down
1 change: 1 addition & 0 deletions target/linux/rockchip/armv8/config-6.1
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ CONFIG_RESET_CONTROLLER=y
CONFIG_RESET_SCMI=y
CONFIG_RFS_ACCEL=y
CONFIG_ROCKCHIP_EFUSE=y
CONFIG_ROCKCHIP_ERRATUM_114514=y
CONFIG_ROCKCHIP_GRF=y
CONFIG_ROCKCHIP_IODOMAIN=y
CONFIG_ROCKCHIP_IOMMU=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,6 @@
};
};

&gic {
mbi-ranges = <94 31>, <229 31>, <289 31>;
};

&pcie30phy {
data-lanes = <1 2>;
status = "okay";
Expand Down
2 changes: 1 addition & 1 deletion target/linux/rockchip/modules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ define KernelPackage/drm-rockchip
SUBMENU:=$(VIDEO_MENU)
TITLE:=Rockchip DRM support
DEPENDS:=@TARGET_rockchip +kmod-backlight +kmod-drm-kms-helper \
+kmod-multimedia-input +LINUX_6_0:kmod-drm-display-helper
+kmod-multimedia-input +LINUX_6_1:kmod-drm-display-helper
KCONFIG:= \
CONFIG_DRM_ROCKCHIP \
CONFIG_DRM_LOAD_EDID_FIRMWARE=y \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 0cdf37b755feda3aaceb749750613b5e563e7284 Mon Sep 17 00:00:00 2001
From: Andrew Powers-Holmes <[email protected]>
Date: Sat, 12 Nov 2022 22:41:26 +1100
Subject: [PATCH] arm64: dts: rockchip: rk356x: Fix PCIe register and
range mappings

The register and range mappings for the PCIe controller in Rockchip's
RK356x SoCs are incorrect. Replace them with corrected values from the
vendor BSP sources, updated to match current DT schema.

Tested-by: Ondrej Jirman <[email protected]>
Signed-off-by: Andrew Powers-Holmes <[email protected]>
---
arch/arm64/boot/dts/rockchip/rk3568.dtsi | 14 ++++++++------
arch/arm64/boot/dts/rockchip/rk356x.dtsi | 7 ++++---
2 files changed, 12 insertions(+), 9 deletions(-)

--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
@@ -707,7 +707,7 @@ pcie2x1: pcie@fe260000 {
compatible = "rockchip,rk3568-pcie";
reg = <0x3 0xc0000000 0x0 0x00400000>,
<0x0 0xfe260000 0x0 0x00010000>,
- <0x3 0x3f000000 0x0 0x01000000>;
+ <0x0 0xf4000000 0x0 0x00100000>;
reg-names = "dbi", "apb", "config";
interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
@@ -736,8 +736,9 @@ pcie2x1: pcie@fe260000 {
phys = <&combphy2 PHY_TYPE_PCIE>;
phy-names = "pcie-phy";
power-domains = <&power RK3568_PD_PIPE>;
- ranges = <0x01000000 0x0 0x3ef00000 0x3 0x3ef00000 0x0 0x00100000
- 0x02000000 0x0 0x00000000 0x3 0x00000000 0x0 0x3ef00000>;
+ ranges = <0x01000000 0x0 0xf4100000 0x0 0xf4100000 0x0 0x00100000>,
+ <0x02000000 0x0 0xf4200000 0x0 0xf4200000 0x0 0x01e00000>,
+ <0x03000000 0x0 0x40000000 0x3 0x00000000 0x0 0x40000000>;
resets = <&cru SRST_PCIE20_POWERUP>;
reset-names = "pipe";
#address-cells = <3>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -899,6 +899,14 @@ config SOCIONEXT_SYNQUACER_PREITS

If unsure, say Y.

+config ROCKCHIP_ERRATUM_114514
+ bool "Rockchip RK3568 force no_local_cache"
+ default y
+ help
+ They consider this as a SoC implement design instead of a bug.
+
+ If unsure, say Y.
+
endmenu


--- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
@@ -64,7 +64,7 @@
compatible = "rockchip,rk3568-pcie";
#address-cells = <3>;
#size-cells = <2>;
- bus-range = <0x0 0xf>;
+ bus-range = <0x10 0x1f>;
clocks = <&cru ACLK_PCIE30X1_MST>, <&cru ACLK_PCIE30X1_SLV>,
<&cru ACLK_PCIE30X1_DBI>, <&cru PCLK_PCIE30X1>,
<&cru CLK_PCIE30X1_AUX_NDFT>;
@@ -87,7 +87,7 @@
num-ib-windows = <6>;
num-ob-windows = <2>;
max-link-speed = <3>;
- msi-map = <0x0 &gic 0x1000 0x1000>;
+ msi-map = <0x1000 &its 0x1000 0x1000>;
num-lanes = <1>;
phys = <&pcie30phy>;
phy-names = "pcie-phy";
@@ -116,7 +116,7 @@
compatible = "rockchip,rk3568-pcie";
#address-cells = <3>;
#size-cells = <2>;
- bus-range = <0x0 0xf>;
+ bus-range = <0x20 0x2f>;
clocks = <&cru ACLK_PCIE30X2_MST>, <&cru ACLK_PCIE30X2_SLV>,
<&cru ACLK_PCIE30X2_DBI>, <&cru PCLK_PCIE30X2>,
<&cru CLK_PCIE30X2_AUX_NDFT>;
@@ -139,7 +139,7 @@
num-ib-windows = <6>;
num-ob-windows = <2>;
max-link-speed = <3>;
- msi-map = <0x0 &gic 0x2000 0x1000>;
+ msi-map = <0x2000 &its 0x2000 0x1000>;
num-lanes = <2>;
phys = <&pcie30phy>;
phy-names = "pcie-phy";
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
@@ -260,14 +260,21 @@

gic: interrupt-controller@fd400000 {
compatible = "arm,gic-v3";
+ #interrupt-cells = <3>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+ interrupt-controller;
+
reg = <0x0 0xfd400000 0 0x10000>, /* GICD */
- <0x0 0xfd460000 0 0x80000>; /* GICR */
+ <0x0 0xfd460000 0 0xc0000>; /* GICR */
interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
- interrupt-controller;
- #interrupt-cells = <3>;
- mbi-alias = <0x0 0xfd410000>;
- mbi-ranges = <296 24>;
- msi-controller;
+ its: interrupt-controller@fd440000 {
+ compatible = "arm,gic-v3-its";
+ msi-controller;
+ #msi-cells = <1>;
+ reg = <0x0 0xfd440000 0x0 0x20000>;
+ };
};

usb_host0_ehci: usb@fd800000 {
@@ -731,7 +738,7 @@
num-ib-windows = <6>;
num-ob-windows = <2>;
max-link-speed = <2>;
- msi-map = <0x0 &gic 0x0 0x1000>;
+ msi-map = <0x0 &its 0x0 0x1000>;
num-lanes = <1>;
phys = <&combphy2 PHY_TYPE_PCIE>;
phy-names = "pcie-phy";
Loading

0 comments on commit ae92ccb

Please sign in to comment.