msm8916.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. /*
  2. * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #include <dt-bindings/interrupt-controller/arm-gic.h>
  14. #include <dt-bindings/clock/qcom,gcc-msm8916.h>
  15. #include <dt-bindings/reset/qcom,gcc-msm8916.h>
  16. / {
  17. model = "Qualcomm Technologies, Inc. MSM8916";
  18. compatible = "qcom,msm8916";
  19. interrupt-parent = <&intc>;
  20. #address-cells = <2>;
  21. #size-cells = <2>;
  22. aliases {
  23. sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
  24. sdhc2 = &sdhc_2; /* SDC2 SD card slot */
  25. };
  26. chosen { };
  27. memory {
  28. device_type = "memory";
  29. /* We expect the bootloader to fill in the reg */
  30. reg = <0 0 0 0>;
  31. };
  32. cpus {
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. CPU0: cpu@0 {
  36. device_type = "cpu";
  37. compatible = "arm,cortex-a53", "arm,armv8";
  38. reg = <0x0>;
  39. };
  40. CPU1: cpu@1 {
  41. device_type = "cpu";
  42. compatible = "arm,cortex-a53", "arm,armv8";
  43. reg = <0x1>;
  44. };
  45. CPU2: cpu@2 {
  46. device_type = "cpu";
  47. compatible = "arm,cortex-a53", "arm,armv8";
  48. reg = <0x2>;
  49. };
  50. CPU3: cpu@3 {
  51. device_type = "cpu";
  52. compatible = "arm,cortex-a53", "arm,armv8";
  53. reg = <0x3>;
  54. };
  55. };
  56. timer {
  57. compatible = "arm,armv8-timer";
  58. interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  59. <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  60. <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  61. <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  62. };
  63. soc: soc {
  64. #address-cells = <1>;
  65. #size-cells = <1>;
  66. ranges = <0 0 0 0xffffffff>;
  67. compatible = "simple-bus";
  68. restart@4ab000 {
  69. compatible = "qcom,pshold";
  70. reg = <0x4ab000 0x4>;
  71. };
  72. msmgpio: pinctrl@1000000 {
  73. compatible = "qcom,msm8916-pinctrl";
  74. reg = <0x1000000 0x300000>;
  75. interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
  76. gpio-controller;
  77. #gpio-cells = <2>;
  78. interrupt-controller;
  79. #interrupt-cells = <2>;
  80. };
  81. gcc: qcom,gcc@1800000 {
  82. compatible = "qcom,gcc-msm8916";
  83. #clock-cells = <1>;
  84. #reset-cells = <1>;
  85. #power-domain-cells = <1>;
  86. reg = <0x1800000 0x80000>;
  87. };
  88. blsp1_uart1: serial@78af000 {
  89. compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
  90. reg = <0x78af000 0x200>;
  91. interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
  92. clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
  93. clock-names = "core", "iface";
  94. status = "disabled";
  95. };
  96. blsp1_uart2: serial@78b0000 {
  97. compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
  98. reg = <0x78b0000 0x200>;
  99. interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
  100. clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
  101. clock-names = "core", "iface";
  102. status = "disabled";
  103. };
  104. blsp_dma: dma@7884000 {
  105. compatible = "qcom,bam-v1.7.0";
  106. reg = <0x07884000 0x23000>;
  107. interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
  108. clocks = <&gcc GCC_BLSP1_AHB_CLK>;
  109. clock-names = "bam_clk";
  110. #dma-cells = <1>;
  111. qcom,ee = <0>;
  112. status = "disabled";
  113. };
  114. blsp_spi1: spi@78b5000 {
  115. compatible = "qcom,spi-qup-v2.2.1";
  116. reg = <0x078b5000 0x600>;
  117. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
  118. clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
  119. <&gcc GCC_BLSP1_AHB_CLK>;
  120. clock-names = "core", "iface";
  121. dmas = <&blsp_dma 5>, <&blsp_dma 4>;
  122. dma-names = "rx", "tx";
  123. pinctrl-names = "default", "sleep";
  124. pinctrl-0 = <&spi1_default>;
  125. pinctrl-1 = <&spi1_sleep>;
  126. #address-cells = <1>;
  127. #size-cells = <0>;
  128. status = "disabled";
  129. };
  130. blsp_spi2: spi@78b6000 {
  131. compatible = "qcom,spi-qup-v2.2.1";
  132. reg = <0x078b6000 0x600>;
  133. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
  134. clocks = <&gcc GCC_BLSP1_QUP2_SPI_APPS_CLK>,
  135. <&gcc GCC_BLSP1_AHB_CLK>;
  136. clock-names = "core", "iface";
  137. dmas = <&blsp_dma 7>, <&blsp_dma 6>;
  138. dma-names = "rx", "tx";
  139. pinctrl-names = "default", "sleep";
  140. pinctrl-0 = <&spi2_default>;
  141. pinctrl-1 = <&spi2_sleep>;
  142. #address-cells = <1>;
  143. #size-cells = <0>;
  144. status = "disabled";
  145. };
  146. blsp_spi3: spi@78b7000 {
  147. compatible = "qcom,spi-qup-v2.2.1";
  148. reg = <0x078b7000 0x600>;
  149. interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
  150. clocks = <&gcc GCC_BLSP1_QUP3_SPI_APPS_CLK>,
  151. <&gcc GCC_BLSP1_AHB_CLK>;
  152. clock-names = "core", "iface";
  153. dmas = <&blsp_dma 9>, <&blsp_dma 8>;
  154. dma-names = "rx", "tx";
  155. pinctrl-names = "default", "sleep";
  156. pinctrl-0 = <&spi3_default>;
  157. pinctrl-1 = <&spi3_sleep>;
  158. #address-cells = <1>;
  159. #size-cells = <0>;
  160. status = "disabled";
  161. };
  162. blsp_spi4: spi@78b8000 {
  163. compatible = "qcom,spi-qup-v2.2.1";
  164. reg = <0x078b8000 0x600>;
  165. interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
  166. clocks = <&gcc GCC_BLSP1_QUP4_SPI_APPS_CLK>,
  167. <&gcc GCC_BLSP1_AHB_CLK>;
  168. clock-names = "core", "iface";
  169. dmas = <&blsp_dma 11>, <&blsp_dma 10>;
  170. dma-names = "rx", "tx";
  171. pinctrl-names = "default", "sleep";
  172. pinctrl-0 = <&spi4_default>;
  173. pinctrl-1 = <&spi4_sleep>;
  174. #address-cells = <1>;
  175. #size-cells = <0>;
  176. status = "disabled";
  177. };
  178. blsp_spi5: spi@78b9000 {
  179. compatible = "qcom,spi-qup-v2.2.1";
  180. reg = <0x078b9000 0x600>;
  181. interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
  182. clocks = <&gcc GCC_BLSP1_QUP5_SPI_APPS_CLK>,
  183. <&gcc GCC_BLSP1_AHB_CLK>;
  184. clock-names = "core", "iface";
  185. dmas = <&blsp_dma 13>, <&blsp_dma 12>;
  186. dma-names = "rx", "tx";
  187. pinctrl-names = "default", "sleep";
  188. pinctrl-0 = <&spi5_default>;
  189. pinctrl-1 = <&spi5_sleep>;
  190. #address-cells = <1>;
  191. #size-cells = <0>;
  192. status = "disabled";
  193. };
  194. blsp_spi6: spi@78ba000 {
  195. compatible = "qcom,spi-qup-v2.2.1";
  196. reg = <0x078ba000 0x600>;
  197. interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
  198. clocks = <&gcc GCC_BLSP1_QUP6_SPI_APPS_CLK>,
  199. <&gcc GCC_BLSP1_AHB_CLK>;
  200. clock-names = "core", "iface";
  201. dmas = <&blsp_dma 15>, <&blsp_dma 14>;
  202. dma-names = "rx", "tx";
  203. pinctrl-names = "default", "sleep";
  204. pinctrl-0 = <&spi6_default>;
  205. pinctrl-1 = <&spi6_sleep>;
  206. #address-cells = <1>;
  207. #size-cells = <0>;
  208. status = "disabled";
  209. };
  210. blsp_i2c2: i2c@78b6000 {
  211. compatible = "qcom,i2c-qup-v2.2.1";
  212. reg = <0x78b6000 0x1000>;
  213. interrupts = <GIC_SPI 96 0>;
  214. clocks = <&gcc GCC_BLSP1_AHB_CLK>,
  215. <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>;
  216. clock-names = "iface", "core";
  217. pinctrl-names = "default", "sleep";
  218. pinctrl-0 = <&i2c2_default>;
  219. pinctrl-1 = <&i2c2_sleep>;
  220. #address-cells = <1>;
  221. #size-cells = <0>;
  222. status = "disabled";
  223. };
  224. blsp_i2c4: i2c@78b8000 {
  225. compatible = "qcom,i2c-qup-v2.2.1";
  226. reg = <0x78b8000 0x1000>;
  227. interrupts = <GIC_SPI 98 0>;
  228. clocks = <&gcc GCC_BLSP1_AHB_CLK>,
  229. <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>;
  230. clock-names = "iface", "core";
  231. pinctrl-names = "default", "sleep";
  232. pinctrl-0 = <&i2c4_default>;
  233. pinctrl-1 = <&i2c4_sleep>;
  234. #address-cells = <1>;
  235. #size-cells = <0>;
  236. status = "disabled";
  237. };
  238. blsp_i2c6: i2c@78ba000 {
  239. compatible = "qcom,i2c-qup-v2.2.1";
  240. reg = <0x78ba000 0x1000>;
  241. interrupts = <GIC_SPI 100 0>;
  242. clocks = <&gcc GCC_BLSP1_AHB_CLK>,
  243. <&gcc GCC_BLSP1_QUP6_I2C_APPS_CLK>;
  244. clock-names = "iface", "core";
  245. pinctrl-names = "default", "sleep";
  246. pinctrl-0 = <&i2c6_default>;
  247. pinctrl-1 = <&i2c6_sleep>;
  248. #address-cells = <1>;
  249. #size-cells = <0>;
  250. status = "disabled";
  251. };
  252. sdhc_1: sdhci@07824000 {
  253. compatible = "qcom,sdhci-msm-v4";
  254. reg = <0x07824900 0x11c>, <0x07824000 0x800>;
  255. reg-names = "hc_mem", "core_mem";
  256. interrupts = <0 123 0>, <0 138 0>;
  257. interrupt-names = "hc_irq", "pwr_irq";
  258. clocks = <&gcc GCC_SDCC1_APPS_CLK>,
  259. <&gcc GCC_SDCC1_AHB_CLK>;
  260. clock-names = "core", "iface";
  261. bus-width = <8>;
  262. non-removable;
  263. status = "disabled";
  264. };
  265. sdhc_2: sdhci@07864000 {
  266. compatible = "qcom,sdhci-msm-v4";
  267. reg = <0x07864900 0x11c>, <0x07864000 0x800>;
  268. reg-names = "hc_mem", "core_mem";
  269. interrupts = <0 125 0>, <0 221 0>;
  270. interrupt-names = "hc_irq", "pwr_irq";
  271. clocks = <&gcc GCC_SDCC2_APPS_CLK>,
  272. <&gcc GCC_SDCC2_AHB_CLK>;
  273. clock-names = "core", "iface";
  274. bus-width = <4>;
  275. status = "disabled";
  276. };
  277. usb_dev: usb@78d9000 {
  278. compatible = "qcom,ci-hdrc";
  279. reg = <0x78d9000 0x400>;
  280. dr_mode = "peripheral";
  281. interrupts = <GIC_SPI 134 IRQ_TYPE_NONE>;
  282. usb-phy = <&usb_otg>;
  283. status = "disabled";
  284. };
  285. usb_host: ehci@78d9000 {
  286. compatible = "qcom,ehci-host";
  287. reg = <0x78d9000 0x400>;
  288. interrupts = <GIC_SPI 134 IRQ_TYPE_NONE>;
  289. usb-phy = <&usb_otg>;
  290. status = "disabled";
  291. };
  292. usb_otg: phy@78d9000 {
  293. compatible = "qcom,usb-otg-snps";
  294. reg = <0x78d9000 0x400>;
  295. interrupts = <GIC_SPI 134 IRQ_TYPE_EDGE_BOTH>,
  296. <GIC_SPI 140 IRQ_TYPE_EDGE_RISING>;
  297. qcom,vdd-levels = <1 5 7>;
  298. qcom,phy-init-sequence = <0x44 0x6B 0x24 0x13>;
  299. dr_mode = "peripheral";
  300. qcom,otg-control = <2>; // PMIC
  301. clocks = <&gcc GCC_USB_HS_AHB_CLK>,
  302. <&gcc GCC_USB_HS_SYSTEM_CLK>,
  303. <&gcc GCC_USB2A_PHY_SLEEP_CLK>;
  304. clock-names = "iface", "core", "sleep";
  305. resets = <&gcc GCC_USB2A_PHY_BCR>,
  306. <&gcc GCC_USB_HS_BCR>;
  307. reset-names = "phy", "link";
  308. status = "disabled";
  309. };
  310. intc: interrupt-controller@b000000 {
  311. compatible = "qcom,msm-qgic2";
  312. interrupt-controller;
  313. #interrupt-cells = <3>;
  314. reg = <0x0b000000 0x1000>, <0x0b002000 0x1000>;
  315. };
  316. timer@b020000 {
  317. #address-cells = <1>;
  318. #size-cells = <1>;
  319. ranges;
  320. compatible = "arm,armv7-timer-mem";
  321. reg = <0xb020000 0x1000>;
  322. clock-frequency = <19200000>;
  323. frame@b021000 {
  324. frame-number = <0>;
  325. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
  326. <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  327. reg = <0xb021000 0x1000>,
  328. <0xb022000 0x1000>;
  329. };
  330. frame@b023000 {
  331. frame-number = <1>;
  332. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  333. reg = <0xb023000 0x1000>;
  334. status = "disabled";
  335. };
  336. frame@b024000 {
  337. frame-number = <2>;
  338. interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
  339. reg = <0xb024000 0x1000>;
  340. status = "disabled";
  341. };
  342. frame@b025000 {
  343. frame-number = <3>;
  344. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  345. reg = <0xb025000 0x1000>;
  346. status = "disabled";
  347. };
  348. frame@b026000 {
  349. frame-number = <4>;
  350. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  351. reg = <0xb026000 0x1000>;
  352. status = "disabled";
  353. };
  354. frame@b027000 {
  355. frame-number = <5>;
  356. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  357. reg = <0xb027000 0x1000>;
  358. status = "disabled";
  359. };
  360. frame@b028000 {
  361. frame-number = <6>;
  362. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
  363. reg = <0xb028000 0x1000>;
  364. status = "disabled";
  365. };
  366. };
  367. spmi_bus: spmi@200f000 {
  368. compatible = "qcom,spmi-pmic-arb";
  369. reg = <0x200f000 0x001000>,
  370. <0x2400000 0x400000>,
  371. <0x2c00000 0x400000>,
  372. <0x3800000 0x200000>,
  373. <0x200a000 0x002100>;
  374. reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
  375. interrupt-names = "periph_irq";
  376. interrupts = <GIC_SPI 190 IRQ_TYPE_NONE>;
  377. qcom,ee = <0>;
  378. qcom,channel = <0>;
  379. #address-cells = <2>;
  380. #size-cells = <0>;
  381. interrupt-controller;
  382. #interrupt-cells = <4>;
  383. };
  384. rng@22000 {
  385. compatible = "qcom,prng";
  386. reg = <0x00022000 0x200>;
  387. clocks = <&gcc GCC_PRNG_AHB_CLK>;
  388. clock-names = "core";
  389. };
  390. };
  391. };
  392. #include "msm8916-pins.dtsi"