ipq8074.dtsi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. /*
  2. * Copyright (c) 2017, 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-ipq8074.h>
  15. / {
  16. model = "Qualcomm Technologies, Inc. IPQ8074";
  17. compatible = "qcom,ipq8074";
  18. soc: soc {
  19. #address-cells = <0x1>;
  20. #size-cells = <0x1>;
  21. ranges = <0 0 0 0xffffffff>;
  22. compatible = "simple-bus";
  23. tlmm: pinctrl@1000000 {
  24. compatible = "qcom,ipq8074-pinctrl";
  25. reg = <0x1000000 0x300000>;
  26. interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
  27. gpio-controller;
  28. #gpio-cells = <0x2>;
  29. interrupt-controller;
  30. #interrupt-cells = <0x2>;
  31. serial_4_pins: serial4-pinmux {
  32. pins = "gpio23", "gpio24";
  33. function = "blsp4_uart1";
  34. drive-strength = <8>;
  35. bias-disable;
  36. };
  37. i2c_0_pins: i2c-0-pinmux {
  38. pins = "gpio42", "gpio43";
  39. function = "blsp1_i2c";
  40. drive-strength = <8>;
  41. bias-disable;
  42. };
  43. spi_0_pins: spi-0-pins {
  44. pins = "gpio38", "gpio39", "gpio40", "gpio41";
  45. function = "blsp0_spi";
  46. drive-strength = <8>;
  47. bias-disable;
  48. };
  49. hsuart_pins: hsuart-pins {
  50. pins = "gpio46", "gpio47", "gpio48", "gpio49";
  51. function = "blsp2_uart";
  52. drive-strength = <8>;
  53. bias-disable;
  54. };
  55. qpic_pins: qpic-pins {
  56. pins = "gpio1", "gpio3", "gpio4",
  57. "gpio5", "gpio6", "gpio7",
  58. "gpio8", "gpio10", "gpio11",
  59. "gpio12", "gpio13", "gpio14",
  60. "gpio15", "gpio16", "gpio17";
  61. function = "qpic";
  62. drive-strength = <8>;
  63. bias-disable;
  64. };
  65. };
  66. intc: interrupt-controller@b000000 {
  67. compatible = "qcom,msm-qgic2";
  68. interrupt-controller;
  69. #interrupt-cells = <0x3>;
  70. reg = <0xb000000 0x1000>, <0xb002000 0x1000>;
  71. };
  72. timer {
  73. compatible = "arm,armv8-timer";
  74. interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  75. <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  76. <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  77. <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  78. };
  79. timer@b120000 {
  80. #address-cells = <1>;
  81. #size-cells = <1>;
  82. ranges;
  83. compatible = "arm,armv7-timer-mem";
  84. reg = <0xb120000 0x1000>;
  85. clock-frequency = <19200000>;
  86. frame@b120000 {
  87. frame-number = <0>;
  88. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
  89. <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  90. reg = <0xb121000 0x1000>,
  91. <0xb122000 0x1000>;
  92. };
  93. frame@b123000 {
  94. frame-number = <1>;
  95. interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  96. reg = <0xb123000 0x1000>;
  97. status = "disabled";
  98. };
  99. frame@b124000 {
  100. frame-number = <2>;
  101. interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
  102. reg = <0xb124000 0x1000>;
  103. status = "disabled";
  104. };
  105. frame@b125000 {
  106. frame-number = <3>;
  107. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  108. reg = <0xb125000 0x1000>;
  109. status = "disabled";
  110. };
  111. frame@b126000 {
  112. frame-number = <4>;
  113. interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
  114. reg = <0xb126000 0x1000>;
  115. status = "disabled";
  116. };
  117. frame@b127000 {
  118. frame-number = <5>;
  119. interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  120. reg = <0xb127000 0x1000>;
  121. status = "disabled";
  122. };
  123. frame@b128000 {
  124. frame-number = <6>;
  125. interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
  126. reg = <0xb128000 0x1000>;
  127. status = "disabled";
  128. };
  129. };
  130. gcc: gcc@1800000 {
  131. compatible = "qcom,gcc-ipq8074";
  132. reg = <0x1800000 0x80000>;
  133. #clock-cells = <0x1>;
  134. #reset-cells = <0x1>;
  135. };
  136. blsp1_uart5: serial@78b3000 {
  137. compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
  138. reg = <0x78b3000 0x200>;
  139. interrupts = <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>;
  140. clocks = <&gcc GCC_BLSP1_UART5_APPS_CLK>,
  141. <&gcc GCC_BLSP1_AHB_CLK>;
  142. clock-names = "core", "iface";
  143. pinctrl-0 = <&serial_4_pins>;
  144. pinctrl-names = "default";
  145. status = "disabled";
  146. };
  147. blsp_dma: dma@7884000 {
  148. compatible = "qcom,bam-v1.7.0";
  149. reg = <0x7884000 0x2b000>;
  150. interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
  151. clocks = <&gcc GCC_BLSP1_AHB_CLK>;
  152. clock-names = "bam_clk";
  153. #dma-cells = <1>;
  154. qcom,ee = <0>;
  155. };
  156. blsp1_uart1: serial@78af000 {
  157. compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
  158. reg = <0x78af000 0x200>;
  159. interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
  160. clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>,
  161. <&gcc GCC_BLSP1_AHB_CLK>;
  162. clock-names = "core", "iface";
  163. status = "disabled";
  164. };
  165. blsp1_uart3: serial@78b1000 {
  166. compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
  167. reg = <0x78b1000 0x200>;
  168. interrupts = <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
  169. clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>,
  170. <&gcc GCC_BLSP1_AHB_CLK>;
  171. clock-names = "core", "iface";
  172. dmas = <&blsp_dma 4>,
  173. <&blsp_dma 5>;
  174. dma-names = "tx", "rx";
  175. pinctrl-0 = <&hsuart_pins>;
  176. pinctrl-names = "default";
  177. status = "disabled";
  178. };
  179. blsp1_spi1: spi@78b5000 {
  180. compatible = "qcom,spi-qup-v2.2.1";
  181. #address-cells = <1>;
  182. #size-cells = <0>;
  183. reg = <0x78b5000 0x600>;
  184. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
  185. spi-max-frequency = <50000000>;
  186. clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
  187. <&gcc GCC_BLSP1_AHB_CLK>;
  188. clock-names = "core", "iface";
  189. dmas = <&blsp_dma 12>, <&blsp_dma 13>;
  190. dma-names = "tx", "rx";
  191. pinctrl-0 = <&spi_0_pins>;
  192. pinctrl-names = "default";
  193. status = "disabled";
  194. };
  195. blsp1_i2c2: i2c@78b6000 {
  196. compatible = "qcom,i2c-qup-v2.2.1";
  197. #address-cells = <1>;
  198. #size-cells = <0>;
  199. reg = <0x78b6000 0x600>;
  200. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
  201. clocks = <&gcc GCC_BLSP1_AHB_CLK>,
  202. <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>;
  203. clock-names = "iface", "core";
  204. clock-frequency = <400000>;
  205. dmas = <&blsp_dma 15>, <&blsp_dma 14>;
  206. dma-names = "rx", "tx";
  207. pinctrl-0 = <&i2c_0_pins>;
  208. pinctrl-names = "default";
  209. status = "disabled";
  210. };
  211. blsp1_i2c3: i2c@78b7000 {
  212. compatible = "qcom,i2c-qup-v2.2.1";
  213. #address-cells = <1>;
  214. #size-cells = <0>;
  215. reg = <0x78b7000 0x600>;
  216. interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
  217. clocks = <&gcc GCC_BLSP1_AHB_CLK>,
  218. <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>;
  219. clock-names = "iface", "core";
  220. clock-frequency = <100000>;
  221. dmas = <&blsp_dma 17>, <&blsp_dma 16>;
  222. dma-names = "rx", "tx";
  223. status = "disabled";
  224. };
  225. qpic_bam: dma@7984000 {
  226. compatible = "qcom,bam-v1.7.0";
  227. reg = <0x7984000 0x1a000>;
  228. interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
  229. clocks = <&gcc GCC_QPIC_AHB_CLK>;
  230. clock-names = "bam_clk";
  231. #dma-cells = <1>;
  232. qcom,ee = <0>;
  233. status = "disabled";
  234. };
  235. qpic_nand: nand@79b0000 {
  236. compatible = "qcom,ipq8074-nand";
  237. reg = <0x79b0000 0x10000>;
  238. #address-cells = <1>;
  239. #size-cells = <0>;
  240. clocks = <&gcc GCC_QPIC_CLK>,
  241. <&gcc GCC_QPIC_AHB_CLK>;
  242. clock-names = "core", "aon";
  243. dmas = <&qpic_bam 0>,
  244. <&qpic_bam 1>,
  245. <&qpic_bam 2>;
  246. dma-names = "tx", "rx", "cmd";
  247. pinctrl-0 = <&qpic_pins>;
  248. pinctrl-names = "default";
  249. status = "disabled";
  250. };
  251. pcie_phy0: phy@86000 {
  252. compatible = "qcom,ipq8074-qmp-pcie-phy";
  253. reg = <0x86000 0x1000>;
  254. #phy-cells = <0>;
  255. clocks = <&gcc GCC_PCIE0_PIPE_CLK>;
  256. clock-names = "pipe_clk";
  257. clock-output-names = "pcie20_phy0_pipe_clk";
  258. resets = <&gcc GCC_PCIE0_PHY_BCR>,
  259. <&gcc GCC_PCIE0PHY_PHY_BCR>;
  260. reset-names = "phy",
  261. "common";
  262. status = "disabled";
  263. };
  264. pcie0: pci@20000000 {
  265. compatible = "qcom,pcie-ipq8074";
  266. reg = <0x20000000 0xf1d
  267. 0x20000f20 0xa8
  268. 0x80000 0x2000
  269. 0x20100000 0x1000>;
  270. reg-names = "dbi", "elbi", "parf", "config";
  271. device_type = "pci";
  272. linux,pci-domain = <0>;
  273. bus-range = <0x00 0xff>;
  274. num-lanes = <1>;
  275. #address-cells = <3>;
  276. #size-cells = <2>;
  277. phys = <&pcie_phy0>;
  278. phy-names = "pciephy";
  279. ranges = <0x81000000 0 0x20200000 0x20200000
  280. 0 0x100000 /* downstream I/O */
  281. 0x82000000 0 0x20300000 0x20300000
  282. 0 0xd00000>; /* non-prefetchable memory */
  283. interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
  284. interrupt-names = "msi";
  285. #interrupt-cells = <1>;
  286. interrupt-map-mask = <0 0 0 0x7>;
  287. interrupt-map = <0 0 0 1 &intc 0 75
  288. IRQ_TYPE_LEVEL_HIGH>, /* int_a */
  289. <0 0 0 2 &intc 0 78
  290. IRQ_TYPE_LEVEL_HIGH>, /* int_b */
  291. <0 0 0 3 &intc 0 79
  292. IRQ_TYPE_LEVEL_HIGH>, /* int_c */
  293. <0 0 0 4 &intc 0 83
  294. IRQ_TYPE_LEVEL_HIGH>; /* int_d */
  295. clocks = <&gcc GCC_SYS_NOC_PCIE0_AXI_CLK>,
  296. <&gcc GCC_PCIE0_AXI_M_CLK>,
  297. <&gcc GCC_PCIE0_AXI_S_CLK>,
  298. <&gcc GCC_PCIE0_AHB_CLK>,
  299. <&gcc GCC_PCIE0_AUX_CLK>;
  300. clock-names = "iface",
  301. "axi_m",
  302. "axi_s",
  303. "ahb",
  304. "aux";
  305. resets = <&gcc GCC_PCIE0_PIPE_ARES>,
  306. <&gcc GCC_PCIE0_SLEEP_ARES>,
  307. <&gcc GCC_PCIE0_CORE_STICKY_ARES>,
  308. <&gcc GCC_PCIE0_AXI_MASTER_ARES>,
  309. <&gcc GCC_PCIE0_AXI_SLAVE_ARES>,
  310. <&gcc GCC_PCIE0_AHB_ARES>,
  311. <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>;
  312. reset-names = "pipe",
  313. "sleep",
  314. "sticky",
  315. "axi_m",
  316. "axi_s",
  317. "ahb",
  318. "axi_m_sticky";
  319. status = "disabled";
  320. };
  321. pcie_phy1: phy@8e000 {
  322. compatible = "qcom,ipq8074-qmp-pcie-phy";
  323. reg = <0x8e000 0x1000>;
  324. #phy-cells = <0>;
  325. clocks = <&gcc GCC_PCIE1_PIPE_CLK>;
  326. clock-names = "pipe_clk";
  327. clock-output-names = "pcie20_phy1_pipe_clk";
  328. resets = <&gcc GCC_PCIE1_PHY_BCR>,
  329. <&gcc GCC_PCIE1PHY_PHY_BCR>;
  330. reset-names = "phy",
  331. "common";
  332. status = "disabled";
  333. };
  334. pcie1: pci@10000000 {
  335. compatible = "qcom,pcie-ipq8074";
  336. reg = <0x10000000 0xf1d
  337. 0x10000f20 0xa8
  338. 0x88000 0x2000
  339. 0x10100000 0x1000>;
  340. reg-names = "dbi", "elbi", "parf", "config";
  341. device_type = "pci";
  342. linux,pci-domain = <1>;
  343. bus-range = <0x00 0xff>;
  344. num-lanes = <1>;
  345. #address-cells = <3>;
  346. #size-cells = <2>;
  347. phys = <&pcie_phy1>;
  348. phy-names = "pciephy";
  349. ranges = <0x81000000 0 0x10200000 0x10200000
  350. 0 0x100000 /* downstream I/O */
  351. 0x82000000 0 0x10300000 0x10300000
  352. 0 0xd00000>; /* non-prefetchable memory */
  353. interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
  354. interrupt-names = "msi";
  355. #interrupt-cells = <1>;
  356. interrupt-map-mask = <0 0 0 0x7>;
  357. interrupt-map = <0 0 0 1 &intc 0 142
  358. IRQ_TYPE_LEVEL_HIGH>, /* int_a */
  359. <0 0 0 2 &intc 0 143
  360. IRQ_TYPE_LEVEL_HIGH>, /* int_b */
  361. <0 0 0 3 &intc 0 144
  362. IRQ_TYPE_LEVEL_HIGH>, /* int_c */
  363. <0 0 0 4 &intc 0 145
  364. IRQ_TYPE_LEVEL_HIGH>; /* int_d */
  365. clocks = <&gcc GCC_SYS_NOC_PCIE1_AXI_CLK>,
  366. <&gcc GCC_PCIE1_AXI_M_CLK>,
  367. <&gcc GCC_PCIE1_AXI_S_CLK>,
  368. <&gcc GCC_PCIE1_AHB_CLK>,
  369. <&gcc GCC_PCIE1_AUX_CLK>;
  370. clock-names = "iface",
  371. "axi_m",
  372. "axi_s",
  373. "ahb",
  374. "aux";
  375. resets = <&gcc GCC_PCIE1_PIPE_ARES>,
  376. <&gcc GCC_PCIE1_SLEEP_ARES>,
  377. <&gcc GCC_PCIE1_CORE_STICKY_ARES>,
  378. <&gcc GCC_PCIE1_AXI_MASTER_ARES>,
  379. <&gcc GCC_PCIE1_AXI_SLAVE_ARES>,
  380. <&gcc GCC_PCIE1_AHB_ARES>,
  381. <&gcc GCC_PCIE1_AXI_MASTER_STICKY_ARES>;
  382. reset-names = "pipe",
  383. "sleep",
  384. "sticky",
  385. "axi_m",
  386. "axi_s",
  387. "ahb",
  388. "axi_m_sticky";
  389. status = "disabled";
  390. };
  391. };
  392. cpus {
  393. #address-cells = <0x1>;
  394. #size-cells = <0x0>;
  395. CPU0: cpu@0 {
  396. device_type = "cpu";
  397. compatible = "arm,cortex-a53", "arm,armv8";
  398. reg = <0x0>;
  399. next-level-cache = <&L2_0>;
  400. enable-method = "psci";
  401. };
  402. CPU1: cpu@1 {
  403. device_type = "cpu";
  404. compatible = "arm,cortex-a53", "arm,armv8";
  405. enable-method = "psci";
  406. reg = <0x1>;
  407. next-level-cache = <&L2_0>;
  408. };
  409. CPU2: cpu@2 {
  410. device_type = "cpu";
  411. compatible = "arm,cortex-a53", "arm,armv8";
  412. enable-method = "psci";
  413. reg = <0x2>;
  414. next-level-cache = <&L2_0>;
  415. };
  416. CPU3: cpu@3 {
  417. device_type = "cpu";
  418. compatible = "arm,cortex-a53", "arm,armv8";
  419. enable-method = "psci";
  420. reg = <0x3>;
  421. next-level-cache = <&L2_0>;
  422. };
  423. L2_0: l2-cache {
  424. compatible = "cache";
  425. cache-level = <0x2>;
  426. };
  427. };
  428. psci {
  429. compatible = "arm,psci-1.0";
  430. method = "smc";
  431. };
  432. pmu {
  433. compatible = "arm,armv8-pmuv3";
  434. interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  435. };
  436. clocks {
  437. sleep_clk: sleep_clk {
  438. compatible = "fixed-clock";
  439. clock-frequency = <32000>;
  440. #clock-cells = <0>;
  441. };
  442. xo: xo {
  443. compatible = "fixed-clock";
  444. clock-frequency = <19200000>;
  445. #clock-cells = <0>;
  446. };
  447. };
  448. };