1 From 5b40516b2f5fb9b2a7d6d3e2e924f12ec9d183a8 Mon Sep 17 00:00:00 2001
2 From: Mathieu Olivari <mathieu@codeaurora.org>
3 Date: Tue, 21 Apr 2015 19:01:42 -0700
4 Subject: [PATCH 8/9] ARM: dts: qcom: add pcie nodes to ipq806x platforms
6 qcom-pcie driver now supports version 0 of the controller. This change
7 adds the corresponding entries to the IPQ806x dtsi file and
8 corresponding platform (AP148).
10 Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
12 arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 30 ++++++++
13 arch/arm/boot/dts/qcom-ipq8064.dtsi | 124 +++++++++++++++++++++++++++++++
14 2 files changed, 154 insertions(+)
16 --- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
17 +++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
23 + pcie0: pci@1b500000 {
25 + phy-tx0-term-offset = <7>;
28 + pcie1: pci@1b700000 {
30 + phy-tx0-term-offset = <7>;
34 --- a/arch/arm/boot/dts/qcom-ipq8064-db149.dts
35 +++ b/arch/arm/boot/dts/qcom-ipq8064-db149.dts
41 + pcie0: pci@1b500000 {
45 + pcie1: pci@1b700000 {
49 + pcie2: pci@1b900000 {
54 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
55 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
57 #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
58 #include <dt-bindings/clock/qcom,lcc-ipq806x.h>
59 #include <dt-bindings/soc/qcom,gsbi.h>
60 +#include <dt-bindings/reset/qcom,gcc-ipq806x.h>
61 +#include <dt-bindings/interrupt-controller/arm-gic.h>
62 +#include <dt-bindings/gpio/gpio.h>
65 model = "Qualcomm IPQ8064";
68 #interrupt-cells = <2>;
69 interrupts = <0 16 0x4>;
71 + pcie0_pins: pcie0_pinmux {
74 + function = "pcie1_rst";
75 + drive-strength = <12>;
80 + pcie1_pins: pcie1_pinmux {
83 + function = "pcie2_rst";
84 + drive-strength = <12>;
89 + pcie2_pins: pcie2_pinmux {
92 + function = "pcie3_rst";
93 + drive-strength = <12>;
99 intc: interrupt-controller@2000000 {
100 @@ -417,6 +447,144 @@
105 + pcie0: pci@1b500000 {
106 + compatible = "qcom,pcie-v0";
107 + reg = <0x1b500000 0x1000
110 + 0x0ff00000 0x100000>;
111 + reg-names = "dbi", "elbi", "parf", "config";
112 + device_type = "pci";
113 + linux,pci-domain = <0>;
114 + bus-range = <0x00 0xff>;
116 + #address-cells = <3>;
119 + ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */
120 + 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
122 + interrupts = <GIC_SPI 35 IRQ_TYPE_NONE>;
123 + interrupt-names = "msi";
124 + #interrupt-cells = <1>;
125 + interrupt-map-mask = <0 0 0 0x7>;
126 + interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
127 + <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
128 + <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
129 + <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
131 + clocks = <&gcc PCIE_A_CLK>,
133 + <&gcc PCIE_PHY_CLK>;
134 + clock-names = "core", "iface", "phy";
136 + resets = <&gcc PCIE_ACLK_RESET>,
137 + <&gcc PCIE_HCLK_RESET>,
138 + <&gcc PCIE_POR_RESET>,
139 + <&gcc PCIE_PCI_RESET>,
140 + <&gcc PCIE_PHY_RESET>;
141 + reset-names = "axi", "ahb", "por", "pci", "phy";
143 + pinctrl-0 = <&pcie0_pins>;
144 + pinctrl-names = "default";
146 + perst-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
148 + status = "disabled";
151 + pcie1: pci@1b700000 {
152 + compatible = "qcom,pcie-v0";
153 + reg = <0x1b700000 0x1000
156 + 0x31f00000 0x100000>;
157 + reg-names = "dbi", "elbi", "parf", "config";
158 + device_type = "pci";
159 + linux,pci-domain = <1>;
160 + bus-range = <0x00 0xff>;
162 + #address-cells = <3>;
165 + ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */
166 + 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
168 + interrupts = <GIC_SPI 57 IRQ_TYPE_NONE>;
169 + interrupt-names = "msi";
170 + #interrupt-cells = <1>;
171 + interrupt-map-mask = <0 0 0 0x7>;
172 + interrupt-map = <0 0 0 1 &intc 0 58 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
173 + <0 0 0 2 &intc 0 59 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
174 + <0 0 0 3 &intc 0 60 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
175 + <0 0 0 4 &intc 0 61 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
177 + clocks = <&gcc PCIE_1_A_CLK>,
178 + <&gcc PCIE_1_H_CLK>,
179 + <&gcc PCIE_1_PHY_CLK>;
180 + clock-names = "core", "iface", "phy";
182 + resets = <&gcc PCIE_1_ACLK_RESET>,
183 + <&gcc PCIE_1_HCLK_RESET>,
184 + <&gcc PCIE_1_POR_RESET>,
185 + <&gcc PCIE_1_PCI_RESET>,
186 + <&gcc PCIE_1_PHY_RESET>;
187 + reset-names = "axi", "ahb", "por", "pci", "phy";
189 + pinctrl-0 = <&pcie1_pins>;
190 + pinctrl-names = "default";
192 + perst-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
194 + status = "disabled";
197 + pcie2: pci@1b900000 {
198 + compatible = "qcom,pcie-v0";
199 + reg = <0x1b900000 0x1000
202 + 0x35f00000 0x100000>;
203 + reg-names = "dbi", "elbi", "parf", "config";
204 + device_type = "pci";
205 + linux,pci-domain = <2>;
206 + bus-range = <0x00 0xff>;
208 + #address-cells = <3>;
211 + ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */
212 + 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
214 + interrupts = <GIC_SPI 71 IRQ_TYPE_NONE>;
215 + interrupt-names = "msi";
216 + #interrupt-cells = <1>;
217 + interrupt-map-mask = <0 0 0 0x7>;
218 + interrupt-map = <0 0 0 1 &intc 0 72 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
219 + <0 0 0 2 &intc 0 73 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
220 + <0 0 0 3 &intc 0 74 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
221 + <0 0 0 4 &intc 0 75 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
223 + clocks = <&gcc PCIE_2_A_CLK>,
224 + <&gcc PCIE_2_H_CLK>,
225 + <&gcc PCIE_2_PHY_CLK>;
226 + clock-names = "core", "iface", "phy";
228 + resets = <&gcc PCIE_2_ACLK_RESET>,
229 + <&gcc PCIE_2_HCLK_RESET>,
230 + <&gcc PCIE_2_POR_RESET>,
231 + <&gcc PCIE_2_PCI_RESET>,
232 + <&gcc PCIE_2_PHY_RESET>;
233 + reset-names = "axi", "ahb", "por", "pci", "phy";
235 + pinctrl-0 = <&pcie2_pins>;
236 + pinctrl-names = "default";
238 + perst-gpio = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
240 + status = "disabled";
244 sfpb_mutex: sfpb-mutex {