qualcommax: use upstream QMP pipe patch
Passing QMP pipe clocks was upstreamed, but it requires conversion single QMP node, so backport both of those instead of our downstream patch. Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
e9f1024779
commit
5337627ca4
6 changed files with 145 additions and 14 deletions
|
@ -0,0 +1,122 @@
|
||||||
|
From 9e5e778f3340a687dd91c533064f963d352921c6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
|
||||||
|
Date: Sun, 20 Aug 2023 17:20:26 +0300
|
||||||
|
Subject: [PATCH] arm64: dts: qcom: ipq8074: switch PCIe QMP PHY to new style
|
||||||
|
of bindings
|
||||||
|
|
||||||
|
Change the PCIe QMP PHY to use newer style of QMP PHY bindings (single
|
||||||
|
resource region, no per-PHY subnodes).
|
||||||
|
|
||||||
|
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
|
||||||
|
Link: https://lore.kernel.org/r/20230820142035.89903-10-dmitry.baryshkov@linaro.org
|
||||||
|
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
|
||||||
|
---
|
||||||
|
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 67 +++++++++++----------------
|
||||||
|
1 file changed, 28 insertions(+), 39 deletions(-)
|
||||||
|
|
||||||
|
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
|
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
|
@@ -211,59 +211,48 @@
|
||||||
|
|
||||||
|
pcie_qmp0: phy@84000 {
|
||||||
|
compatible = "qcom,ipq8074-qmp-gen3-pcie-phy";
|
||||||
|
- reg = <0x00084000 0x1bc>;
|
||||||
|
- #address-cells = <1>;
|
||||||
|
- #size-cells = <1>;
|
||||||
|
- ranges;
|
||||||
|
+ reg = <0x00084000 0x1000>;
|
||||||
|
|
||||||
|
clocks = <&gcc GCC_PCIE0_AUX_CLK>,
|
||||||
|
- <&gcc GCC_PCIE0_AHB_CLK>;
|
||||||
|
- clock-names = "aux", "cfg_ahb";
|
||||||
|
+ <&gcc GCC_PCIE0_AHB_CLK>,
|
||||||
|
+ <&gcc GCC_PCIE0_PIPE_CLK>;
|
||||||
|
+ clock-names = "aux",
|
||||||
|
+ "cfg_ahb",
|
||||||
|
+ "pipe";
|
||||||
|
+
|
||||||
|
+ clock-output-names = "pcie20_phy0_pipe_clk";
|
||||||
|
+ #clock-cells = <0>;
|
||||||
|
+
|
||||||
|
+ #phy-cells = <0>;
|
||||||
|
+
|
||||||
|
resets = <&gcc GCC_PCIE0_PHY_BCR>,
|
||||||
|
- <&gcc GCC_PCIE0PHY_PHY_BCR>;
|
||||||
|
+ <&gcc GCC_PCIE0PHY_PHY_BCR>;
|
||||||
|
reset-names = "phy",
|
||||||
|
"common";
|
||||||
|
status = "disabled";
|
||||||
|
-
|
||||||
|
- pcie_phy0: phy@84200 {
|
||||||
|
- reg = <0x84200 0x16c>,
|
||||||
|
- <0x84400 0x200>,
|
||||||
|
- <0x84800 0x1f0>,
|
||||||
|
- <0x84c00 0xf4>;
|
||||||
|
- #phy-cells = <0>;
|
||||||
|
- #clock-cells = <0>;
|
||||||
|
- clocks = <&gcc GCC_PCIE0_PIPE_CLK>;
|
||||||
|
- clock-names = "pipe0";
|
||||||
|
- clock-output-names = "pcie20_phy0_pipe_clk";
|
||||||
|
- };
|
||||||
|
};
|
||||||
|
|
||||||
|
pcie_qmp1: phy@8e000 {
|
||||||
|
compatible = "qcom,ipq8074-qmp-pcie-phy";
|
||||||
|
- reg = <0x0008e000 0x1c4>;
|
||||||
|
- #address-cells = <1>;
|
||||||
|
- #size-cells = <1>;
|
||||||
|
- ranges;
|
||||||
|
+ reg = <0x0008e000 0x1000>;
|
||||||
|
|
||||||
|
clocks = <&gcc GCC_PCIE1_AUX_CLK>,
|
||||||
|
- <&gcc GCC_PCIE1_AHB_CLK>;
|
||||||
|
- clock-names = "aux", "cfg_ahb";
|
||||||
|
+ <&gcc GCC_PCIE1_AHB_CLK>,
|
||||||
|
+ <&gcc GCC_PCIE1_PIPE_CLK>;
|
||||||
|
+ clock-names = "aux",
|
||||||
|
+ "cfg_ahb",
|
||||||
|
+ "pipe";
|
||||||
|
+
|
||||||
|
+ clock-output-names = "pcie20_phy1_pipe_clk";
|
||||||
|
+ #clock-cells = <0>;
|
||||||
|
+
|
||||||
|
+ #phy-cells = <0>;
|
||||||
|
+
|
||||||
|
resets = <&gcc GCC_PCIE1_PHY_BCR>,
|
||||||
|
- <&gcc GCC_PCIE1PHY_PHY_BCR>;
|
||||||
|
+ <&gcc GCC_PCIE1PHY_PHY_BCR>;
|
||||||
|
reset-names = "phy",
|
||||||
|
"common";
|
||||||
|
status = "disabled";
|
||||||
|
-
|
||||||
|
- pcie_phy1: phy@8e200 {
|
||||||
|
- reg = <0x8e200 0x130>,
|
||||||
|
- <0x8e400 0x200>,
|
||||||
|
- <0x8e800 0x1f8>;
|
||||||
|
- #phy-cells = <0>;
|
||||||
|
- #clock-cells = <0>;
|
||||||
|
- clocks = <&gcc GCC_PCIE1_PIPE_CLK>;
|
||||||
|
- clock-names = "pipe0";
|
||||||
|
- clock-output-names = "pcie20_phy1_pipe_clk";
|
||||||
|
- };
|
||||||
|
};
|
||||||
|
|
||||||
|
mdio: mdio@90000 {
|
||||||
|
@@ -839,7 +828,7 @@
|
||||||
|
#address-cells = <3>;
|
||||||
|
#size-cells = <2>;
|
||||||
|
|
||||||
|
- phys = <&pcie_phy1>;
|
||||||
|
+ phys = <&pcie_qmp1>;
|
||||||
|
phy-names = "pciephy";
|
||||||
|
|
||||||
|
ranges = <0x81000000 0x0 0x00000000 0x10200000 0x0 0x10000>, /* I/O */
|
||||||
|
@@ -901,7 +890,7 @@
|
||||||
|
#address-cells = <3>;
|
||||||
|
#size-cells = <2>;
|
||||||
|
|
||||||
|
- phys = <&pcie_phy0>;
|
||||||
|
+ phys = <&pcie_qmp0>;
|
||||||
|
phy-names = "pciephy";
|
||||||
|
|
||||||
|
ranges = <0x81000000 0x0 0x00000000 0x20200000 0x0 0x10000>, /* I/O */
|
|
@ -1,6 +1,6 @@
|
||||||
From 8a576b5bc9f0555d1d970cacabcaa24a3b74fa57 Mon Sep 17 00:00:00 2001
|
From 591da388c344f934601548cb44f54eab012c6c94 Mon Sep 17 00:00:00 2001
|
||||||
From: Robert Marko <robimarko@gmail.com>
|
From: Robert Marko <robimarko@gmail.com>
|
||||||
Date: Wed, 16 Nov 2022 22:15:01 +0100
|
Date: Fri, 13 Oct 2023 18:39:34 +0200
|
||||||
Subject: [PATCH] arm64: dts: qcom: ipq8074: pass QMP PCI PHY PIPE clocks to
|
Subject: [PATCH] arm64: dts: qcom: ipq8074: pass QMP PCI PHY PIPE clocks to
|
||||||
GCC
|
GCC
|
||||||
|
|
||||||
|
@ -11,20 +11,29 @@ If not passed directly, driver maintains backwards compatibility by then
|
||||||
falling back to global lookup.
|
falling back to global lookup.
|
||||||
|
|
||||||
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||||||
|
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
|
||||||
|
Link: https://lore.kernel.org/r/20231013164025.3541606-2-robimarko@gmail.com
|
||||||
|
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
|
||||||
---
|
---
|
||||||
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 4 ++--
|
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 10 ++++++++--
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
@@ -407,8 +407,8 @@
|
@@ -371,8 +371,14 @@
|
||||||
gcc: gcc@1800000 {
|
gcc: gcc@1800000 {
|
||||||
compatible = "qcom,gcc-ipq8074";
|
compatible = "qcom,gcc-ipq8074";
|
||||||
reg = <0x01800000 0x80000>;
|
reg = <0x01800000 0x80000>;
|
||||||
- clocks = <&xo>, <&sleep_clk>;
|
- clocks = <&xo>, <&sleep_clk>;
|
||||||
- clock-names = "xo", "sleep_clk";
|
- clock-names = "xo", "sleep_clk";
|
||||||
+ clocks = <&xo>, <&sleep_clk>, <&pcie_phy0>, <&pcie_phy1>;
|
+ clocks = <&xo>,
|
||||||
+ clock-names = "xo", "sleep_clk", "pcie0_pipe", "pcie1_pipe";
|
+ <&sleep_clk>,
|
||||||
|
+ <&pcie_qmp0>,
|
||||||
|
+ <&pcie_qmp1>;
|
||||||
|
+ clock-names = "xo",
|
||||||
|
+ "sleep_clk",
|
||||||
|
+ "pcie0_pipe",
|
||||||
|
+ "pcie1_pipe";
|
||||||
#clock-cells = <1>;
|
#clock-cells = <1>;
|
||||||
#power-domain-cells = <1>;
|
#power-domain-cells = <1>;
|
||||||
#reset-cells = <1>;
|
#reset-cells = <1>;
|
|
@ -12,7 +12,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||||||
|
|
||||||
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
@@ -757,7 +757,7 @@
|
@@ -752,7 +752,7 @@
|
||||||
reg = <0x0b000000 0x1000>, <0x0b002000 0x1000>;
|
reg = <0x0b000000 0x1000>, <0x0b002000 0x1000>;
|
||||||
ranges = <0 0xb00a000 0xffd>;
|
ranges = <0 0xb00a000 0xffd>;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||||||
compatible = "arm,gic-v2m-frame";
|
compatible = "arm,gic-v2m-frame";
|
||||||
msi-controller;
|
msi-controller;
|
||||||
reg = <0x0 0xffd>;
|
reg = <0x0 0xffd>;
|
||||||
@@ -870,8 +870,7 @@
|
@@ -865,8 +865,7 @@
|
||||||
ranges = <0x81000000 0x0 0x00000000 0x10200000 0x0 0x10000>, /* I/O */
|
ranges = <0x81000000 0x0 0x00000000 0x10200000 0x0 0x10000>, /* I/O */
|
||||||
<0x82000000 0x0 0x10220000 0x10220000 0x0 0xfde0000>; /* MEM */
|
<0x82000000 0x0 0x10220000 0x10220000 0x0 0xfde0000>; /* MEM */
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||||||
#interrupt-cells = <1>;
|
#interrupt-cells = <1>;
|
||||||
interrupt-map-mask = <0 0 0 0x7>;
|
interrupt-map-mask = <0 0 0 0x7>;
|
||||||
interrupt-map = <0 0 0 1 &intc 0 0 142
|
interrupt-map = <0 0 0 1 &intc 0 0 142
|
||||||
@@ -932,8 +931,7 @@
|
@@ -927,8 +926,7 @@
|
||||||
ranges = <0x81000000 0x0 0x00000000 0x20200000 0x0 0x10000>, /* I/O */
|
ranges = <0x81000000 0x0 0x00000000 0x20200000 0x0 0x10000>, /* I/O */
|
||||||
<0x82000000 0x0 0x20220000 0x20220000 0x0 0xfde0000>; /* MEM */
|
<0x82000000 0x0 0x20220000 0x20220000 0x0 0xfde0000>; /* MEM */
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||||||
soc: soc@0 {
|
soc: soc@0 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
@@ -425,6 +451,11 @@
|
@@ -420,6 +446,11 @@
|
||||||
reg = <0x01937000 0x21000>;
|
reg = <0x01937000 0x21000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||||||
spmi_bus: spmi@200f000 {
|
spmi_bus: spmi@200f000 {
|
||||||
compatible = "qcom,spmi-pmic-arb";
|
compatible = "qcom,spmi-pmic-arb";
|
||||||
reg = <0x0200f000 0x001000>,
|
reg = <0x0200f000 0x001000>,
|
||||||
@@ -972,6 +1003,56 @@
|
@@ -967,6 +998,56 @@
|
||||||
"axi_s_sticky";
|
"axi_s_sticky";
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,7 +15,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||||||
|
|
||||||
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
@@ -1053,6 +1053,117 @@
|
@@ -1048,6 +1048,117 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,7 +12,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||||||
|
|
||||||
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
||||||
@@ -349,6 +349,106 @@
|
@@ -338,6 +338,106 @@
|
||||||
reg = <0x000a4000 0x2000>;
|
reg = <0x000a4000 0x2000>;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
Loading…
Reference in a new issue