.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
---|
2 | 2 | /dts-v1/; |
---|
3 | 3 | |
---|
4 | | -#include "skeleton.dtsi" |
---|
5 | | - |
---|
| 4 | +#include <dt-bindings/interrupt-controller/arm-gic.h> |
---|
6 | 5 | #include <dt-bindings/clock/qcom,gcc-apq8084.h> |
---|
7 | 6 | #include <dt-bindings/gpio/gpio.h> |
---|
8 | 7 | |
---|
9 | 8 | / { |
---|
| 9 | + #address-cells = <1>; |
---|
| 10 | + #size-cells = <1>; |
---|
10 | 11 | model = "Qualcomm APQ 8084"; |
---|
11 | 12 | compatible = "qcom,apq8084"; |
---|
12 | 13 | interrupt-parent = <&intc>; |
---|
.. | .. |
---|
85 | 86 | min-residency-us = <2000>; |
---|
86 | 87 | }; |
---|
87 | 88 | }; |
---|
| 89 | + }; |
---|
| 90 | + |
---|
| 91 | + memory { |
---|
| 92 | + device_type = "memory"; |
---|
| 93 | + reg = <0x0 0x0>; |
---|
88 | 94 | }; |
---|
89 | 95 | |
---|
90 | 96 | firmware { |
---|
.. | .. |
---|
179 | 185 | |
---|
180 | 186 | cpu-pmu { |
---|
181 | 187 | compatible = "qcom,krait-pmu"; |
---|
182 | | - interrupts = <1 7 0xf04>; |
---|
| 188 | + interrupts = <GIC_PPI 7 0xf04>; |
---|
183 | 189 | }; |
---|
184 | 190 | |
---|
185 | 191 | clocks { |
---|
.. | .. |
---|
198 | 204 | |
---|
199 | 205 | timer { |
---|
200 | 206 | compatible = "arm,armv7-timer"; |
---|
201 | | - interrupts = <1 2 0xf08>, |
---|
202 | | - <1 3 0xf08>, |
---|
203 | | - <1 4 0xf08>, |
---|
204 | | - <1 1 0xf08>; |
---|
| 207 | + interrupts = <GIC_PPI 2 0xf08>, |
---|
| 208 | + <GIC_PPI 3 0xf08>, |
---|
| 209 | + <GIC_PPI 4 0xf08>, |
---|
| 210 | + <GIC_PPI 1 0xf08>; |
---|
205 | 211 | clock-frequency = <19200000>; |
---|
206 | 212 | }; |
---|
207 | 213 | |
---|
.. | .. |
---|
248 | 254 | |
---|
249 | 255 | tsens: thermal-sensor@fc4a8000 { |
---|
250 | 256 | compatible = "qcom,msm8974-tsens"; |
---|
251 | | - reg = <0xfc4a8000 0x2000>; |
---|
| 257 | + reg = <0xfc4a9000 0x1000>, /* TM */ |
---|
| 258 | + <0xfc4a8000 0x1000>; /* SROT */ |
---|
252 | 259 | nvmem-cells = <&tsens_calib>, <&tsens_backup>; |
---|
253 | 260 | nvmem-cell-names = "calib", "calib_backup"; |
---|
| 261 | + #qcom,sensors = <11>; |
---|
254 | 262 | #thermal-sensor-cells = <1>; |
---|
255 | 263 | }; |
---|
256 | | - |
---|
257 | 264 | timer@f9020000 { |
---|
258 | 265 | #address-cells = <1>; |
---|
259 | 266 | #size-cells = <1>; |
---|
.. | .. |
---|
264 | 271 | |
---|
265 | 272 | frame@f9021000 { |
---|
266 | 273 | frame-number = <0>; |
---|
267 | | - interrupts = <0 8 0x4>, |
---|
268 | | - <0 7 0x4>; |
---|
| 274 | + interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>, |
---|
| 275 | + <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
---|
269 | 276 | reg = <0xf9021000 0x1000>, |
---|
270 | 277 | <0xf9022000 0x1000>; |
---|
271 | 278 | }; |
---|
272 | 279 | |
---|
273 | 280 | frame@f9023000 { |
---|
274 | 281 | frame-number = <1>; |
---|
275 | | - interrupts = <0 9 0x4>; |
---|
| 282 | + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
---|
276 | 283 | reg = <0xf9023000 0x1000>; |
---|
277 | 284 | status = "disabled"; |
---|
278 | 285 | }; |
---|
279 | 286 | |
---|
280 | 287 | frame@f9024000 { |
---|
281 | 288 | frame-number = <2>; |
---|
282 | | - interrupts = <0 10 0x4>; |
---|
| 289 | + interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; |
---|
283 | 290 | reg = <0xf9024000 0x1000>; |
---|
284 | 291 | status = "disabled"; |
---|
285 | 292 | }; |
---|
286 | 293 | |
---|
287 | 294 | frame@f9025000 { |
---|
288 | 295 | frame-number = <3>; |
---|
289 | | - interrupts = <0 11 0x4>; |
---|
| 296 | + interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; |
---|
290 | 297 | reg = <0xf9025000 0x1000>; |
---|
291 | 298 | status = "disabled"; |
---|
292 | 299 | }; |
---|
293 | 300 | |
---|
294 | 301 | frame@f9026000 { |
---|
295 | 302 | frame-number = <4>; |
---|
296 | | - interrupts = <0 12 0x4>; |
---|
| 303 | + interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
---|
297 | 304 | reg = <0xf9026000 0x1000>; |
---|
298 | 305 | status = "disabled"; |
---|
299 | 306 | }; |
---|
300 | 307 | |
---|
301 | 308 | frame@f9027000 { |
---|
302 | 309 | frame-number = <5>; |
---|
303 | | - interrupts = <0 13 0x4>; |
---|
| 310 | + interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
---|
304 | 311 | reg = <0xf9027000 0x1000>; |
---|
305 | 312 | status = "disabled"; |
---|
306 | 313 | }; |
---|
307 | 314 | |
---|
308 | 315 | frame@f9028000 { |
---|
309 | 316 | frame-number = <6>; |
---|
310 | | - interrupts = <0 14 0x4>; |
---|
| 317 | + interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; |
---|
311 | 318 | reg = <0xf9028000 0x1000>; |
---|
312 | 319 | status = "disabled"; |
---|
313 | 320 | }; |
---|
.. | .. |
---|
396 | 403 | compatible = "qcom,apq8084-pinctrl"; |
---|
397 | 404 | reg = <0xfd510000 0x4000>; |
---|
398 | 405 | gpio-controller; |
---|
| 406 | + gpio-ranges = <&tlmm 0 0 147>; |
---|
399 | 407 | #gpio-cells = <2>; |
---|
400 | 408 | interrupt-controller; |
---|
401 | 409 | #interrupt-cells = <2>; |
---|
402 | | - interrupts = <0 208 0>; |
---|
| 410 | + interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>; |
---|
403 | 411 | }; |
---|
404 | 412 | |
---|
405 | 413 | blsp2_uart2: serial@f995e000 { |
---|
406 | 414 | compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; |
---|
407 | 415 | reg = <0xf995e000 0x1000>; |
---|
408 | | - interrupts = <0 114 0x0>; |
---|
| 416 | + interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; |
---|
409 | 417 | clocks = <&gcc GCC_BLSP2_UART2_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>; |
---|
410 | 418 | clock-names = "core", "iface"; |
---|
411 | 419 | status = "disabled"; |
---|
412 | 420 | }; |
---|
413 | 421 | |
---|
414 | 422 | sdhci@f9824900 { |
---|
415 | | - compatible = "qcom,sdhci-msm-v4"; |
---|
| 423 | + compatible = "qcom,apq8084-sdhci", "qcom,sdhci-msm-v4"; |
---|
416 | 424 | reg = <0xf9824900 0x11c>, <0xf9824000 0x800>; |
---|
417 | 425 | reg-names = "hc_mem", "core_mem"; |
---|
418 | | - interrupts = <0 123 0>, <0 138 0>; |
---|
| 426 | + interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>; |
---|
419 | 427 | interrupt-names = "hc_irq", "pwr_irq"; |
---|
420 | 428 | clocks = <&gcc GCC_SDCC1_APPS_CLK>, |
---|
421 | 429 | <&gcc GCC_SDCC1_AHB_CLK>, |
---|
.. | .. |
---|
425 | 433 | }; |
---|
426 | 434 | |
---|
427 | 435 | sdhci@f98a4900 { |
---|
428 | | - compatible = "qcom,sdhci-msm-v4"; |
---|
| 436 | + compatible = "qcom,apq8084-sdhci", "qcom,sdhci-msm-v4"; |
---|
429 | 437 | reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>; |
---|
430 | 438 | reg-names = "hc_mem", "core_mem"; |
---|
431 | | - interrupts = <0 125 0>, <0 221 0>; |
---|
| 439 | + interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>; |
---|
432 | 440 | interrupt-names = "hc_irq", "pwr_irq"; |
---|
433 | 441 | clocks = <&gcc GCC_SDCC2_APPS_CLK>, |
---|
434 | 442 | <&gcc GCC_SDCC2_AHB_CLK>, |
---|
.. | .. |
---|
444 | 452 | <0xfc4cb000 0x1000>, |
---|
445 | 453 | <0xfc4ca000 0x1000>; |
---|
446 | 454 | interrupt-names = "periph_irq"; |
---|
447 | | - interrupts = <0 190 0>; |
---|
| 455 | + interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>; |
---|
448 | 456 | qcom,ee = <0>; |
---|
449 | 457 | qcom,channel = <0>; |
---|
450 | 458 | #address-cells = <2>; |
---|
.. | .. |
---|
458 | 466 | compatible = "qcom,smd"; |
---|
459 | 467 | |
---|
460 | 468 | rpm { |
---|
461 | | - interrupts = <0 168 1>; |
---|
| 469 | + interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>; |
---|
462 | 470 | qcom,ipc = <&apcs 8 0>; |
---|
463 | 471 | qcom,smd-edge = <15>; |
---|
464 | 472 | |
---|