jz4725b.dtsi 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <dt-bindings/clock/ingenic,jz4725b-cgu.h>
  3. #include <dt-bindings/clock/ingenic,tcu.h>
  4. / {
  5. #address-cells = <1>;
  6. #size-cells = <1>;
  7. compatible = "ingenic,jz4725b";
  8. cpus {
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. cpu0: cpu@0 {
  12. device_type = "cpu";
  13. compatible = "ingenic,xburst-mxu1.0";
  14. reg = <0>;
  15. clocks = <&cgu JZ4725B_CLK_CCLK>;
  16. clock-names = "cpu";
  17. };
  18. };
  19. cpuintc: interrupt-controller {
  20. #address-cells = <0>;
  21. #interrupt-cells = <1>;
  22. interrupt-controller;
  23. compatible = "mti,cpu-interrupt-controller";
  24. };
  25. intc: interrupt-controller@10001000 {
  26. compatible = "ingenic,jz4725b-intc", "ingenic,jz4740-intc";
  27. reg = <0x10001000 0x14>;
  28. interrupt-controller;
  29. #interrupt-cells = <1>;
  30. interrupt-parent = <&cpuintc>;
  31. interrupts = <2>;
  32. };
  33. ext: ext {
  34. compatible = "fixed-clock";
  35. #clock-cells = <0>;
  36. };
  37. osc32k: osc32k {
  38. compatible = "fixed-clock";
  39. #clock-cells = <0>;
  40. clock-frequency = <32768>;
  41. };
  42. cgu: clock-controller@10000000 {
  43. compatible = "ingenic,jz4725b-cgu";
  44. reg = <0x10000000 0x100>;
  45. clocks = <&ext>, <&osc32k>;
  46. clock-names = "ext", "osc32k";
  47. #clock-cells = <1>;
  48. };
  49. tcu: timer@10002000 {
  50. compatible = "ingenic,jz4725b-tcu", "simple-mfd";
  51. reg = <0x10002000 0x1000>;
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. ranges = <0x0 0x10002000 0x1000>;
  55. #clock-cells = <1>;
  56. clocks = <&cgu JZ4725B_CLK_RTC>,
  57. <&cgu JZ4725B_CLK_EXT>,
  58. <&cgu JZ4725B_CLK_PCLK>,
  59. <&cgu JZ4725B_CLK_TCU>;
  60. clock-names = "rtc", "ext", "pclk", "tcu";
  61. interrupt-controller;
  62. #interrupt-cells = <1>;
  63. interrupt-parent = <&intc>;
  64. interrupts = <23>, <22>, <21>;
  65. watchdog: watchdog@0 {
  66. compatible = "ingenic,jz4725b-watchdog", "ingenic,jz4740-watchdog";
  67. reg = <0x0 0xc>;
  68. clocks = <&tcu TCU_CLK_WDT>;
  69. clock-names = "wdt";
  70. };
  71. pwm: pwm@60 {
  72. compatible = "ingenic,jz4725b-pwm";
  73. reg = <0x60 0x40>;
  74. #pwm-cells = <3>;
  75. clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
  76. <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>,
  77. <&tcu TCU_CLK_TIMER4>, <&tcu TCU_CLK_TIMER5>;
  78. clock-names = "timer0", "timer1", "timer2",
  79. "timer3", "timer4", "timer5";
  80. };
  81. ost: timer@e0 {
  82. compatible = "ingenic,jz4725b-ost";
  83. reg = <0xe0 0x20>;
  84. clocks = <&tcu TCU_CLK_OST>;
  85. clock-names = "ost";
  86. interrupts = <15>;
  87. };
  88. };
  89. rtc_dev: rtc@10003000 {
  90. compatible = "ingenic,jz4725b-rtc", "ingenic,jz4740-rtc";
  91. reg = <0x10003000 0x40>;
  92. interrupt-parent = <&intc>;
  93. interrupts = <6>;
  94. clocks = <&cgu JZ4725B_CLK_RTC>;
  95. clock-names = "rtc";
  96. };
  97. pinctrl: pinctrl@10010000 {
  98. compatible = "ingenic,jz4725b-pinctrl";
  99. reg = <0x10010000 0x400>;
  100. #address-cells = <1>;
  101. #size-cells = <0>;
  102. gpa: gpio@0 {
  103. compatible = "ingenic,jz4725b-gpio";
  104. reg = <0>;
  105. gpio-controller;
  106. gpio-ranges = <&pinctrl 0 0 32>;
  107. #gpio-cells = <2>;
  108. interrupt-controller;
  109. #interrupt-cells = <2>;
  110. interrupt-parent = <&intc>;
  111. interrupts = <16>;
  112. };
  113. gpb: gpio@1 {
  114. compatible = "ingenic,jz4725b-gpio";
  115. reg = <1>;
  116. gpio-controller;
  117. gpio-ranges = <&pinctrl 0 32 32>;
  118. #gpio-cells = <2>;
  119. interrupt-controller;
  120. #interrupt-cells = <2>;
  121. interrupt-parent = <&intc>;
  122. interrupts = <15>;
  123. };
  124. gpc: gpio@2 {
  125. compatible = "ingenic,jz4725b-gpio";
  126. reg = <2>;
  127. gpio-controller;
  128. gpio-ranges = <&pinctrl 0 64 32>;
  129. #gpio-cells = <2>;
  130. interrupt-controller;
  131. #interrupt-cells = <2>;
  132. interrupt-parent = <&intc>;
  133. interrupts = <14>;
  134. };
  135. gpd: gpio@3 {
  136. compatible = "ingenic,jz4725b-gpio";
  137. reg = <3>;
  138. gpio-controller;
  139. gpio-ranges = <&pinctrl 0 96 32>;
  140. #gpio-cells = <2>;
  141. interrupt-controller;
  142. #interrupt-cells = <2>;
  143. interrupt-parent = <&intc>;
  144. interrupts = <13>;
  145. };
  146. };
  147. aic: audio-controller@10020000 {
  148. compatible = "ingenic,jz4725b-i2s", "ingenic,jz4740-i2s";
  149. reg = <0x10020000 0x38>;
  150. #sound-dai-cells = <0>;
  151. clocks = <&cgu JZ4725B_CLK_AIC>,
  152. <&cgu JZ4725B_CLK_I2S>,
  153. <&cgu JZ4725B_CLK_EXT>,
  154. <&cgu JZ4725B_CLK_PLL_HALF>;
  155. clock-names = "aic", "i2s", "ext", "pll half";
  156. interrupt-parent = <&intc>;
  157. interrupts = <10>;
  158. dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
  159. dma-names = "rx", "tx";
  160. };
  161. codec: audio-codec@100200a4 {
  162. compatible = "ingenic,jz4725b-codec";
  163. reg = <0x100200a4 0x8>;
  164. #sound-dai-cells = <0>;
  165. clocks = <&cgu JZ4725B_CLK_AIC>;
  166. clock-names = "aic";
  167. };
  168. mmc0: mmc@10021000 {
  169. compatible = "ingenic,jz4725b-mmc";
  170. reg = <0x10021000 0x1000>;
  171. clocks = <&cgu JZ4725B_CLK_MMC0>;
  172. clock-names = "mmc";
  173. interrupt-parent = <&intc>;
  174. interrupts = <25>;
  175. dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>;
  176. dma-names = "rx", "tx";
  177. cap-sd-highspeed;
  178. cap-mmc-highspeed;
  179. cap-sdio-irq;
  180. };
  181. mmc1: mmc@10022000 {
  182. compatible = "ingenic,jz4725b-mmc";
  183. reg = <0x10022000 0x1000>;
  184. clocks = <&cgu JZ4725B_CLK_MMC1>;
  185. clock-names = "mmc";
  186. interrupt-parent = <&intc>;
  187. interrupts = <24>;
  188. dmas = <&dmac 31 0xffffffff>, <&dmac 30 0xffffffff>;
  189. dma-names = "rx", "tx";
  190. cap-sd-highspeed;
  191. cap-mmc-highspeed;
  192. cap-sdio-irq;
  193. };
  194. uart: serial@10030000 {
  195. compatible = "ingenic,jz4725b-uart", "ingenic,jz4740-uart";
  196. reg = <0x10030000 0x100>;
  197. interrupt-parent = <&intc>;
  198. interrupts = <9>;
  199. clocks = <&ext>, <&cgu JZ4725B_CLK_UART>;
  200. clock-names = "baud", "module";
  201. };
  202. adc: adc@10070000 {
  203. compatible = "ingenic,jz4725b-adc";
  204. #io-channel-cells = <1>;
  205. reg = <0x10070000 0x30>;
  206. #address-cells = <1>;
  207. #size-cells = <1>;
  208. ranges = <0x0 0x10070000 0x30>;
  209. clocks = <&cgu JZ4725B_CLK_ADC>;
  210. clock-names = "adc";
  211. interrupt-parent = <&intc>;
  212. interrupts = <18>;
  213. };
  214. nemc: memory-controller@13010000 {
  215. compatible = "ingenic,jz4725b-nemc", "ingenic,jz4740-nemc";
  216. reg = <0x13010000 0x10000>;
  217. #address-cells = <2>;
  218. #size-cells = <1>;
  219. ranges = <1 0 0x18000000 0x4000000>, <2 0 0x14000000 0x4000000>,
  220. <3 0 0x0c000000 0x4000000>, <4 0 0x08000000 0x4000000>;
  221. clocks = <&cgu JZ4725B_CLK_MCLK>;
  222. };
  223. dmac: dma-controller@13020000 {
  224. compatible = "ingenic,jz4725b-dma";
  225. reg = <0x13020000 0xd8>, <0x13020300 0x14>;
  226. #dma-cells = <2>;
  227. interrupt-parent = <&intc>;
  228. interrupts = <29>;
  229. clocks = <&cgu JZ4725B_CLK_DMA>;
  230. };
  231. udc: usb@13040000 {
  232. compatible = "ingenic,jz4725b-musb", "ingenic,jz4740-musb";
  233. reg = <0x13040000 0x10000>;
  234. interrupt-parent = <&intc>;
  235. interrupts = <27>;
  236. interrupt-names = "mc";
  237. clocks = <&cgu JZ4725B_CLK_UDC>;
  238. clock-names = "udc";
  239. };
  240. lcd: lcd-controller@13050000 {
  241. compatible = "ingenic,jz4725b-lcd";
  242. reg = <0x13050000 0x130>; /* tbc */
  243. interrupt-parent = <&intc>;
  244. interrupts = <31>;
  245. clocks = <&cgu JZ4725B_CLK_LCD>;
  246. clock-names = "lcd_pclk";
  247. lcd_ports: ports {
  248. #address-cells = <1>;
  249. #size-cells = <0>;
  250. port@8 {
  251. reg = <8>;
  252. ipu_output: endpoint {
  253. remote-endpoint = <&ipu_input>;
  254. };
  255. };
  256. };
  257. };
  258. ipu: ipu@13080000 {
  259. compatible = "ingenic,jz4725b-ipu";
  260. reg = <0x13080000 0x64>;
  261. interrupt-parent = <&intc>;
  262. interrupts = <30>;
  263. clocks = <&cgu JZ4725B_CLK_IPU>;
  264. clock-names = "ipu";
  265. port {
  266. ipu_input: endpoint {
  267. remote-endpoint = <&ipu_output>;
  268. };
  269. };
  270. };
  271. bch: ecc-controller@130d0000 {
  272. compatible = "ingenic,jz4725b-bch";
  273. reg = <0x130d0000 0x44>;
  274. clocks = <&cgu JZ4725B_CLK_BCH>;
  275. };
  276. rom: memory@1fc00000 {
  277. compatible = "mtd-rom";
  278. probe-type = "map_rom";
  279. reg = <0x1fc00000 0x2000>;
  280. bank-width = <4>;
  281. device-width = <1>;
  282. };
  283. };