Skip to content

Commit

Permalink
qualcommax: add some patches for ipq60xx NSS support
Browse files Browse the repository at this point in the history
  • Loading branch information
breeze303 committed Oct 11, 2024
1 parent d202f14 commit 0c86786
Show file tree
Hide file tree
Showing 43 changed files with 9,146 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,28 @@ Signed-off-by: Bjorn Andersson <[email protected]>
opp-1320000000 {
opp-hz = /bits/ 64 <1320000000>;
opp-microvolt = <862500>;
+ opp-supported-hw = <0x3>;
+ opp-supported-hw = <0xf>;
clock-latency-ns = <200000>;
};

opp-1440000000 {
opp-hz = /bits/ 64 <1440000000>;
opp-microvolt = <925000>;
+ opp-supported-hw = <0x3>;
+ opp-supported-hw = <0xf>;
clock-latency-ns = <200000>;
};

opp-1608000000 {
opp-hz = /bits/ 64 <1608000000>;
opp-microvolt = <987500>;
+ opp-supported-hw = <0x1>;
+ opp-supported-hw = <0xf>;
clock-latency-ns = <200000>;
};

opp-1800000000 {
opp-hz = /bits/ 64 <1800000000>;
opp-microvolt = <1062500>;
+ opp-supported-hw = <0x1>;
+ opp-supported-hw = <0xf>;
clock-latency-ns = <200000>;
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Signed-off-by: Bjorn Andersson <[email protected]>
+ .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
Expand Up @@ -36,30 +36,30 @@ Signed-off-by: Mantas Pucka <[email protected]>
opp-hz = /bits/ 64 <1320000000>;
- opp-microvolt = <862500>;
+ opp-microvolt = <3>;
opp-supported-hw = <0x3>;
opp-supported-hw = <0xf>;
clock-latency-ns = <200000>;
};

opp-1440000000 {
opp-hz = /bits/ 64 <1440000000>;
- opp-microvolt = <925000>;
+ opp-microvolt = <4>;
opp-supported-hw = <0x3>;
opp-supported-hw = <0xf>;
clock-latency-ns = <200000>;
};

opp-1608000000 {
opp-hz = /bits/ 64 <1608000000>;
- opp-microvolt = <987500>;
+ opp-microvolt = <5>;
opp-supported-hw = <0x1>;
opp-supported-hw = <0xf>;
clock-latency-ns = <200000>;
};

opp-1800000000 {
opp-hz = /bits/ 64 <1800000000>;
- opp-microvolt = <1062500>;
+ opp-microvolt = <6>;
opp-supported-hw = <0x1>;
opp-supported-hw = <0xf>;
clock-latency-ns = <200000>;
};
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
---
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 0c86786

Please sign in to comment.