mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

Manually rebased: hack-5.15/780-usb-net-MeigLink_modem_support.patch Removed upstreamed: mpc85xx/patches-5.15/110-gpio-mpc8xxx-Fix-support-for-IRQ_TYPE_LEVEL_LOW-flow.patch All other patches automatically rebased. Signed-off-by: Liu Linhui <liulinhui36@gmail.com> Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
217 lines
5.9 KiB
Diff
217 lines
5.9 KiB
Diff
From 184c9b73285f05ebc013205d54ed11cd968cb38e Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Mon, 20 Dec 2021 15:08:04 +0100
|
|
Subject: [PATCH 112/137] arm64: dts: ipq8074: fix PCI related DT nodes
|
|
|
|
Currently present PCI PHY and PCI controller nodes are not working
|
|
and are incorrect for the v2 of IPQ8074 which is the only version
|
|
supported upstream.
|
|
|
|
So, correct the PCI related nodes.
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
arch/arm64/boot/dts/qcom/ipq8074.dtsi | 93 +++++++++++++++------------
|
|
1 file changed, 52 insertions(+), 41 deletions(-)
|
|
|
|
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
|
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
|
|
@@ -232,59 +232,61 @@
|
|
status = "disabled";
|
|
};
|
|
|
|
- pcie_qmp0: phy@86000 {
|
|
- compatible = "qcom,ipq8074-qmp-pcie-phy";
|
|
- reg = <0x00086000 0x1000>;
|
|
+ pcie_qmp0: phy@84000 {
|
|
+ compatible = "qcom,ipq8074-qmp-gen3-pcie-phy";
|
|
+ reg = <0x00084000 0x1bc>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
|
|
clocks = <&gcc GCC_PCIE0_AUX_CLK>,
|
|
- <&gcc GCC_PCIE0_AHB_CLK>;
|
|
+ <&gcc GCC_PCIE0_AHB_CLK>;
|
|
clock-names = "aux", "cfg_ahb";
|
|
+
|
|
resets = <&gcc GCC_PCIE0_PHY_BCR>,
|
|
- <&gcc GCC_PCIE0PHY_PHY_BCR>;
|
|
- reset-names = "phy",
|
|
- "common";
|
|
+ <&gcc GCC_PCIE0PHY_PHY_BCR>;
|
|
+ reset-names = "phy", "common";
|
|
+
|
|
status = "disabled";
|
|
|
|
- pcie_phy0: phy@86200 {
|
|
- reg = <0x86200 0x16c>,
|
|
- <0x86400 0x200>,
|
|
- <0x86800 0x4f4>;
|
|
+ pcie_phy0: phy@84200 {
|
|
+ reg = <0x84200 0x16c>,
|
|
+ <0x84400 0x200>,
|
|
+ <0x84800 0x4f4>;
|
|
#phy-cells = <0>;
|
|
#clock-cells = <0>;
|
|
clocks = <&gcc GCC_PCIE0_PIPE_CLK>;
|
|
clock-names = "pipe0";
|
|
- clock-output-names = "pcie_0_pipe_clk";
|
|
+ clock-output-names = "gcc_pcie0_pipe_clk_src";
|
|
};
|
|
};
|
|
|
|
pcie_qmp1: phy@8e000 {
|
|
compatible = "qcom,ipq8074-qmp-pcie-phy";
|
|
- reg = <0x0008e000 0x1000>;
|
|
+ reg = <0x0008e000 0x1c4>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
|
|
clocks = <&gcc GCC_PCIE1_AUX_CLK>,
|
|
- <&gcc GCC_PCIE1_AHB_CLK>;
|
|
+ <&gcc GCC_PCIE1_AHB_CLK>;
|
|
clock-names = "aux", "cfg_ahb";
|
|
+
|
|
resets = <&gcc GCC_PCIE1_PHY_BCR>,
|
|
- <&gcc GCC_PCIE1PHY_PHY_BCR>;
|
|
- reset-names = "phy",
|
|
- "common";
|
|
+ <&gcc GCC_PCIE1PHY_PHY_BCR>;
|
|
+ reset-names = "phy", "common";
|
|
+
|
|
status = "disabled";
|
|
|
|
pcie_phy1: phy@8e200 {
|
|
- reg = <0x8e200 0x16c>,
|
|
+ reg = <0x8e200 0x130>,
|
|
<0x8e400 0x200>,
|
|
- <0x8e800 0x4f4>;
|
|
+ <0x8e800 0x1f8>;
|
|
#phy-cells = <0>;
|
|
#clock-cells = <0>;
|
|
clocks = <&gcc GCC_PCIE1_PIPE_CLK>;
|
|
clock-names = "pipe0";
|
|
- clock-output-names = "pcie_1_pipe_clk";
|
|
+ clock-output-names = "gcc_pcie1_pipe_clk_src";
|
|
};
|
|
};
|
|
|
|
@@ -686,7 +688,7 @@
|
|
reg = <0x0b000000 0x1000>, <0x0b002000 0x1000>;
|
|
ranges = <0 0xb00a000 0xffd>;
|
|
|
|
- v2m@0 {
|
|
+ gic_v2m0: v2m@0 {
|
|
compatible = "arm,gic-v2m-frame";
|
|
msi-controller;
|
|
reg = <0x0 0xffd>;
|
|
@@ -787,6 +789,7 @@
|
|
linux,pci-domain = <1>;
|
|
bus-range = <0x00 0xff>;
|
|
num-lanes = <1>;
|
|
+ max-link-speed = <2>;
|
|
#address-cells = <3>;
|
|
#size-cells = <2>;
|
|
|
|
@@ -794,12 +797,12 @@
|
|
phy-names = "pciephy";
|
|
|
|
ranges = <0x81000000 0 0x10200000 0x10200000
|
|
- 0 0x100000 /* downstream I/O */
|
|
- 0x82000000 0 0x10300000 0x10300000
|
|
- 0 0xd00000>; /* non-prefetchable memory */
|
|
+ 0 0x10000>, /* downstream I/O */
|
|
+ <0x82000000 0 0x10220000 0x10220000
|
|
+ 0 0xfde0000>; /* non-prefetchable memory */
|
|
+
|
|
+ msi-parent = <&gic_v2m0>;
|
|
|
|
- interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
|
|
- interrupt-names = "msi";
|
|
#interrupt-cells = <1>;
|
|
interrupt-map-mask = <0 0 0 0x7>;
|
|
interrupt-map = <0 0 0 1 &intc 0 142
|
|
@@ -839,16 +842,18 @@
|
|
};
|
|
|
|
pcie0: pci@20000000 {
|
|
- compatible = "qcom,pcie-ipq8074";
|
|
- reg = <0x20000000 0xf1d>,
|
|
- <0x20000f20 0xa8>,
|
|
- <0x00080000 0x2000>,
|
|
- <0x20100000 0x1000>;
|
|
- reg-names = "dbi", "elbi", "parf", "config";
|
|
+ compatible = "qcom,pcie-ipq8074-gen3";
|
|
+ reg = <0x20000000 0xf1d>,
|
|
+ <0x20000f20 0xa8>,
|
|
+ <0x20001000 0x1000>,
|
|
+ <0x00080000 0x4000>,
|
|
+ <0x20100000 0x1000>;
|
|
+ reg-names = "dbi", "elbi", "atu", "parf", "config";
|
|
device_type = "pci";
|
|
linux,pci-domain = <0>;
|
|
bus-range = <0x00 0xff>;
|
|
num-lanes = <1>;
|
|
+ max-link-speed = <3>;
|
|
#address-cells = <3>;
|
|
#size-cells = <2>;
|
|
|
|
@@ -856,12 +861,12 @@
|
|
phy-names = "pciephy";
|
|
|
|
ranges = <0x81000000 0 0x20200000 0x20200000
|
|
- 0 0x100000 /* downstream I/O */
|
|
- 0x82000000 0 0x20300000 0x20300000
|
|
- 0 0xd00000>; /* non-prefetchable memory */
|
|
+ 0 0x10000>, /* downstream I/O */
|
|
+ <0x82000000 0 0x20220000 0x20220000
|
|
+ 0 0xfde0000>; /* non-prefetchable memory */
|
|
+
|
|
+ msi-parent = <&gic_v2m0>;
|
|
|
|
- interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
|
|
- interrupt-names = "msi";
|
|
#interrupt-cells = <1>;
|
|
interrupt-map-mask = <0 0 0 0x7>;
|
|
interrupt-map = <0 0 0 1 &intc 0 75
|
|
@@ -877,27 +882,33 @@
|
|
<&gcc GCC_PCIE0_AXI_M_CLK>,
|
|
<&gcc GCC_PCIE0_AXI_S_CLK>,
|
|
<&gcc GCC_PCIE0_AHB_CLK>,
|
|
- <&gcc GCC_PCIE0_AUX_CLK>;
|
|
+ <&gcc GCC_PCIE0_AUX_CLK>,
|
|
+ <&gcc GCC_PCIE0_AXI_S_BRIDGE_CLK>,
|
|
+ <&gcc GCC_PCIE0_RCHNG_CLK>;
|
|
|
|
clock-names = "iface",
|
|
"axi_m",
|
|
"axi_s",
|
|
"ahb",
|
|
- "aux";
|
|
+ "aux",
|
|
+ "axi_bridge",
|
|
+ "rchng";
|
|
resets = <&gcc GCC_PCIE0_PIPE_ARES>,
|
|
<&gcc GCC_PCIE0_SLEEP_ARES>,
|
|
<&gcc GCC_PCIE0_CORE_STICKY_ARES>,
|
|
<&gcc GCC_PCIE0_AXI_MASTER_ARES>,
|
|
<&gcc GCC_PCIE0_AXI_SLAVE_ARES>,
|
|
<&gcc GCC_PCIE0_AHB_ARES>,
|
|
- <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>;
|
|
+ <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>,
|
|
+ <&gcc GCC_PCIE0_AXI_SLAVE_STICKY_ARES>;
|
|
reset-names = "pipe",
|
|
"sleep",
|
|
"sticky",
|
|
"axi_m",
|
|
"axi_s",
|
|
"ahb",
|
|
- "axi_m_sticky";
|
|
+ "axi_m_sticky",
|
|
+ "axi_s_sticky";
|
|
status = "disabled";
|
|
};
|
|
};
|