GNU Linux-libre 4.9.333-gnu1
[releases.git] / arch / arm / boot / dts / qcom-msm8960.dtsi
1 /dts-v1/;
2
3 /include/ "skeleton.dtsi"
4
5 #include <dt-bindings/interrupt-controller/arm-gic.h>
6 #include <dt-bindings/clock/qcom,gcc-msm8960.h>
7 #include <dt-bindings/mfd/qcom-rpm.h>
8 #include <dt-bindings/soc/qcom,gsbi.h>
9
10 / {
11         model = "Qualcomm MSM8960";
12         compatible = "qcom,msm8960";
13         interrupt-parent = <&intc>;
14
15         cpus {
16                 #address-cells = <1>;
17                 #size-cells = <0>;
18                 interrupts = <1 14 0x304>;
19
20                 cpu@0 {
21                         compatible = "qcom,krait";
22                         enable-method = "qcom,kpss-acc-v1";
23                         device_type = "cpu";
24                         reg = <0>;
25                         next-level-cache = <&L2>;
26                         qcom,acc = <&acc0>;
27                         qcom,saw = <&saw0>;
28                 };
29
30                 cpu@1 {
31                         compatible = "qcom,krait";
32                         enable-method = "qcom,kpss-acc-v1";
33                         device_type = "cpu";
34                         reg = <1>;
35                         next-level-cache = <&L2>;
36                         qcom,acc = <&acc1>;
37                         qcom,saw = <&saw1>;
38                 };
39
40                 L2: l2-cache {
41                         compatible = "cache";
42                         cache-level = <2>;
43                 };
44         };
45
46         cpu-pmu {
47                 compatible = "qcom,krait-pmu";
48                 interrupts = <1 10 0x304>;
49                 qcom,no-pc-write;
50         };
51
52         clocks {
53                 cxo_board {
54                         compatible = "fixed-clock";
55                         #clock-cells = <0>;
56                         clock-frequency = <19200000>;
57                         clock-output-names = "cxo_board";
58                 };
59
60                 pxo_board {
61                         compatible = "fixed-clock";
62                         #clock-cells = <0>;
63                         clock-frequency = <27000000>;
64                         clock-output-names = "pxo_board";
65                 };
66
67                 sleep_clk {
68                         compatible = "fixed-clock";
69                         #clock-cells = <0>;
70                         clock-frequency = <32768>;
71                         clock-output-names = "sleep_clk";
72                 };
73         };
74
75         soc: soc {
76                 #address-cells = <1>;
77                 #size-cells = <1>;
78                 ranges;
79                 compatible = "simple-bus";
80
81                 intc: interrupt-controller@2000000 {
82                         compatible = "qcom,msm-qgic2";
83                         interrupt-controller;
84                         #interrupt-cells = <3>;
85                         reg = <0x02000000 0x1000>,
86                               <0x02002000 0x1000>;
87                 };
88
89                 timer@200a000 {
90                         compatible = "qcom,kpss-timer",
91                                      "qcom,kpss-wdt-msm8960", "qcom,msm-timer";
92                         interrupts = <1 1 0x301>,
93                                      <1 2 0x301>,
94                                      <1 3 0x301>;
95                         reg = <0x0200a000 0x100>;
96                         clock-frequency = <27000000>,
97                                           <32768>;
98                         cpu-offset = <0x80000>;
99                 };
100
101                 msmgpio: pinctrl@800000 {
102                         compatible = "qcom,msm8960-pinctrl";
103                         gpio-controller;
104                         #gpio-cells = <2>;
105                         interrupts = <0 16 0x4>;
106                         interrupt-controller;
107                         #interrupt-cells = <2>;
108                         reg = <0x800000 0x4000>;
109                 };
110
111                 gcc: clock-controller@900000 {
112                         compatible = "qcom,gcc-msm8960";
113                         #clock-cells = <1>;
114                         #reset-cells = <1>;
115                         reg = <0x900000 0x4000>;
116                 };
117
118                 lcc: clock-controller@28000000 {
119                         compatible = "qcom,lcc-msm8960";
120                         reg = <0x28000000 0x1000>;
121                         #clock-cells = <1>;
122                         #reset-cells = <1>;
123                 };
124
125                 clock-controller@4000000 {
126                         compatible = "qcom,mmcc-msm8960";
127                         reg = <0x4000000 0x1000>;
128                         #clock-cells = <1>;
129                         #reset-cells = <1>;
130                 };
131
132                 l2cc: clock-controller@2011000 {
133                         compatible      = "syscon";
134                         reg             = <0x2011000 0x1000>;
135                 };
136
137                 rpm@108000 {
138                         compatible      = "qcom,rpm-msm8960";
139                         reg             = <0x108000 0x1000>;
140                         qcom,ipc        = <&l2cc 0x8 2>;
141
142                         interrupts      = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
143                                           <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
144                                           <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
145                         interrupt-names = "ack", "err", "wakeup";
146
147                         regulators {
148                                 compatible = "qcom,rpm-pm8921-regulators";
149                         };
150                 };
151
152                 acc0: clock-controller@2088000 {
153                         compatible = "qcom,kpss-acc-v1";
154                         reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
155                 };
156
157                 acc1: clock-controller@2098000 {
158                         compatible = "qcom,kpss-acc-v1";
159                         reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
160                 };
161
162                 saw0: regulator@2089000 {
163                         compatible = "qcom,saw2";
164                         reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
165                         regulator;
166                 };
167
168                 saw1: regulator@2099000 {
169                         compatible = "qcom,saw2";
170                         reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
171                         regulator;
172                 };
173
174                 gsbi5: gsbi@16400000 {
175                         compatible = "qcom,gsbi-v1.0.0";
176                         cell-index = <5>;
177                         reg = <0x16400000 0x100>;
178                         clocks = <&gcc GSBI5_H_CLK>;
179                         clock-names = "iface";
180                         #address-cells = <1>;
181                         #size-cells = <1>;
182                         ranges;
183
184                         syscon-tcsr = <&tcsr>;
185
186                         gsbi5_serial: serial@16440000 {
187                                 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
188                                 reg = <0x16440000 0x1000>,
189                                       <0x16400000 0x1000>;
190                                 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
191                                 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
192                                 clock-names = "core", "iface";
193                                 status = "disabled";
194                         };
195                 };
196
197                 qcom,ssbi@500000 {
198                         compatible = "qcom,ssbi";
199                         reg = <0x500000 0x1000>;
200                         qcom,controller-type = "pmic-arbiter";
201
202                         pmicintc: pmic@0 {
203                                 compatible = "qcom,pm8921";
204                                 interrupt-parent = <&msmgpio>;
205                                 interrupts = <104 8>;
206                                 #interrupt-cells = <2>;
207                                 interrupt-controller;
208                                 #address-cells = <1>;
209                                 #size-cells = <0>;
210
211                                 pwrkey@1c {
212                                         compatible = "qcom,pm8921-pwrkey";
213                                         reg = <0x1c>;
214                                         interrupt-parent = <&pmicintc>;
215                                         interrupts = <50 1>, <51 1>;
216                                         debounce = <15625>;
217                                         pull-up;
218                                 };
219
220                                 keypad@148 {
221                                         compatible = "qcom,pm8921-keypad";
222                                         reg = <0x148>;
223                                         interrupt-parent = <&pmicintc>;
224                                         interrupts = <74 1>, <75 1>;
225                                         debounce = <15>;
226                                         scan-delay = <32>;
227                                         row-hold = <91500>;
228                                 };
229
230                                 rtc@11d {
231                                         compatible = "qcom,pm8921-rtc";
232                                         interrupt-parent = <&pmicintc>;
233                                         interrupts = <39 1>;
234                                         reg = <0x11d>;
235                                         allow-set-time;
236                                 };
237                         };
238                 };
239
240                 rng@1a500000 {
241                         compatible = "qcom,prng";
242                         reg = <0x1a500000 0x200>;
243                         clocks = <&gcc PRNG_CLK>;
244                         clock-names = "core";
245                 };
246
247                 /* Temporary fixed regulator */
248                 vsdcc_fixed: vsdcc-regulator {
249                         compatible = "regulator-fixed";
250                         regulator-name = "SDCC Power";
251                         regulator-min-microvolt = <2700000>;
252                         regulator-max-microvolt = <2700000>;
253                         regulator-always-on;
254                 };
255
256                 amba {
257                         compatible = "simple-bus";
258                         #address-cells = <1>;
259                         #size-cells = <1>;
260                         ranges;
261                         sdcc1: sdcc@12400000 {
262                                 status          = "disabled";
263                                 compatible      = "arm,pl18x", "arm,primecell";
264                                 arm,primecell-periphid = <0x00051180>;
265                                 reg             = <0x12400000 0x8000>;
266                                 interrupts      = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
267                                 interrupt-names = "cmd_irq";
268                                 clocks          = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
269                                 clock-names     = "mclk", "apb_pclk";
270                                 bus-width       = <8>;
271                                 max-frequency   = <96000000>;
272                                 non-removable;
273                                 cap-sd-highspeed;
274                                 cap-mmc-highspeed;
275                                 vmmc-supply = <&vsdcc_fixed>;
276                         };
277
278                         sdcc3: sdcc@12180000 {
279                                 compatible      = "arm,pl18x", "arm,primecell";
280                                 arm,primecell-periphid = <0x00051180>;
281                                 status          = "disabled";
282                                 reg             = <0x12180000 0x8000>;
283                                 interrupts      = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
284                                 interrupt-names = "cmd_irq";
285                                 clocks          = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
286                                 clock-names     = "mclk", "apb_pclk";
287                                 bus-width       = <4>;
288                                 cap-sd-highspeed;
289                                 cap-mmc-highspeed;
290                                 max-frequency   = <192000000>;
291                                 no-1-8-v;
292                                 vmmc-supply = <&vsdcc_fixed>;
293                         };
294                 };
295
296                 tcsr: syscon@1a400000 {
297                         compatible = "qcom,tcsr-msm8960", "syscon";
298                         reg = <0x1a400000 0x100>;
299                 };
300
301                 gsbi@16000000 {
302                         compatible = "qcom,gsbi-v1.0.0";
303                         cell-index = <1>;
304                         reg = <0x16000000 0x100>;
305                         clocks = <&gcc GSBI1_H_CLK>;
306                         clock-names = "iface";
307                         #address-cells = <1>;
308                         #size-cells = <1>;
309                         ranges;
310
311                         spi@16080000 {
312                                 compatible = "qcom,spi-qup-v1.1.1";
313                                 #address-cells = <1>;
314                                 #size-cells = <0>;
315                                 reg = <0x16080000 0x1000>;
316                                 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
317                                 spi-max-frequency = <24000000>;
318                                 cs-gpios = <&msmgpio 8 0>;
319
320                                 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
321                                 clock-names = "core", "iface";
322                                 status = "disabled";
323                         };
324                 };
325         };
326 };