Skip to content

Commit

Permalink
QualcommAX: ipq60xx: enable subtarget and add some miss patch
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaY-shi committed Jul 15, 2024
1 parent f23760f commit 43f844c
Show file tree
Hide file tree
Showing 16 changed files with 2,229 additions and 2 deletions.
3 changes: 3 additions & 0 deletions target/linux/qualcommax/config-6.6
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ CONFIG_POWER_SUPPLY=y
CONFIG_PREEMPT_NONE_BUILD=y
CONFIG_PRINTK_TIME=y
CONFIG_PTP_1588_CLOCK_OPTIONAL=y
CONFIG_PWM=y
CONFIG_PWM_IPQ=y
CONFIG_PWM_SYSFS=y
CONFIG_QCA807X_PHY=y
CONFIG_QCA808X_PHY=y
# CONFIG_QCM_DISPCC_2290 is not set
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// SPDX-License-Identifier: GPL-2.0-only

#include "ipq6018.dtsi"

&nss_region {
reg = <0x0 0x40000000 0x0 0x00800000>;
};

&q6_region {
reg = <0x0 0x4ab00000 0x0 0x02800000>;
};

&m3_dump_region {
reg = <0x0 0x4d400000 0x0 0x00100000>;
};

&q6_etr_region {
reg = <0x0 0x4d300000 0x0 0x00100000>;
};
36 changes: 36 additions & 0 deletions target/linux/qualcommax/ipq60xx/base-files/etc/init.d/smp_affinity
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh /etc/rc.common

START=93

enable_affinity_ipq() {
set_affinity() {
irq=$(awk "/$1/{ print substr(\$1, 1, length(\$1)-1); exit }" /proc/interrupts)
[ -n "$irq" ] && echo $2 > /proc/irq/$irq/smp_affinity
}

# assign 4 rx interrupts to each core
set_affinity 'reo2host-destination-ring1' 1
set_affinity 'reo2host-destination-ring2' 2
set_affinity 'reo2host-destination-ring3' 4
set_affinity 'reo2host-destination-ring4' 8

# assign 3 tcl completions to last 3 CPUs
set_affinity 'wbm2host-tx-completions-ring1' 2
set_affinity 'wbm2host-tx-completions-ring2' 4
set_affinity 'wbm2host-tx-completions-ring3' 8

# assign 3 ppdu mac interrupts to last 3 cores
set_affinity 'ppdu-end-interrupts-mac1' 2
set_affinity 'ppdu-end-interrupts-mac2' 4
set_affinity 'ppdu-end-interrupts-mac3' 8

# assign lan/wan to core 4
set_affinity 'edma_txcmpl' 8
set_affinity 'edma_rxfill' 8
set_affinity 'edma_rxdesc' 8
set_affinity 'edma_misc' 8
}

boot() {
enable_affinity_ipq
}
1 change: 0 additions & 1 deletion target/linux/qualcommax/ipq60xx/target.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
SUBTARGET:=ipq60xx
FEATURES += source-only
BOARDNAME:=Qualcomm Atheros IPQ60xx
DEFAULT_PACKAGES += ath11k-firmware-ipq6018

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Signed-off-by: Bjorn Andersson <andersson@kernel.org>
+ .parent_hws = (const struct clk_hw *[]){
+ &qdss_at_clk_src.clkr.hw },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
+ .ops = &clk_branch2_ops,
+ },
+ },
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From ba4cdc72744a217ba1d0d345e074ff65d7ec8c37 Mon Sep 17 00:00:00 2001
From: JiaY-shi <shi05275@163.com>
Date: Tue, 6 Jun 2023 19:35:55 +0800
Subject: [PATCH 155/155] arm64: dts: qcom: ipq6018: add blsp1_i2c6 node

---
arch/arm64/boot/dts/qcom/ipq6018.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)

--- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
@@ -626,6 +626,21 @@
status = "disabled";
};

+ blsp1_i2c6: i2c@78ba000 {
+ compatible = "qcom,i2c-qup-v2.2.1";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x0 0x078ba000 0x0 0x600>;
+ interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&gcc GCC_BLSP1_QUP6_I2C_APPS_CLK>,
+ <&gcc GCC_BLSP1_AHB_CLK>;
+ clock-names = "core", "iface";
+ clock-frequency = <400000>;
+ dmas = <&blsp_dma 22>, <&blsp_dma 23>;
+ dma-names = "tx", "rx";
+ status = "disabled";
+ };
+
qpic_bam: dma-controller@7984000 {
compatible = "qcom,bam-v1.7.0";
reg = <0x0 0x07984000 0x0 0x1a000>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From 0ad5a9666e0eca72fc4546ed384a40b1430ddd8b Mon Sep 17 00:00:00 2001
From: JiaY-shi <shi05275@163.com>
Date: Mon, 12 Jun 2023 15:06:01 +0800
Subject: [PATCH] arm64: dts: qcom: ipq6018: repair reserved-memory missing
nodes

---
arch/arm64/boot/dts/qcom/ipq6018.dtsi | 31 +++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

--- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
@@ -223,6 +223,22 @@
reg = <0x0 0x4ab00000 0x0 0x5500000>;
no-map;
};
+
+ nss_region: nss@40000000 {
+ no-map;
+ reg = <0x0 0x40000000 0x0 0x01000000>;
+ };
+
+ q6_etr_region: q6_etr_dump@1 {
+ no-map;
+ reg = <0x0 0x50000000 0x0 0x00100000>;
+ };
+
+ m3_dump_region: m3_dump@50100000 {
+ no-map;
+ reg = <0x0 0x50100000 0x0 0x00100000>;
+ };
+
};

smem {
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 48d8e82ed977f07211f827834d6ee6e6fe3336d8 Mon Sep 17 00:00:00 2001
From: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Date: Sat, 27 Aug 2022 17:33:37 -0500
Subject: [PATCH 1004/1010] arm64: dts: qcom: ipq6018: Add missing fixed-clocks

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
---
arch/arm64/boot/dts/qcom/ipq6018.dtsi | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)

--- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
@@ -28,6 +28,12 @@
clock-frequency = <24000000>;
#clock-cells = <0>;
};
+
+ usb3phy_0_cc_pipe_clk: usb3phy-0-cc-pipe-clk {
+ compatible = "fixed-clock";
+ clock-frequency = <125000000>;
+ #clock-cells = <0>;
+ };
};

cpus: cpus {
@@ -433,8 +439,12 @@
gcc: gcc@1800000 {
compatible = "qcom,gcc-ipq6018";
reg = <0x0 0x01800000 0x0 0x80000>;
- clocks = <&xo>, <&sleep_clk>;
- clock-names = "xo", "sleep_clk";
+ clocks = <&xo>,
+ <&sleep_clk>,
+ <&usb3phy_0_cc_pipe_clk>;
+ clock-names = "xo",
+ "sleep_clk",
+ "usb3phy_0_cc_pipe_clk";
#clock-cells = <1>;
#reset-cells = <1>;
};
Loading

0 comments on commit 43f844c

Please sign in to comment.