meson-gx.dtsi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Andreas Färber
  4. *
  5. * Copyright (c) 2016 BayLibre, SAS.
  6. * Author: Neil Armstrong <narmstrong@baylibre.com>
  7. *
  8. * Copyright (c) 2016 Endless Computers, Inc.
  9. * Author: Carlo Caione <carlo@endlessm.com>
  10. */
  11. #include <dt-bindings/gpio/gpio.h>
  12. #include <dt-bindings/interrupt-controller/irq.h>
  13. #include <dt-bindings/interrupt-controller/arm-gic.h>
  14. / {
  15. interrupt-parent = <&gic>;
  16. #address-cells = <2>;
  17. #size-cells = <2>;
  18. reserved-memory {
  19. #address-cells = <2>;
  20. #size-cells = <2>;
  21. ranges;
  22. /* 16 MiB reserved for Hardware ROM Firmware */
  23. hwrom_reserved: hwrom@0 {
  24. reg = <0x0 0x0 0x0 0x1000000>;
  25. no-map;
  26. };
  27. /* 2 MiB reserved for ARM Trusted Firmware (BL31) */
  28. secmon_reserved: secmon@10000000 {
  29. reg = <0x0 0x10000000 0x0 0x200000>;
  30. no-map;
  31. };
  32. /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
  33. secmon_reserved_alt: secmon@5000000 {
  34. reg = <0x0 0x05000000 0x0 0x300000>;
  35. no-map;
  36. };
  37. linux,cma {
  38. compatible = "shared-dma-pool";
  39. reusable;
  40. size = <0x0 0x10000000>;
  41. alignment = <0x0 0x400000>;
  42. linux,cma-default;
  43. };
  44. };
  45. cpus {
  46. #address-cells = <0x2>;
  47. #size-cells = <0x0>;
  48. cpu0: cpu@0 {
  49. device_type = "cpu";
  50. compatible = "arm,cortex-a53", "arm,armv8";
  51. reg = <0x0 0x0>;
  52. enable-method = "psci";
  53. next-level-cache = <&l2>;
  54. clocks = <&scpi_dvfs 0>;
  55. };
  56. cpu1: cpu@1 {
  57. device_type = "cpu";
  58. compatible = "arm,cortex-a53", "arm,armv8";
  59. reg = <0x0 0x1>;
  60. enable-method = "psci";
  61. next-level-cache = <&l2>;
  62. clocks = <&scpi_dvfs 0>;
  63. };
  64. cpu2: cpu@2 {
  65. device_type = "cpu";
  66. compatible = "arm,cortex-a53", "arm,armv8";
  67. reg = <0x0 0x2>;
  68. enable-method = "psci";
  69. next-level-cache = <&l2>;
  70. clocks = <&scpi_dvfs 0>;
  71. };
  72. cpu3: cpu@3 {
  73. device_type = "cpu";
  74. compatible = "arm,cortex-a53", "arm,armv8";
  75. reg = <0x0 0x3>;
  76. enable-method = "psci";
  77. next-level-cache = <&l2>;
  78. clocks = <&scpi_dvfs 0>;
  79. };
  80. l2: l2-cache0 {
  81. compatible = "cache";
  82. };
  83. };
  84. arm-pmu {
  85. compatible = "arm,cortex-a53-pmu";
  86. interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
  87. <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
  88. <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
  89. <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
  90. interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
  91. };
  92. psci {
  93. compatible = "arm,psci-0.2";
  94. method = "smc";
  95. };
  96. timer {
  97. compatible = "arm,armv8-timer";
  98. interrupts = <GIC_PPI 13
  99. (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
  100. <GIC_PPI 14
  101. (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
  102. <GIC_PPI 11
  103. (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
  104. <GIC_PPI 10
  105. (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
  106. };
  107. xtal: xtal-clk {
  108. compatible = "fixed-clock";
  109. clock-frequency = <24000000>;
  110. clock-output-names = "xtal";
  111. #clock-cells = <0>;
  112. };
  113. firmware {
  114. sm: secure-monitor {
  115. compatible = "amlogic,meson-gx-sm", "amlogic,meson-gxbb-sm";
  116. };
  117. };
  118. efuse: efuse {
  119. compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse";
  120. #address-cells = <1>;
  121. #size-cells = <1>;
  122. read-only;
  123. sn: sn@14 {
  124. reg = <0x14 0x10>;
  125. };
  126. eth_mac: eth_mac@34 {
  127. reg = <0x34 0x10>;
  128. };
  129. bid: bid@46 {
  130. reg = <0x46 0x30>;
  131. };
  132. };
  133. scpi {
  134. compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
  135. mboxes = <&mailbox 1 &mailbox 2>;
  136. shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
  137. scpi_clocks: clocks {
  138. compatible = "arm,scpi-clocks";
  139. scpi_dvfs: scpi_clocks@0 {
  140. compatible = "arm,scpi-dvfs-clocks";
  141. #clock-cells = <1>;
  142. clock-indices = <0>;
  143. clock-output-names = "vcpu";
  144. };
  145. };
  146. scpi_sensors: sensors {
  147. compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
  148. #thermal-sensor-cells = <1>;
  149. };
  150. };
  151. soc {
  152. compatible = "simple-bus";
  153. #address-cells = <2>;
  154. #size-cells = <2>;
  155. ranges;
  156. cbus: bus@c1100000 {
  157. compatible = "simple-bus";
  158. reg = <0x0 0xc1100000 0x0 0x100000>;
  159. #address-cells = <2>;
  160. #size-cells = <2>;
  161. ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
  162. gpio_intc: interrupt-controller@9880 {
  163. compatible = "amlogic,meson-gpio-intc";
  164. reg = <0x0 0x9880 0x0 0x10>;
  165. interrupt-controller;
  166. #interrupt-cells = <2>;
  167. amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
  168. status = "disabled";
  169. };
  170. reset: reset-controller@4404 {
  171. compatible = "amlogic,meson-gx-reset", "amlogic,meson-gxbb-reset";
  172. reg = <0x0 0x04404 0x0 0x9c>;
  173. #reset-cells = <1>;
  174. };
  175. uart_A: serial@84c0 {
  176. compatible = "amlogic,meson-gx-uart";
  177. reg = <0x0 0x84c0 0x0 0x18>;
  178. interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
  179. status = "disabled";
  180. };
  181. uart_B: serial@84dc {
  182. compatible = "amlogic,meson-gx-uart";
  183. reg = <0x0 0x84dc 0x0 0x18>;
  184. interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
  185. status = "disabled";
  186. };
  187. i2c_A: i2c@8500 {
  188. compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
  189. reg = <0x0 0x08500 0x0 0x20>;
  190. interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
  191. #address-cells = <1>;
  192. #size-cells = <0>;
  193. status = "disabled";
  194. };
  195. pwm_ab: pwm@8550 {
  196. compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
  197. reg = <0x0 0x08550 0x0 0x10>;
  198. #pwm-cells = <3>;
  199. status = "disabled";
  200. };
  201. pwm_cd: pwm@8650 {
  202. compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
  203. reg = <0x0 0x08650 0x0 0x10>;
  204. #pwm-cells = <3>;
  205. status = "disabled";
  206. };
  207. saradc: adc@8680 {
  208. compatible = "amlogic,meson-saradc";
  209. reg = <0x0 0x8680 0x0 0x34>;
  210. #io-channel-cells = <1>;
  211. interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
  212. status = "disabled";
  213. };
  214. pwm_ef: pwm@86c0 {
  215. compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
  216. reg = <0x0 0x086c0 0x0 0x10>;
  217. #pwm-cells = <3>;
  218. status = "disabled";
  219. };
  220. uart_C: serial@8700 {
  221. compatible = "amlogic,meson-gx-uart";
  222. reg = <0x0 0x8700 0x0 0x18>;
  223. interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
  224. status = "disabled";
  225. };
  226. i2c_B: i2c@87c0 {
  227. compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
  228. reg = <0x0 0x087c0 0x0 0x20>;
  229. interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
  230. #address-cells = <1>;
  231. #size-cells = <0>;
  232. status = "disabled";
  233. };
  234. i2c_C: i2c@87e0 {
  235. compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
  236. reg = <0x0 0x087e0 0x0 0x20>;
  237. interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
  238. #address-cells = <1>;
  239. #size-cells = <0>;
  240. status = "disabled";
  241. };
  242. spicc: spi@8d80 {
  243. compatible = "amlogic,meson-gx-spicc";
  244. reg = <0x0 0x08d80 0x0 0x80>;
  245. interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
  246. #address-cells = <1>;
  247. #size-cells = <0>;
  248. status = "disabled";
  249. };
  250. spifc: spi@8c80 {
  251. compatible = "amlogic,meson-gx-spifc", "amlogic,meson-gxbb-spifc";
  252. reg = <0x0 0x08c80 0x0 0x80>;
  253. #address-cells = <1>;
  254. #size-cells = <0>;
  255. status = "disabled";
  256. };
  257. watchdog@98d0 {
  258. compatible = "amlogic,meson-gx-wdt", "amlogic,meson-gxbb-wdt";
  259. reg = <0x0 0x098d0 0x0 0x10>;
  260. clocks = <&xtal>;
  261. };
  262. };
  263. gic: interrupt-controller@c4301000 {
  264. compatible = "arm,gic-400";
  265. reg = <0x0 0xc4301000 0 0x1000>,
  266. <0x0 0xc4302000 0 0x2000>,
  267. <0x0 0xc4304000 0 0x2000>,
  268. <0x0 0xc4306000 0 0x2000>;
  269. interrupt-controller;
  270. interrupts = <GIC_PPI 9
  271. (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
  272. #interrupt-cells = <3>;
  273. #address-cells = <0>;
  274. };
  275. sram: sram@c8000000 {
  276. compatible = "amlogic,meson-gx-sram", "amlogic,meson-gxbb-sram", "mmio-sram";
  277. reg = <0x0 0xc8000000 0x0 0x14000>;
  278. #address-cells = <1>;
  279. #size-cells = <1>;
  280. ranges = <0 0x0 0xc8000000 0x14000>;
  281. cpu_scp_lpri: scp-shmem@0 {
  282. compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
  283. reg = <0x13000 0x400>;
  284. };
  285. cpu_scp_hpri: scp-shmem@200 {
  286. compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
  287. reg = <0x13400 0x400>;
  288. };
  289. };
  290. aobus: bus@c8100000 {
  291. compatible = "simple-bus";
  292. reg = <0x0 0xc8100000 0x0 0x100000>;
  293. #address-cells = <2>;
  294. #size-cells = <2>;
  295. ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
  296. sysctrl_AO: sys-ctrl@0 {
  297. compatible = "amlogic,meson-gx-ao-sysctrl", "simple-mfd", "syscon";
  298. reg = <0x0 0x0 0x0 0x100>;
  299. pwrc_vpu: power-controller-vpu {
  300. compatible = "amlogic,meson-gx-pwrc-vpu";
  301. #power-domain-cells = <0>;
  302. amlogic,hhi-sysctrl = <&sysctrl>;
  303. };
  304. clkc_AO: clock-controller {
  305. compatible = "amlogic,meson-gx-aoclkc";
  306. #clock-cells = <1>;
  307. #reset-cells = <1>;
  308. };
  309. };
  310. cec_AO: cec@100 {
  311. compatible = "amlogic,meson-gx-ao-cec";
  312. reg = <0x0 0x00100 0x0 0x14>;
  313. interrupts = <GIC_SPI 199 IRQ_TYPE_EDGE_RISING>;
  314. };
  315. sec_AO: ao-secure@140 {
  316. compatible = "amlogic,meson-gx-ao-secure", "syscon";
  317. reg = <0x0 0x140 0x0 0x140>;
  318. amlogic,has-chip-id;
  319. };
  320. uart_AO: serial@4c0 {
  321. compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
  322. reg = <0x0 0x004c0 0x0 0x18>;
  323. interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
  324. status = "disabled";
  325. };
  326. uart_AO_B: serial@4e0 {
  327. compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
  328. reg = <0x0 0x004e0 0x0 0x18>;
  329. interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
  330. status = "disabled";
  331. };
  332. i2c_AO: i2c@500 {
  333. compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
  334. reg = <0x0 0x500 0x0 0x20>;
  335. interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
  336. #address-cells = <1>;
  337. #size-cells = <0>;
  338. status = "disabled";
  339. };
  340. pwm_AO_ab: pwm@550 {
  341. compatible = "amlogic,meson-gx-ao-pwm", "amlogic,meson-gxbb-ao-pwm";
  342. reg = <0x0 0x00550 0x0 0x10>;
  343. #pwm-cells = <3>;
  344. status = "disabled";
  345. };
  346. ir: ir@580 {
  347. compatible = "amlogic,meson-gx-ir", "amlogic,meson-gxbb-ir";
  348. reg = <0x0 0x00580 0x0 0x40>;
  349. interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
  350. status = "disabled";
  351. };
  352. };
  353. periphs: periphs@c8834000 {
  354. compatible = "simple-bus";
  355. reg = <0x0 0xc8834000 0x0 0x2000>;
  356. #address-cells = <2>;
  357. #size-cells = <2>;
  358. ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
  359. hwrng: rng {
  360. compatible = "amlogic,meson-rng";
  361. reg = <0x0 0x0 0x0 0x4>;
  362. };
  363. };
  364. dmcbus: bus@c8838000 {
  365. compatible = "simple-bus";
  366. reg = <0x0 0xc8838000 0x0 0x400>;
  367. #address-cells = <2>;
  368. #size-cells = <2>;
  369. ranges = <0x0 0x0 0x0 0xc8838000 0x0 0x400>;
  370. canvas: video-lut@48 {
  371. compatible = "amlogic,canvas";
  372. reg = <0x0 0x48 0x0 0x14>;
  373. };
  374. };
  375. hiubus: bus@c883c000 {
  376. compatible = "simple-bus";
  377. reg = <0x0 0xc883c000 0x0 0x2000>;
  378. #address-cells = <2>;
  379. #size-cells = <2>;
  380. ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
  381. sysctrl: system-controller@0 {
  382. compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon";
  383. reg = <0 0 0 0x400>;
  384. };
  385. mailbox: mailbox@404 {
  386. compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu";
  387. reg = <0 0x404 0 0x4c>;
  388. interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
  389. <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
  390. <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
  391. #mbox-cells = <1>;
  392. };
  393. };
  394. ethmac: ethernet@c9410000 {
  395. compatible = "amlogic,meson-gx-dwmac", "amlogic,meson-gxbb-dwmac", "snps,dwmac";
  396. reg = <0x0 0xc9410000 0x0 0x10000
  397. 0x0 0xc8834540 0x0 0x4>;
  398. interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
  399. interrupt-names = "macirq";
  400. status = "disabled";
  401. };
  402. apb: apb@d0000000 {
  403. compatible = "simple-bus";
  404. reg = <0x0 0xd0000000 0x0 0x200000>;
  405. #address-cells = <2>;
  406. #size-cells = <2>;
  407. ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
  408. sd_emmc_a: mmc@70000 {
  409. compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  410. reg = <0x0 0x70000 0x0 0x800>;
  411. interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
  412. status = "disabled";
  413. };
  414. sd_emmc_b: mmc@72000 {
  415. compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  416. reg = <0x0 0x72000 0x0 0x800>;
  417. interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
  418. status = "disabled";
  419. };
  420. sd_emmc_c: mmc@74000 {
  421. compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  422. reg = <0x0 0x74000 0x0 0x800>;
  423. interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
  424. status = "disabled";
  425. };
  426. };
  427. vpu: vpu@d0100000 {
  428. compatible = "amlogic,meson-gx-vpu";
  429. reg = <0x0 0xd0100000 0x0 0x100000>,
  430. <0x0 0xc883c000 0x0 0x1000>,
  431. <0x0 0xc8838000 0x0 0x1000>;
  432. reg-names = "vpu", "hhi", "dmc";
  433. interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
  434. #address-cells = <1>;
  435. #size-cells = <0>;
  436. /* CVBS VDAC output port */
  437. cvbs_vdac_port: port@0 {
  438. reg = <0>;
  439. };
  440. /* HDMI-TX output port */
  441. hdmi_tx_port: port@1 {
  442. reg = <1>;
  443. hdmi_tx_out: endpoint {
  444. remote-endpoint = <&hdmi_tx_in>;
  445. };
  446. };
  447. };
  448. hdmi_tx: hdmi-tx@c883a000 {
  449. compatible = "amlogic,meson-gx-dw-hdmi";
  450. reg = <0x0 0xc883a000 0x0 0x1c>;
  451. interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
  452. #address-cells = <1>;
  453. #size-cells = <0>;
  454. status = "disabled";
  455. /* VPU VENC Input */
  456. hdmi_tx_venc_port: port@0 {
  457. reg = <0>;
  458. hdmi_tx_in: endpoint {
  459. remote-endpoint = <&hdmi_tx_out>;
  460. };
  461. };
  462. /* TMDS Output */
  463. hdmi_tx_tmds_port: port@1 {
  464. reg = <1>;
  465. };
  466. };
  467. };
  468. };