forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QualcommAX: ipq60xx: enable subtarget and add some miss patch
- Loading branch information
Showing
16 changed files
with
2,229 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6018-256m.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
36
target/linux/qualcommax/ipq60xx/base-files/etc/init.d/smp_affinity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
target/linux/qualcommax/patches-6.6/1002-arm64-dts-qcom-ipq6018-add-blsp1_i2c6-node.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; |
35 changes: 35 additions & 0 deletions
35
...ux/qualcommax/patches-6.6/1003-arm64-dts-qcom-ipq6018-repair-reserved-memory-missin.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
40 changes: 40 additions & 0 deletions
40
...t/linux/qualcommax/patches-6.6/1004-arm64-dts-qcom-ipq6018-Add-missing-fixed-clocks.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; |
Oops, something went wrong.