meson.dtsi 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. // SPDX-License-Identifier: GPL-2.0 OR MIT
  2. /*
  3. * Copyright 2014 Carlo Caione <[email protected]>
  4. */
  5. #include <dt-bindings/interrupt-controller/irq.h>
  6. #include <dt-bindings/interrupt-controller/arm-gic.h>
  7. #include <dt-bindings/sound/meson-aiu.h>
  8. / {
  9. #address-cells = <1>;
  10. #size-cells = <1>;
  11. interrupt-parent = <&gic>;
  12. iio-hwmon {
  13. compatible = "iio-hwmon";
  14. io-channels = <&saradc 8>;
  15. };
  16. soc {
  17. compatible = "simple-bus";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. ranges;
  21. cbus: cbus@c1100000 {
  22. compatible = "simple-bus";
  23. reg = <0xc1100000 0x200000>;
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. ranges = <0x0 0xc1100000 0x200000>;
  27. hhi: system-controller@4000 {
  28. compatible = "amlogic,meson-hhi-sysctrl",
  29. "simple-mfd",
  30. "syscon";
  31. reg = <0x4000 0x400>;
  32. };
  33. aiu: audio-controller@5400 {
  34. compatible = "amlogic,aiu";
  35. #sound-dai-cells = <2>;
  36. sound-name-prefix = "AIU";
  37. reg = <0x5400 0x2ac>;
  38. interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
  39. <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
  40. interrupt-names = "i2s", "spdif";
  41. status = "disabled";
  42. };
  43. assist: assist@7c00 {
  44. compatible = "amlogic,meson-mx-assist", "syscon";
  45. reg = <0x7c00 0x200>;
  46. };
  47. hwrng: rng@8100 {
  48. compatible = "amlogic,meson-rng";
  49. reg = <0x8100 0x8>;
  50. };
  51. uart_A: serial@84c0 {
  52. compatible = "amlogic,meson6-uart";
  53. reg = <0x84c0 0x18>;
  54. interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
  55. fifo-size = <128>;
  56. status = "disabled";
  57. };
  58. uart_B: serial@84dc {
  59. compatible = "amlogic,meson6-uart";
  60. reg = <0x84dc 0x18>;
  61. interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
  62. status = "disabled";
  63. };
  64. i2c_A: i2c@8500 {
  65. compatible = "amlogic,meson6-i2c";
  66. reg = <0x8500 0x20>;
  67. interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
  68. #address-cells = <1>;
  69. #size-cells = <0>;
  70. status = "disabled";
  71. };
  72. pwm_ab: pwm@8550 {
  73. compatible = "amlogic,meson-pwm";
  74. reg = <0x8550 0x10>;
  75. #pwm-cells = <3>;
  76. status = "disabled";
  77. };
  78. pwm_cd: pwm@8650 {
  79. compatible = "amlogic,meson-pwm";
  80. reg = <0x8650 0x10>;
  81. #pwm-cells = <3>;
  82. status = "disabled";
  83. };
  84. saradc: adc@8680 {
  85. compatible = "amlogic,meson-saradc";
  86. reg = <0x8680 0x34>;
  87. #io-channel-cells = <1>;
  88. interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
  89. status = "disabled";
  90. };
  91. uart_C: serial@8700 {
  92. compatible = "amlogic,meson6-uart";
  93. reg = <0x8700 0x18>;
  94. interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
  95. status = "disabled";
  96. };
  97. i2c_B: i2c@87c0 {
  98. compatible = "amlogic,meson6-i2c";
  99. reg = <0x87c0 0x20>;
  100. interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
  101. #address-cells = <1>;
  102. #size-cells = <0>;
  103. status = "disabled";
  104. };
  105. usb0_phy: phy@8800 {
  106. compatible = "amlogic,meson-mx-usb2-phy";
  107. #phy-cells = <0>;
  108. reg = <0x8800 0x20>;
  109. status = "disabled";
  110. };
  111. usb1_phy: phy@8820 {
  112. compatible = "amlogic,meson-mx-usb2-phy";
  113. #phy-cells = <0>;
  114. reg = <0x8820 0x20>;
  115. status = "disabled";
  116. };
  117. sdio: mmc@8c20 {
  118. compatible = "amlogic,meson-mx-sdio";
  119. reg = <0x8c20 0x20>;
  120. interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
  121. #address-cells = <1>;
  122. #size-cells = <0>;
  123. status = "disabled";
  124. };
  125. spifc: spi@8c80 {
  126. compatible = "amlogic,meson6-spifc";
  127. reg = <0x8c80 0x80>;
  128. #address-cells = <1>;
  129. #size-cells = <0>;
  130. status = "disabled";
  131. };
  132. sdhc: mmc@8e00 {
  133. compatible = "amlogic,meson-mx-sdhc";
  134. reg = <0x8e00 0x42>;
  135. interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
  136. status = "disabled";
  137. };
  138. gpio_intc: interrupt-controller@9880 {
  139. compatible = "amlogic,meson-gpio-intc";
  140. reg = <0x9880 0x10>;
  141. interrupt-controller;
  142. #interrupt-cells = <2>;
  143. amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
  144. status = "disabled";
  145. };
  146. wdt: watchdog@9900 {
  147. compatible = "amlogic,meson6-wdt";
  148. reg = <0x9900 0x8>;
  149. interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
  150. };
  151. timer_abcde: timer@9940 {
  152. compatible = "amlogic,meson6-timer";
  153. reg = <0x9940 0x18>;
  154. interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
  155. <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
  156. <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
  157. <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
  158. };
  159. };
  160. L2: cache-controller@c4200000 {
  161. compatible = "arm,pl310-cache";
  162. reg = <0xc4200000 0x1000>;
  163. cache-unified;
  164. cache-level = <2>;
  165. };
  166. periph: bus@c4300000 {
  167. compatible = "simple-bus";
  168. reg = <0xc4300000 0x10000>;
  169. #address-cells = <1>;
  170. #size-cells = <1>;
  171. ranges = <0x0 0xc4300000 0x10000>;
  172. gic: interrupt-controller@1000 {
  173. compatible = "arm,cortex-a9-gic";
  174. reg = <0x1000 0x1000>,
  175. <0x100 0x100>;
  176. interrupt-controller;
  177. #interrupt-cells = <3>;
  178. };
  179. };
  180. aobus: aobus@c8100000 {
  181. compatible = "simple-bus";
  182. reg = <0xc8100000 0x100000>;
  183. #address-cells = <1>;
  184. #size-cells = <1>;
  185. ranges = <0x0 0xc8100000 0x100000>;
  186. ao_arc_rproc: remoteproc@1c {
  187. compatible = "amlogic,meson-mx-ao-arc";
  188. reg = <0x1c 0x8>, <0x38 0x8>;
  189. reg-names = "remap", "cpu";
  190. status = "disabled";
  191. };
  192. ir_receiver: ir-receiver@480 {
  193. compatible = "amlogic,meson6-ir";
  194. reg = <0x480 0x20>;
  195. interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
  196. status = "disabled";
  197. };
  198. uart_AO: serial@4c0 {
  199. compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart";
  200. reg = <0x4c0 0x18>;
  201. interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
  202. status = "disabled";
  203. };
  204. i2c_AO: i2c@500 {
  205. compatible = "amlogic,meson6-i2c";
  206. reg = <0x500 0x20>;
  207. interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>;
  208. #address-cells = <1>;
  209. #size-cells = <0>;
  210. status = "disabled";
  211. };
  212. rtc: rtc@740 {
  213. compatible = "amlogic,meson6-rtc";
  214. reg = <0x740 0x14>;
  215. interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
  216. #address-cells = <1>;
  217. #size-cells = <1>;
  218. status = "disabled";
  219. };
  220. };
  221. usb0: usb@c9040000 {
  222. compatible = "snps,dwc2";
  223. #address-cells = <1>;
  224. #size-cells = <0>;
  225. reg = <0xc9040000 0x40000>;
  226. interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  227. phys = <&usb0_phy>;
  228. phy-names = "usb2-phy";
  229. g-rx-fifo-size = <512>;
  230. g-np-tx-fifo-size = <500>;
  231. g-tx-fifo-size = <256 192 128 128 128>;
  232. dr_mode = "host";
  233. status = "disabled";
  234. };
  235. usb1: usb@c90c0000 {
  236. compatible = "snps,dwc2";
  237. #address-cells = <1>;
  238. #size-cells = <0>;
  239. reg = <0xc90c0000 0x40000>;
  240. interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  241. phys = <&usb1_phy>;
  242. phy-names = "usb2-phy";
  243. dr_mode = "host";
  244. status = "disabled";
  245. };
  246. ethmac: ethernet@c9410000 {
  247. compatible = "amlogic,meson6-dwmac", "snps,dwmac";
  248. reg = <0xc9410000 0x10000
  249. 0xc1108108 0x4>;
  250. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  251. interrupt-names = "macirq";
  252. status = "disabled";
  253. };
  254. ahb_sram: sram@d9000000 {
  255. compatible = "mmio-sram";
  256. reg = <0xd9000000 0x20000>;
  257. #address-cells = <1>;
  258. #size-cells = <1>;
  259. ranges = <0 0xd9000000 0x20000>;
  260. };
  261. bootrom: bootrom@d9040000 {
  262. compatible = "amlogic,meson-mx-bootrom", "syscon";
  263. reg = <0xd9040000 0x10000>;
  264. };
  265. secbus: secbus@da000000 {
  266. compatible = "simple-bus";
  267. reg = <0xda000000 0x6000>;
  268. #address-cells = <1>;
  269. #size-cells = <1>;
  270. ranges = <0x0 0xda000000 0x6000>;
  271. efuse: nvmem@0 {
  272. compatible = "amlogic,meson6-efuse";
  273. reg = <0x0 0x2000>;
  274. #address-cells = <1>;
  275. #size-cells = <1>;
  276. };
  277. };
  278. };
  279. thermal_sensor: thermal-sensor {
  280. compatible = "generic-adc-thermal";
  281. #thermal-sensor-cells = <0>;
  282. io-channels = <&saradc 8>;
  283. io-channel-names = "sensor-channel";
  284. };
  285. xtal: xtal-clk {
  286. compatible = "fixed-clock";
  287. clock-frequency = <24000000>;
  288. clock-output-names = "xtal";
  289. #clock-cells = <0>;
  290. };
  291. }; /* end of / */