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
22 + pcie0_pins: pcie0_pinmux {
25 + function = "pcie1_rst";
26 + drive-strength = <12>;
31 + pcie1_pins: pcie1_pinmux {
34 + function = "pcie2_rst";
35 + drive-strength = <12>;
42 pins = "gpio18", "gpio19", "gpio21";
48 + pcie0: pci@1b500000 {
50 + reset-gpio = <&qcom_pinmux 3 0>;
51 + pinctrl-0 = <&pcie0_pins>;
52 + pinctrl-names = "default";
55 + pcie1: pci@1b700000 {
57 + reset-gpio = <&qcom_pinmux 48 0>;
58 + pinctrl-0 = <&pcie1_pins>;
59 + pinctrl-names = "default";
63 --- a/arch/arm/boot/dts/qcom-ipq8064-db149.dts
64 +++ b/arch/arm/boot/dts/qcom-ipq8064-db149.dts
69 + pcie0_pins: pcie0_pinmux {
72 + function = "pcie1_rst";
73 + drive-strength = <12>;
78 + pcie1_pins: pcie1_pinmux {
81 + function = "pcie2_rst";
82 + drive-strength = <12>;
87 + pcie2_pins: pcie2_pinmux {
90 + function = "pcie3_rst";
91 + drive-strength = <12>;
98 pins = "gpio18", "gpio19", "gpio21";
104 + pcie0: pci@1b500000 {
106 + reset-gpio = <&qcom_pinmux 3 0>;
107 + pinctrl-0 = <&pcie0_pins>;
108 + pinctrl-names = "default";
111 + pcie1: pci@1b700000 {
113 + reset-gpio = <&qcom_pinmux 48 0>;
114 + pinctrl-0 = <&pcie1_pins>;
115 + pinctrl-names = "default";
118 + pcie2: pci@1b900000 {
120 + reset-gpio = <&qcom_pinmux 63 0>;
121 + pinctrl-0 = <&pcie2_pins>;
122 + pinctrl-names = "default";
126 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
127 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
129 #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
130 #include <dt-bindings/clock/qcom,lcc-ipq806x.h>
131 #include <dt-bindings/soc/qcom,gsbi.h>
132 +#include <dt-bindings/reset/qcom,gcc-ipq806x.h>
133 +#include <dt-bindings/interrupt-controller/arm-gic.h>
136 model = "Qualcomm IPQ8064";
137 @@ -333,6 +335,129 @@
138 compatible = "syscon";
139 reg = <0x01200600 0x100>;
142 + pcie0: pci@1b500000 {
143 + compatible = "qcom,pcie-v0";
144 + reg = <0x1b500000 0x1000
147 + 0x0ff00000 0x100000>;
148 + reg-names = "dbi", "elbi", "parf", "config";
149 + device_type = "pci";
150 + linux,pci-domain = <0>;
151 + bus-range = <0x00 0xff>;
153 + #address-cells = <3>;
156 + ranges = <0x81000000 0 0 0x0fe00000 0 0x00100000 /* downstream I/O */
157 + 0x82000000 0 0x00000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
159 + interrupts = <GIC_SPI 35 IRQ_TYPE_NONE>;
160 + interrupt-names = "msi";
161 + #interrupt-cells = <1>;
162 + interrupt-map-mask = <0 0 0 0x7>;
163 + interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
164 + <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
165 + <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
166 + <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
168 + clocks = <&gcc PCIE_A_CLK>,
170 + <&gcc PCIE_PHY_CLK>;
171 + clock-names = "core", "iface", "phy";
173 + resets = <&gcc PCIE_ACLK_RESET>,
174 + <&gcc PCIE_HCLK_RESET>,
175 + <&gcc PCIE_POR_RESET>,
176 + <&gcc PCIE_PCI_RESET>,
177 + <&gcc PCIE_PHY_RESET>;
178 + reset-names = "axi", "ahb", "por", "pci", "phy";
180 + status = "disabled";
183 + pcie1: pci@1b700000 {
184 + compatible = "qcom,pcie-v0";
185 + reg = <0x1b700000 0x1000
188 + 0x31f00000 0x100000>;
189 + reg-names = "dbi", "elbi", "parf", "config";
190 + device_type = "pci";
191 + linux,pci-domain = <1>;
192 + bus-range = <0x00 0xff>;
194 + #address-cells = <3>;
197 + ranges = <0x81000000 0 0 0x31e00000 0 0x00100000 /* downstream I/O */
198 + 0x82000000 0 0x00000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
200 + interrupts = <GIC_SPI 57 IRQ_TYPE_NONE>;
201 + interrupt-names = "msi";
202 + #interrupt-cells = <1>;
203 + interrupt-map-mask = <0 0 0 0x7>;
204 + interrupt-map = <0 0 0 1 &intc 0 58 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
205 + <0 0 0 2 &intc 0 59 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
206 + <0 0 0 3 &intc 0 60 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
207 + <0 0 0 4 &intc 0 61 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
209 + clocks = <&gcc PCIE_1_A_CLK>,
210 + <&gcc PCIE_1_H_CLK>,
211 + <&gcc PCIE_1_PHY_CLK>;
212 + clock-names = "core", "iface", "phy";
214 + resets = <&gcc PCIE_1_ACLK_RESET>,
215 + <&gcc PCIE_1_HCLK_RESET>,
216 + <&gcc PCIE_1_POR_RESET>,
217 + <&gcc PCIE_1_PCI_RESET>,
218 + <&gcc PCIE_1_PHY_RESET>;
219 + reset-names = "axi", "ahb", "por", "pci", "phy";
221 + status = "disabled";
224 + pcie2: pci@1b900000 {
225 + compatible = "qcom,pcie-v0";
226 + reg = <0x1b900000 0x1000
229 + 0x35f00000 0x100000>;
230 + reg-names = "dbi", "elbi", "parf", "config";
231 + device_type = "pci";
232 + linux,pci-domain = <2>;
233 + bus-range = <0x00 0xff>;
235 + #address-cells = <3>;
238 + ranges = <0x81000000 0 0 0x35e00000 0 0x00100000 /* downstream I/O */
239 + 0x82000000 0 0x00000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
241 + interrupts = <GIC_SPI 71 IRQ_TYPE_NONE>;
242 + interrupt-names = "msi";
243 + #interrupt-cells = <1>;
244 + interrupt-map-mask = <0 0 0 0x7>;
245 + interrupt-map = <0 0 0 1 &intc 0 72 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
246 + <0 0 0 2 &intc 0 73 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
247 + <0 0 0 3 &intc 0 74 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
248 + <0 0 0 4 &intc 0 75 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
250 + clocks = <&gcc PCIE_2_A_CLK>,
251 + <&gcc PCIE_2_H_CLK>,
252 + <&gcc PCIE_2_PHY_CLK>;
253 + clock-names = "core", "iface", "phy";
255 + resets = <&gcc PCIE_2_ACLK_RESET>,
256 + <&gcc PCIE_2_HCLK_RESET>,
257 + <&gcc PCIE_2_POR_RESET>,
258 + <&gcc PCIE_2_PCI_RESET>,
259 + <&gcc PCIE_2_PHY_RESET>;
260 + reset-names = "axi", "ahb", "por", "pci", "phy";
262 + status = "disabled";
266 sfpb_mutex: sfpb-mutex {