1 From 1c6e51ffb10f5bf93a3018c7c1e04d7ed93f944e Mon Sep 17 00:00:00 2001
2 From: Kumar Gala <galak@codeaurora.org>
3 Date: Fri, 7 Mar 2014 10:56:59 -0600
4 Subject: [PATCH 130/182] ARM: qcom: Add initial IPQ8064 SoC and AP148 device
7 Add basic IPQ8064 SoC include device tree and support for basic booting on
8 the AP148 Reference board.
10 Signed-off-by: Kumar Gala <galak@codeaurora.org>
12 arch/arm/boot/dts/Makefile | 1 +
13 arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 25 +++++
14 arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi | 1 +
15 arch/arm/boot/dts/qcom-ipq8064.dtsi | 176 ++++++++++++++++++++++++++++++
16 arch/arm/mach-qcom/board.c | 2 +
17 5 files changed, 205 insertions(+)
18 create mode 100644 arch/arm/boot/dts/qcom-ipq8064-ap148.dts
19 create mode 100644 arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi
20 create mode 100644 arch/arm/boot/dts/qcom-ipq8064.dtsi
22 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
23 index f2aeb95..f22c51d 100644
24 --- a/arch/arm/boot/dts/Makefile
25 +++ b/arch/arm/boot/dts/Makefile
26 @@ -235,6 +235,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
27 qcom-apq8064-ifc6410.dtb \
28 qcom-apq8074-dragonboard.dtb \
29 qcom-apq8084-mtp.dtb \
30 + qcom-ipq8064-ap148.dtb \
31 qcom-msm8660-surf.dtb \
33 dtb-$(CONFIG_ARCH_U8500) += ste-snowball.dtb \
34 diff --git a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
36 index 0000000..100b6eb
38 +++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
40 +#include "qcom-ipq8064-v1.0.dtsi"
43 + model = "Qualcomm IPQ8064/AP148";
44 + compatible = "qcom,ipq8064-ap148", "qcom,ipq8064";
47 + #address-cells = <1>;
50 + reg = <0x41200000 0x300000>;
57 + qcom,mode = <GSBI_PROT_I2C_UART>;
65 diff --git a/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi b/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi
67 index 0000000..7093b07
69 +++ b/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi
71 +#include "qcom-ipq8064.dtsi"
72 diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi
74 index 0000000..952afb7
76 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
80 +#include "skeleton.dtsi"
81 +#include <dt-bindings/clock/qcom,gcc-ipq806x.h>
82 +#include <dt-bindings/soc/qcom,gsbi.h>
85 + model = "Qualcomm IPQ8064";
86 + compatible = "qcom,ipq8064";
87 + interrupt-parent = <&intc>;
90 + #address-cells = <1>;
94 + compatible = "qcom,krait";
95 + enable-method = "qcom,kpss-acc-v1";
96 + device_type = "cpu";
98 + next-level-cache = <&L2>;
100 + qcom,saw = <&saw0>;
104 + compatible = "qcom,krait";
105 + enable-method = "qcom,kpss-acc-v1";
106 + device_type = "cpu";
108 + next-level-cache = <&L2>;
109 + qcom,acc = <&acc1>;
110 + qcom,saw = <&saw1>;
114 + compatible = "cache";
120 + compatible = "qcom,krait-pmu";
121 + interrupts = <1 10 0x304>;
125 + #address-cells = <1>;
130 + reg = <0x40000000 0x1000000>;
135 + reg = <0x41000000 0x200000>;
141 + #address-cells = <1>;
144 + compatible = "simple-bus";
146 + qcom_pinmux: pinmux@800000 {
147 + compatible = "qcom,ipq8064-pinctrl";
148 + reg = <0x800000 0x4000>;
152 + interrupt-controller;
153 + #interrupt-cells = <2>;
154 + interrupts = <0 32 0x4>;
157 + intc: interrupt-controller@2000000 {
158 + compatible = "qcom,msm-qgic2";
159 + interrupt-controller;
160 + #interrupt-cells = <3>;
161 + reg = <0x02000000 0x1000>,
162 + <0x02002000 0x1000>;
166 + compatible = "qcom,kpss-timer", "qcom,msm-timer";
167 + interrupts = <1 1 0x301>,
170 + reg = <0x0200a000 0x100>;
171 + clock-frequency = <25000000>,
173 + cpu-offset = <0x80000>;
176 + acc0: clock-controller@2088000 {
177 + compatible = "qcom,kpss-acc-v1";
178 + reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
181 + acc1: clock-controller@2098000 {
182 + compatible = "qcom,kpss-acc-v1";
183 + reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
186 + saw0: regulator@2089000 {
187 + compatible = "qcom,saw2";
188 + reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
192 + saw1: regulator@2099000 {
193 + compatible = "qcom,saw2";
194 + reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
198 + gsbi2: gsbi@12480000 {
199 + compatible = "qcom,gsbi-v1.0.0";
200 + reg = <0x12480000 0x100>;
201 + clocks = <&gcc GSBI2_H_CLK>;
202 + clock-names = "iface";
203 + #address-cells = <1>;
206 + status = "disabled";
209 + compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
210 + reg = <0x12490000 0x1000>,
211 + <0x12480000 0x1000>;
212 + interrupts = <0 195 0x0>;
213 + clocks = <&gcc GSBI2_UART_CLK>, <&gcc GSBI2_H_CLK>;
214 + clock-names = "core", "iface";
215 + status = "disabled";
219 + gsbi4: gsbi@16300000 {
220 + compatible = "qcom,gsbi-v1.0.0";
221 + reg = <0x16300000 0x100>;
222 + clocks = <&gcc GSBI4_H_CLK>;
223 + clock-names = "iface";
224 + #address-cells = <1>;
227 + status = "disabled";
230 + compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
231 + reg = <0x16340000 0x1000>,
232 + <0x16300000 0x1000>;
233 + interrupts = <0 152 0x0>;
234 + clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
235 + clock-names = "core", "iface";
236 + status = "disabled";
241 + compatible = "qcom,ssbi";
242 + reg = <0x00500000 0x1000>;
243 + qcom,controller-type = "pmic-arbiter";
246 + gcc: clock-controller@900000 {
247 + compatible = "qcom,gcc-ipq8064";
248 + reg = <0x00900000 0x4000>;
249 + #clock-cells = <1>;
250 + #reset-cells = <1>;
254 diff --git a/arch/arm/mach-qcom/board.c b/arch/arm/mach-qcom/board.c
255 index c437a99..6d8bbf7 100644
256 --- a/arch/arm/mach-qcom/board.c
257 +++ b/arch/arm/mach-qcom/board.c
258 @@ -18,6 +18,8 @@ static const char * const qcom_dt_match[] __initconst = {
260 "qcom,apq8074-dragonboard",