meson-gx.dtsi 15 KB

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