xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-mdm9615.dtsi (revision bded0924f6a424eb9bf675759aa90741940e5628)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ OR MIT
2724ba675SRob Herring/*
3724ba675SRob Herring * Device Tree Source for Qualcomm MDM9615 SoC
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (C) 2016 BayLibre, SAS.
6724ba675SRob Herring * Author : Neil Armstrong <narmstrong@baylibre.com>
7724ba675SRob Herring */
8724ba675SRob Herring
9724ba675SRob Herring/dts-v1/;
10724ba675SRob Herring
11724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h>
12724ba675SRob Herring#include <dt-bindings/clock/qcom,gcc-mdm9615.h>
13d988aa8cSDmitry Baryshkov#include <dt-bindings/clock/qcom,lcc-msm8960.h>
14724ba675SRob Herring#include <dt-bindings/reset/qcom,gcc-mdm9615.h>
15724ba675SRob Herring#include <dt-bindings/mfd/qcom-rpm.h>
16724ba675SRob Herring#include <dt-bindings/soc/qcom,gsbi.h>
17724ba675SRob Herring
18724ba675SRob Herring/ {
19724ba675SRob Herring	#address-cells = <1>;
20724ba675SRob Herring	#size-cells = <1>;
21724ba675SRob Herring	model = "Qualcomm MDM9615";
22724ba675SRob Herring	compatible = "qcom,mdm9615";
23724ba675SRob Herring	interrupt-parent = <&intc>;
24724ba675SRob Herring
25724ba675SRob Herring	cpus {
26724ba675SRob Herring		#address-cells = <1>;
27724ba675SRob Herring		#size-cells = <0>;
28724ba675SRob Herring
29724ba675SRob Herring		cpu0: cpu@0 {
30724ba675SRob Herring			compatible = "arm,cortex-a5";
31724ba675SRob Herring			reg = <0>;
32724ba675SRob Herring			device_type = "cpu";
33724ba675SRob Herring			next-level-cache = <&L2>;
34724ba675SRob Herring		};
35724ba675SRob Herring	};
36724ba675SRob Herring
37724ba675SRob Herring	cpu-pmu {
38724ba675SRob Herring		compatible = "arm,cortex-a5-pmu";
39724ba675SRob Herring		interrupts = <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>;
40724ba675SRob Herring	};
41724ba675SRob Herring
42724ba675SRob Herring	clocks {
43174b934cSDmitry Baryshkov		cxo_board: cxo_board {
44724ba675SRob Herring			compatible = "fixed-clock";
45724ba675SRob Herring			#clock-cells = <0>;
46724ba675SRob Herring			clock-frequency = <19200000>;
47724ba675SRob Herring		};
48724ba675SRob Herring	};
49724ba675SRob Herring
50724ba675SRob Herring	vsdcc_fixed: vsdcc-regulator {
51724ba675SRob Herring		compatible = "regulator-fixed";
52724ba675SRob Herring		regulator-name = "SDCC Power";
53724ba675SRob Herring		regulator-min-microvolt = <2700000>;
54724ba675SRob Herring		regulator-max-microvolt = <2700000>;
55724ba675SRob Herring		regulator-always-on;
56724ba675SRob Herring	};
57724ba675SRob Herring
58724ba675SRob Herring	soc: soc {
59724ba675SRob Herring		#address-cells = <1>;
60724ba675SRob Herring		#size-cells = <1>;
61724ba675SRob Herring		ranges;
62724ba675SRob Herring		compatible = "simple-bus";
63724ba675SRob Herring
64724ba675SRob Herring		L2: cache-controller@2040000 {
65724ba675SRob Herring			compatible = "arm,pl310-cache";
66724ba675SRob Herring			reg = <0x02040000 0x1000>;
67724ba675SRob Herring			arm,data-latency = <2 2 0>;
68724ba675SRob Herring			cache-unified;
69724ba675SRob Herring			cache-level = <2>;
70724ba675SRob Herring		};
71724ba675SRob Herring
72724ba675SRob Herring		intc: interrupt-controller@2000000 {
73724ba675SRob Herring			compatible = "qcom,msm-qgic2";
74724ba675SRob Herring			interrupt-controller;
75724ba675SRob Herring			#interrupt-cells = <3>;
76724ba675SRob Herring			reg = <0x02000000 0x1000>,
77724ba675SRob Herring			      <0x02002000 0x1000>;
78724ba675SRob Herring		};
79724ba675SRob Herring
80724ba675SRob Herring		timer@200a000 {
81724ba675SRob Herring			compatible = "qcom,kpss-wdt-mdm9615", "qcom,kpss-timer",
82724ba675SRob Herring				     "qcom,msm-timer";
83724ba675SRob Herring			interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>,
84724ba675SRob Herring				     <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>,
85724ba675SRob Herring				     <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_EDGE_RISING)>;
86724ba675SRob Herring			reg = <0x0200a000 0x100>;
87724ba675SRob Herring			clock-frequency = <27000000>;
88724ba675SRob Herring			cpu-offset = <0x80000>;
89724ba675SRob Herring		};
90724ba675SRob Herring
91724ba675SRob Herring		msmgpio: pinctrl@800000 {
92724ba675SRob Herring			compatible = "qcom,mdm9615-pinctrl";
93724ba675SRob Herring			gpio-controller;
94724ba675SRob Herring			gpio-ranges = <&msmgpio 0 0 88>;
95724ba675SRob Herring			#gpio-cells = <2>;
96724ba675SRob Herring			interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
97724ba675SRob Herring			interrupt-controller;
98724ba675SRob Herring			#interrupt-cells = <2>;
99724ba675SRob Herring			reg = <0x800000 0x4000>;
100724ba675SRob Herring		};
101724ba675SRob Herring
102724ba675SRob Herring		gcc: clock-controller@900000 {
103724ba675SRob Herring			compatible = "qcom,gcc-mdm9615";
104724ba675SRob Herring			#clock-cells = <1>;
105724ba675SRob Herring			#power-domain-cells = <1>;
106724ba675SRob Herring			#reset-cells = <1>;
107724ba675SRob Herring			reg = <0x900000 0x4000>;
108d988aa8cSDmitry Baryshkov			clocks = <&cxo_board>,
109d988aa8cSDmitry Baryshkov				 <&lcc PLL4>;
110724ba675SRob Herring		};
111724ba675SRob Herring
112724ba675SRob Herring		lcc: clock-controller@28000000 {
113724ba675SRob Herring			compatible = "qcom,lcc-mdm9615";
114724ba675SRob Herring			reg = <0x28000000 0x1000>;
115724ba675SRob Herring			#clock-cells = <1>;
116724ba675SRob Herring			#reset-cells = <1>;
117174b934cSDmitry Baryshkov			clocks = <&cxo_board>,
118174b934cSDmitry Baryshkov				 <&gcc PLL4_VOTE>,
119174b934cSDmitry Baryshkov				 <0>,
120174b934cSDmitry Baryshkov				 <0>, <0>,
121174b934cSDmitry Baryshkov				 <0>, <0>,
122174b934cSDmitry Baryshkov				 <0>;
123174b934cSDmitry Baryshkov			clock-names = "cxo",
124174b934cSDmitry Baryshkov				      "pll4_vote",
125174b934cSDmitry Baryshkov				      "mi2s_codec_clk",
126174b934cSDmitry Baryshkov				      "codec_i2s_mic_codec_clk",
127174b934cSDmitry Baryshkov				      "spare_i2s_mic_codec_clk",
128174b934cSDmitry Baryshkov				      "codec_i2s_spkr_codec_clk",
129174b934cSDmitry Baryshkov				      "spare_i2s_spkr_codec_clk",
130174b934cSDmitry Baryshkov				      "pcm_codec_clk";
131724ba675SRob Herring		};
132724ba675SRob Herring
133724ba675SRob Herring		l2cc: clock-controller@2011000 {
134724ba675SRob Herring			compatible = "qcom,kpss-gcc-mdm9615", "qcom,kpss-gcc", "syscon";
135724ba675SRob Herring			reg = <0x02011000 0x1000>;
136724ba675SRob Herring		};
137724ba675SRob Herring
138724ba675SRob Herring		rng@1a500000 {
139724ba675SRob Herring			compatible = "qcom,prng";
140724ba675SRob Herring			reg = <0x1a500000 0x200>;
141724ba675SRob Herring			clocks = <&gcc PRNG_CLK>;
142724ba675SRob Herring			clock-names = "core";
143724ba675SRob Herring			assigned-clocks = <&gcc PRNG_CLK>;
144724ba675SRob Herring			assigned-clock-rates = <32000000>;
145724ba675SRob Herring		};
146724ba675SRob Herring
147724ba675SRob Herring		gsbi2: gsbi@16100000 {
148724ba675SRob Herring			compatible = "qcom,gsbi-v1.0.0";
149724ba675SRob Herring			cell-index = <2>;
150724ba675SRob Herring			reg = <0x16100000 0x100>;
151724ba675SRob Herring			clocks = <&gcc GSBI2_H_CLK>;
152724ba675SRob Herring			clock-names = "iface";
153724ba675SRob Herring			status = "disabled";
154724ba675SRob Herring			#address-cells = <1>;
155724ba675SRob Herring			#size-cells = <1>;
156724ba675SRob Herring			ranges;
157724ba675SRob Herring
158724ba675SRob Herring			gsbi2_i2c: i2c@16180000 {
159724ba675SRob Herring				compatible = "qcom,i2c-qup-v1.1.1";
160724ba675SRob Herring				#address-cells = <1>;
161724ba675SRob Herring				#size-cells = <0>;
162724ba675SRob Herring				reg = <0x16180000 0x1000>;
163724ba675SRob Herring				interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
164724ba675SRob Herring
165724ba675SRob Herring				clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
166724ba675SRob Herring				clock-names = "core", "iface";
167724ba675SRob Herring				status = "disabled";
168724ba675SRob Herring			};
169724ba675SRob Herring		};
170724ba675SRob Herring
171724ba675SRob Herring		gsbi3: gsbi@16200000 {
172724ba675SRob Herring			compatible = "qcom,gsbi-v1.0.0";
173724ba675SRob Herring			cell-index = <3>;
174724ba675SRob Herring			reg = <0x16200000 0x100>;
175724ba675SRob Herring			clocks = <&gcc GSBI3_H_CLK>;
176724ba675SRob Herring			clock-names = "iface";
177724ba675SRob Herring			status = "disabled";
178724ba675SRob Herring			#address-cells = <1>;
179724ba675SRob Herring			#size-cells = <1>;
180724ba675SRob Herring			ranges;
181724ba675SRob Herring
182724ba675SRob Herring			gsbi3_spi: spi@16280000 {
183724ba675SRob Herring				compatible = "qcom,spi-qup-v1.1.1";
184724ba675SRob Herring				#address-cells = <1>;
185724ba675SRob Herring				#size-cells = <0>;
186724ba675SRob Herring				reg = <0x16280000 0x1000>;
187724ba675SRob Herring				interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
188724ba675SRob Herring
189724ba675SRob Herring				clocks = <&gcc GSBI3_QUP_CLK>, <&gcc GSBI3_H_CLK>;
190724ba675SRob Herring				clock-names = "core", "iface";
191724ba675SRob Herring				status = "disabled";
192724ba675SRob Herring			};
193724ba675SRob Herring		};
194724ba675SRob Herring
195724ba675SRob Herring		gsbi4: gsbi@16300000 {
196724ba675SRob Herring			compatible = "qcom,gsbi-v1.0.0";
197724ba675SRob Herring			cell-index = <4>;
198724ba675SRob Herring			reg = <0x16300000 0x100>;
199724ba675SRob Herring			clocks = <&gcc GSBI4_H_CLK>;
200724ba675SRob Herring			clock-names = "iface";
201724ba675SRob Herring			status = "disabled";
202724ba675SRob Herring			#address-cells = <1>;
203724ba675SRob Herring			#size-cells = <1>;
204724ba675SRob Herring			ranges;
205724ba675SRob Herring
206724ba675SRob Herring			syscon-tcsr = <&tcsr>;
207724ba675SRob Herring
208724ba675SRob Herring			gsbi4_serial: serial@16340000 {
209724ba675SRob Herring				compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
210724ba675SRob Herring				reg = <0x16340000 0x1000>,
211724ba675SRob Herring				      <0x16300000 0x1000>;
212724ba675SRob Herring				interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
213724ba675SRob Herring				clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
214724ba675SRob Herring				clock-names = "core", "iface";
215724ba675SRob Herring				status = "disabled";
216724ba675SRob Herring			};
217724ba675SRob Herring		};
218724ba675SRob Herring
219724ba675SRob Herring		gsbi5: gsbi@16400000 {
220724ba675SRob Herring			compatible = "qcom,gsbi-v1.0.0";
221724ba675SRob Herring			cell-index = <5>;
222724ba675SRob Herring			reg = <0x16400000 0x100>;
223724ba675SRob Herring			clocks = <&gcc GSBI5_H_CLK>;
224724ba675SRob Herring			clock-names = "iface";
225724ba675SRob Herring			status = "disabled";
226724ba675SRob Herring			#address-cells = <1>;
227724ba675SRob Herring			#size-cells = <1>;
228724ba675SRob Herring			ranges;
229724ba675SRob Herring
230724ba675SRob Herring			syscon-tcsr = <&tcsr>;
231724ba675SRob Herring
232724ba675SRob Herring			gsbi5_i2c: i2c@16480000 {
233724ba675SRob Herring				compatible = "qcom,i2c-qup-v1.1.1";
234724ba675SRob Herring				#address-cells = <1>;
235724ba675SRob Herring				#size-cells = <0>;
236724ba675SRob Herring				reg = <0x16480000 0x1000>;
237724ba675SRob Herring				interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
238724ba675SRob Herring
239724ba675SRob Herring				/* QUP clock is not initialized, set rate */
240724ba675SRob Herring				assigned-clocks = <&gcc GSBI5_QUP_CLK>;
241724ba675SRob Herring				assigned-clock-rates = <24000000>;
242724ba675SRob Herring
243724ba675SRob Herring				clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
244724ba675SRob Herring				clock-names = "core", "iface";
245724ba675SRob Herring				status = "disabled";
246724ba675SRob Herring			};
247724ba675SRob Herring
248724ba675SRob Herring			gsbi5_serial: serial@16440000 {
249724ba675SRob Herring				compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
250724ba675SRob Herring				reg = <0x16440000 0x1000>,
251724ba675SRob Herring				      <0x16400000 0x1000>;
252724ba675SRob Herring				interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
253724ba675SRob Herring				clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
254724ba675SRob Herring				clock-names = "core", "iface";
255724ba675SRob Herring				status = "disabled";
256724ba675SRob Herring			};
257724ba675SRob Herring		};
258724ba675SRob Herring
259*bded0924SDmitry Baryshkov		ssbi: ssbi@500000 {
260724ba675SRob Herring			compatible = "qcom,ssbi";
261724ba675SRob Herring			reg = <0x500000 0x1000>;
262724ba675SRob Herring			qcom,controller-type = "pmic-arbiter";
263724ba675SRob Herring		};
264724ba675SRob Herring
265724ba675SRob Herring		sdcc1bam: dma-controller@12182000 {
266724ba675SRob Herring			compatible = "qcom,bam-v1.3.0";
267724ba675SRob Herring			reg = <0x12182000 0x8000>;
268724ba675SRob Herring			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
269724ba675SRob Herring			clocks = <&gcc SDC1_H_CLK>;
270724ba675SRob Herring			clock-names = "bam_clk";
271724ba675SRob Herring			#dma-cells = <1>;
272724ba675SRob Herring			qcom,ee = <0>;
273724ba675SRob Herring		};
274724ba675SRob Herring
275724ba675SRob Herring		sdcc2bam: dma-controller@12142000 {
276724ba675SRob Herring			compatible = "qcom,bam-v1.3.0";
277724ba675SRob Herring			reg = <0x12142000 0x8000>;
278724ba675SRob Herring			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
279724ba675SRob Herring			clocks = <&gcc SDC2_H_CLK>;
280724ba675SRob Herring			clock-names = "bam_clk";
281724ba675SRob Herring			#dma-cells = <1>;
282724ba675SRob Herring			qcom,ee = <0>;
283724ba675SRob Herring		};
284724ba675SRob Herring
285724ba675SRob Herring		sdcc1: mmc@12180000 {
286724ba675SRob Herring			status = "disabled";
287724ba675SRob Herring			compatible = "arm,pl18x", "arm,primecell";
288724ba675SRob Herring			arm,primecell-periphid = <0x00051180>;
289724ba675SRob Herring			reg = <0x12180000 0x2000>;
290724ba675SRob Herring			interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
291724ba675SRob Herring			clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
292724ba675SRob Herring			clock-names = "mclk", "apb_pclk";
293724ba675SRob Herring			bus-width = <8>;
294724ba675SRob Herring			max-frequency = <48000000>;
295724ba675SRob Herring			cap-sd-highspeed;
296724ba675SRob Herring			cap-mmc-highspeed;
297724ba675SRob Herring			vmmc-supply = <&vsdcc_fixed>;
298724ba675SRob Herring			dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
299724ba675SRob Herring			dma-names = "tx", "rx";
300724ba675SRob Herring			assigned-clocks = <&gcc SDC1_CLK>;
301724ba675SRob Herring			assigned-clock-rates = <400000>;
302724ba675SRob Herring		};
303724ba675SRob Herring
304724ba675SRob Herring		sdcc2: mmc@12140000 {
305724ba675SRob Herring			compatible = "arm,pl18x", "arm,primecell";
306724ba675SRob Herring			arm,primecell-periphid = <0x00051180>;
307724ba675SRob Herring			status = "disabled";
308724ba675SRob Herring			reg = <0x12140000 0x2000>;
309724ba675SRob Herring			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
310724ba675SRob Herring			clocks = <&gcc SDC2_CLK>, <&gcc SDC2_H_CLK>;
311724ba675SRob Herring			clock-names = "mclk", "apb_pclk";
312724ba675SRob Herring			bus-width = <4>;
313724ba675SRob Herring			cap-sd-highspeed;
314724ba675SRob Herring			cap-mmc-highspeed;
315724ba675SRob Herring			max-frequency = <48000000>;
316724ba675SRob Herring			no-1-8-v;
317724ba675SRob Herring			vmmc-supply = <&vsdcc_fixed>;
318724ba675SRob Herring			dmas = <&sdcc2bam 2>, <&sdcc2bam 1>;
319724ba675SRob Herring			dma-names = "tx", "rx";
320724ba675SRob Herring			assigned-clocks = <&gcc SDC2_CLK>;
321724ba675SRob Herring			assigned-clock-rates = <400000>;
322724ba675SRob Herring		};
323724ba675SRob Herring
324724ba675SRob Herring		tcsr: syscon@1a400000 {
325724ba675SRob Herring			compatible = "qcom,tcsr-mdm9615", "syscon";
326724ba675SRob Herring			reg = <0x1a400000 0x100>;
327724ba675SRob Herring		};
328724ba675SRob Herring
329724ba675SRob Herring		rpm: rpm@108000 {
330724ba675SRob Herring			compatible = "qcom,rpm-mdm9615";
331724ba675SRob Herring			reg = <0x108000 0x1000>;
332724ba675SRob Herring
333724ba675SRob Herring			qcom,ipc = <&l2cc 0x8 2>;
334724ba675SRob Herring
335724ba675SRob Herring			interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
336724ba675SRob Herring				     <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
337724ba675SRob Herring				     <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
338724ba675SRob Herring			interrupt-names = "ack", "err", "wakeup";
339724ba675SRob Herring		};
340724ba675SRob Herring	};
341724ba675SRob Herring};
342