rk3xxx.dtsi 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. /*
  2. * Copyright (c) 2013 MundoReader S.L.
  3. * Author: Heiko Stuebner <heiko@sntech.de>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include <dt-bindings/interrupt-controller/irq.h>
  16. #include <dt-bindings/interrupt-controller/arm-gic.h>
  17. #include "skeleton.dtsi"
  18. / {
  19. interrupt-parent = <&gic>;
  20. aliases {
  21. i2c0 = &i2c0;
  22. i2c1 = &i2c1;
  23. i2c2 = &i2c2;
  24. i2c3 = &i2c3;
  25. i2c4 = &i2c4;
  26. mshc0 = &emmc;
  27. mshc1 = &mmc0;
  28. mshc2 = &mmc1;
  29. spi0 = &spi0;
  30. spi1 = &spi1;
  31. };
  32. amba {
  33. compatible = "arm,amba-bus";
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. ranges;
  37. dmac1_s: dma-controller@20018000 {
  38. compatible = "arm,pl330", "arm,primecell";
  39. reg = <0x20018000 0x4000>;
  40. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
  41. <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  42. #dma-cells = <1>;
  43. clocks = <&cru ACLK_DMA1>;
  44. clock-names = "apb_pclk";
  45. };
  46. dmac1_ns: dma-controller@2001c000 {
  47. compatible = "arm,pl330", "arm,primecell";
  48. reg = <0x2001c000 0x4000>;
  49. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
  50. <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  51. #dma-cells = <1>;
  52. clocks = <&cru ACLK_DMA1>;
  53. clock-names = "apb_pclk";
  54. status = "disabled";
  55. };
  56. dmac2: dma-controller@20078000 {
  57. compatible = "arm,pl330", "arm,primecell";
  58. reg = <0x20078000 0x4000>;
  59. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
  60. <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  61. #dma-cells = <1>;
  62. clocks = <&cru ACLK_DMA2>;
  63. clock-names = "apb_pclk";
  64. };
  65. };
  66. xin24m: oscillator {
  67. compatible = "fixed-clock";
  68. clock-frequency = <24000000>;
  69. #clock-cells = <0>;
  70. clock-output-names = "xin24m";
  71. };
  72. L2: l2-cache-controller@10138000 {
  73. compatible = "arm,pl310-cache";
  74. reg = <0x10138000 0x1000>;
  75. cache-unified;
  76. cache-level = <2>;
  77. };
  78. scu@1013c000 {
  79. compatible = "arm,cortex-a9-scu";
  80. reg = <0x1013c000 0x100>;
  81. };
  82. global_timer: global-timer@1013c200 {
  83. compatible = "arm,cortex-a9-global-timer";
  84. reg = <0x1013c200 0x20>;
  85. interrupts = <GIC_PPI 11 0x304>;
  86. clocks = <&cru CORE_PERI>;
  87. };
  88. local_timer: local-timer@1013c600 {
  89. compatible = "arm,cortex-a9-twd-timer";
  90. reg = <0x1013c600 0x20>;
  91. interrupts = <GIC_PPI 13 0x304>;
  92. clocks = <&cru CORE_PERI>;
  93. };
  94. gic: interrupt-controller@1013d000 {
  95. compatible = "arm,cortex-a9-gic";
  96. interrupt-controller;
  97. #interrupt-cells = <3>;
  98. reg = <0x1013d000 0x1000>,
  99. <0x1013c100 0x0100>;
  100. };
  101. uart0: serial@10124000 {
  102. compatible = "snps,dw-apb-uart";
  103. reg = <0x10124000 0x400>;
  104. interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
  105. reg-shift = <2>;
  106. reg-io-width = <1>;
  107. clock-names = "baudclk", "apb_pclk";
  108. clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
  109. status = "disabled";
  110. };
  111. uart1: serial@10126000 {
  112. compatible = "snps,dw-apb-uart";
  113. reg = <0x10126000 0x400>;
  114. interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
  115. reg-shift = <2>;
  116. reg-io-width = <1>;
  117. clock-names = "baudclk", "apb_pclk";
  118. clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
  119. status = "disabled";
  120. };
  121. usb_otg: usb@10180000 {
  122. compatible = "rockchip,rk3066-usb", "snps,dwc2";
  123. reg = <0x10180000 0x40000>;
  124. interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
  125. clocks = <&cru HCLK_OTG0>;
  126. clock-names = "otg";
  127. status = "disabled";
  128. };
  129. usb_host: usb@101c0000 {
  130. compatible = "snps,dwc2";
  131. reg = <0x101c0000 0x40000>;
  132. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  133. clocks = <&cru HCLK_OTG1>;
  134. clock-names = "otg";
  135. status = "disabled";
  136. };
  137. emac: ethernet@10204000 {
  138. compatible = "snps,arc-emac";
  139. reg = <0x10204000 0x3c>;
  140. interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
  141. #address-cells = <1>;
  142. #size-cells = <0>;
  143. rockchip,grf = <&grf>;
  144. clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
  145. clock-names = "hclk", "macref";
  146. max-speed = <100>;
  147. phy-mode = "rmii";
  148. status = "disabled";
  149. };
  150. mmc0: dwmmc@10214000 {
  151. compatible = "rockchip,rk2928-dw-mshc";
  152. reg = <0x10214000 0x1000>;
  153. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  154. clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
  155. clock-names = "biu", "ciu";
  156. status = "disabled";
  157. };
  158. mmc1: dwmmc@10218000 {
  159. compatible = "rockchip,rk2928-dw-mshc";
  160. reg = <0x10218000 0x1000>;
  161. interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  162. clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
  163. clock-names = "biu", "ciu";
  164. status = "disabled";
  165. };
  166. emmc: dwmmc@1021c000 {
  167. compatible = "rockchip,rk2928-dw-mshc";
  168. reg = <0x1021c000 0x1000>;
  169. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  170. clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
  171. clock-names = "biu", "ciu";
  172. status = "disabled";
  173. };
  174. pmu: pmu@20004000 {
  175. compatible = "rockchip,rk3066-pmu", "syscon";
  176. reg = <0x20004000 0x100>;
  177. };
  178. grf: grf@20008000 {
  179. compatible = "syscon";
  180. reg = <0x20008000 0x200>;
  181. };
  182. i2c0: i2c@2002d000 {
  183. compatible = "rockchip,rk3066-i2c";
  184. reg = <0x2002d000 0x1000>;
  185. interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
  186. #address-cells = <1>;
  187. #size-cells = <0>;
  188. rockchip,grf = <&grf>;
  189. clock-names = "i2c";
  190. clocks = <&cru PCLK_I2C0>;
  191. status = "disabled";
  192. };
  193. i2c1: i2c@2002f000 {
  194. compatible = "rockchip,rk3066-i2c";
  195. reg = <0x2002f000 0x1000>;
  196. interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
  197. #address-cells = <1>;
  198. #size-cells = <0>;
  199. rockchip,grf = <&grf>;
  200. clocks = <&cru PCLK_I2C1>;
  201. clock-names = "i2c";
  202. status = "disabled";
  203. };
  204. pwm0: pwm@20030000 {
  205. compatible = "rockchip,rk2928-pwm";
  206. reg = <0x20030000 0x10>;
  207. #pwm-cells = <2>;
  208. clocks = <&cru PCLK_PWM01>;
  209. status = "disabled";
  210. };
  211. pwm1: pwm@20030010 {
  212. compatible = "rockchip,rk2928-pwm";
  213. reg = <0x20030010 0x10>;
  214. #pwm-cells = <2>;
  215. clocks = <&cru PCLK_PWM01>;
  216. status = "disabled";
  217. };
  218. wdt: watchdog@2004c000 {
  219. compatible = "snps,dw-wdt";
  220. reg = <0x2004c000 0x100>;
  221. clocks = <&cru PCLK_WDT>;
  222. interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
  223. status = "disabled";
  224. };
  225. pwm2: pwm@20050020 {
  226. compatible = "rockchip,rk2928-pwm";
  227. reg = <0x20050020 0x10>;
  228. #pwm-cells = <2>;
  229. clocks = <&cru PCLK_PWM23>;
  230. status = "disabled";
  231. };
  232. pwm3: pwm@20050030 {
  233. compatible = "rockchip,rk2928-pwm";
  234. reg = <0x20050030 0x10>;
  235. #pwm-cells = <2>;
  236. clocks = <&cru PCLK_PWM23>;
  237. status = "disabled";
  238. };
  239. i2c2: i2c@20056000 {
  240. compatible = "rockchip,rk3066-i2c";
  241. reg = <0x20056000 0x1000>;
  242. interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
  243. #address-cells = <1>;
  244. #size-cells = <0>;
  245. rockchip,grf = <&grf>;
  246. clocks = <&cru PCLK_I2C2>;
  247. clock-names = "i2c";
  248. status = "disabled";
  249. };
  250. i2c3: i2c@2005a000 {
  251. compatible = "rockchip,rk3066-i2c";
  252. reg = <0x2005a000 0x1000>;
  253. interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
  254. #address-cells = <1>;
  255. #size-cells = <0>;
  256. rockchip,grf = <&grf>;
  257. clocks = <&cru PCLK_I2C3>;
  258. clock-names = "i2c";
  259. status = "disabled";
  260. };
  261. i2c4: i2c@2005e000 {
  262. compatible = "rockchip,rk3066-i2c";
  263. reg = <0x2005e000 0x1000>;
  264. interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
  265. #address-cells = <1>;
  266. #size-cells = <0>;
  267. rockchip,grf = <&grf>;
  268. clocks = <&cru PCLK_I2C4>;
  269. clock-names = "i2c";
  270. status = "disabled";
  271. };
  272. uart2: serial@20064000 {
  273. compatible = "snps,dw-apb-uart";
  274. reg = <0x20064000 0x400>;
  275. interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
  276. reg-shift = <2>;
  277. reg-io-width = <1>;
  278. clock-names = "baudclk", "apb_pclk";
  279. clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
  280. status = "disabled";
  281. };
  282. uart3: serial@20068000 {
  283. compatible = "snps,dw-apb-uart";
  284. reg = <0x20068000 0x400>;
  285. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  286. reg-shift = <2>;
  287. reg-io-width = <1>;
  288. clock-names = "baudclk", "apb_pclk";
  289. clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
  290. status = "disabled";
  291. };
  292. saradc: saradc@2006c000 {
  293. compatible = "rockchip,saradc";
  294. reg = <0x2006c000 0x100>;
  295. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  296. #io-channel-cells = <1>;
  297. clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
  298. clock-names = "saradc", "apb_pclk";
  299. status = "disabled";
  300. };
  301. spi0: spi@20070000 {
  302. compatible = "rockchip,rk3066-spi";
  303. clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
  304. clock-names = "spiclk", "apb_pclk";
  305. interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
  306. reg = <0x20070000 0x1000>;
  307. #address-cells = <1>;
  308. #size-cells = <0>;
  309. status = "disabled";
  310. };
  311. spi1: spi@20074000 {
  312. compatible = "rockchip,rk3066-spi";
  313. clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
  314. clock-names = "spiclk", "apb_pclk";
  315. interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
  316. reg = <0x20074000 0x1000>;
  317. #address-cells = <1>;
  318. #size-cells = <0>;
  319. status = "disabled";
  320. };
  321. };