meson-gx.dtsi 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  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. };
  70. cpus {
  71. #address-cells = <0x2>;
  72. #size-cells = <0x0>;
  73. cpu0: cpu@0 {
  74. device_type = "cpu";
  75. compatible = "arm,cortex-a53", "arm,armv8";
  76. reg = <0x0 0x0>;
  77. enable-method = "psci";
  78. next-level-cache = <&l2>;
  79. };
  80. cpu1: cpu@1 {
  81. device_type = "cpu";
  82. compatible = "arm,cortex-a53", "arm,armv8";
  83. reg = <0x0 0x1>;
  84. enable-method = "psci";
  85. next-level-cache = <&l2>;
  86. };
  87. cpu2: cpu@2 {
  88. device_type = "cpu";
  89. compatible = "arm,cortex-a53", "arm,armv8";
  90. reg = <0x0 0x2>;
  91. enable-method = "psci";
  92. next-level-cache = <&l2>;
  93. };
  94. cpu3: cpu@3 {
  95. device_type = "cpu";
  96. compatible = "arm,cortex-a53", "arm,armv8";
  97. reg = <0x0 0x3>;
  98. enable-method = "psci";
  99. next-level-cache = <&l2>;
  100. };
  101. l2: l2-cache0 {
  102. compatible = "cache";
  103. };
  104. };
  105. arm-pmu {
  106. compatible = "arm,cortex-a53-pmu";
  107. interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
  108. <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
  109. <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
  110. <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
  111. interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
  112. };
  113. psci {
  114. compatible = "arm,psci-0.2";
  115. method = "smc";
  116. };
  117. timer {
  118. compatible = "arm,armv8-timer";
  119. interrupts = <GIC_PPI 13
  120. (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
  121. <GIC_PPI 14
  122. (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
  123. <GIC_PPI 11
  124. (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
  125. <GIC_PPI 10
  126. (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
  127. };
  128. xtal: xtal-clk {
  129. compatible = "fixed-clock";
  130. clock-frequency = <24000000>;
  131. clock-output-names = "xtal";
  132. #clock-cells = <0>;
  133. };
  134. firmware {
  135. sm: secure-monitor {
  136. compatible = "amlogic,meson-gx-sm", "amlogic,meson-gxbb-sm";
  137. };
  138. };
  139. efuse: efuse {
  140. compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse";
  141. #address-cells = <1>;
  142. #size-cells = <1>;
  143. sn: sn@14 {
  144. reg = <0x14 0x10>;
  145. };
  146. eth_mac: eth_mac@34 {
  147. reg = <0x34 0x10>;
  148. };
  149. bid: bid@46 {
  150. reg = <0x46 0x30>;
  151. };
  152. };
  153. soc {
  154. compatible = "simple-bus";
  155. #address-cells = <2>;
  156. #size-cells = <2>;
  157. ranges;
  158. cbus: cbus@c1100000 {
  159. compatible = "simple-bus";
  160. reg = <0x0 0xc1100000 0x0 0x100000>;
  161. #address-cells = <2>;
  162. #size-cells = <2>;
  163. ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
  164. reset: reset-controller@4404 {
  165. compatible = "amlogic,meson-gx-reset", "amlogic,meson-gxbb-reset";
  166. reg = <0x0 0x04404 0x0 0x20>;
  167. #reset-cells = <1>;
  168. };
  169. uart_A: serial@84c0 {
  170. compatible = "amlogic,meson-uart";
  171. reg = <0x0 0x84c0 0x0 0x14>;
  172. interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
  173. clocks = <&xtal>;
  174. status = "disabled";
  175. };
  176. uart_B: serial@84dc {
  177. compatible = "amlogic,meson-uart";
  178. reg = <0x0 0x84dc 0x0 0x14>;
  179. interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
  180. clocks = <&xtal>;
  181. status = "disabled";
  182. };
  183. i2c_A: i2c@8500 {
  184. compatible = "amlogic,meson-gxbb-i2c";
  185. reg = <0x0 0x08500 0x0 0x20>;
  186. interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
  187. #address-cells = <1>;
  188. #size-cells = <0>;
  189. status = "disabled";
  190. };
  191. pwm_ab: pwm@8550 {
  192. compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
  193. reg = <0x0 0x08550 0x0 0x10>;
  194. #pwm-cells = <3>;
  195. status = "disabled";
  196. };
  197. pwm_cd: pwm@8650 {
  198. compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
  199. reg = <0x0 0x08650 0x0 0x10>;
  200. #pwm-cells = <3>;
  201. status = "disabled";
  202. };
  203. pwm_ef: pwm@86c0 {
  204. compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
  205. reg = <0x0 0x086c0 0x0 0x10>;
  206. #pwm-cells = <3>;
  207. status = "disabled";
  208. };
  209. uart_C: serial@8700 {
  210. compatible = "amlogic,meson-uart";
  211. reg = <0x0 0x8700 0x0 0x14>;
  212. interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
  213. clocks = <&xtal>;
  214. status = "disabled";
  215. };
  216. i2c_B: i2c@87c0 {
  217. compatible = "amlogic,meson-gxbb-i2c";
  218. reg = <0x0 0x087c0 0x0 0x20>;
  219. interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
  220. #address-cells = <1>;
  221. #size-cells = <0>;
  222. status = "disabled";
  223. };
  224. i2c_C: i2c@87e0 {
  225. compatible = "amlogic,meson-gxbb-i2c";
  226. reg = <0x0 0x087e0 0x0 0x20>;
  227. interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
  228. #address-cells = <1>;
  229. #size-cells = <0>;
  230. status = "disabled";
  231. };
  232. watchdog@98d0 {
  233. compatible = "amlogic,meson-gx-wdt", "amlogic,meson-gxbb-wdt";
  234. reg = <0x0 0x098d0 0x0 0x10>;
  235. clocks = <&xtal>;
  236. };
  237. };
  238. gic: interrupt-controller@c4301000 {
  239. compatible = "arm,gic-400";
  240. reg = <0x0 0xc4301000 0 0x1000>,
  241. <0x0 0xc4302000 0 0x2000>,
  242. <0x0 0xc4304000 0 0x2000>,
  243. <0x0 0xc4306000 0 0x2000>;
  244. interrupt-controller;
  245. interrupts = <GIC_PPI 9
  246. (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
  247. #interrupt-cells = <3>;
  248. #address-cells = <0>;
  249. };
  250. aobus: aobus@c8100000 {
  251. compatible = "simple-bus";
  252. reg = <0x0 0xc8100000 0x0 0x100000>;
  253. #address-cells = <2>;
  254. #size-cells = <2>;
  255. ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
  256. uart_AO: serial@4c0 {
  257. compatible = "amlogic,meson-uart";
  258. reg = <0x0 0x004c0 0x0 0x14>;
  259. interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
  260. clocks = <&xtal>;
  261. status = "disabled";
  262. };
  263. ir: ir@580 {
  264. compatible = "amlogic,meson-gxbb-ir";
  265. reg = <0x0 0x00580 0x0 0x40>;
  266. interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
  267. status = "disabled";
  268. };
  269. };
  270. periphs: periphs@c8834000 {
  271. compatible = "simple-bus";
  272. reg = <0x0 0xc8834000 0x0 0x2000>;
  273. #address-cells = <2>;
  274. #size-cells = <2>;
  275. ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
  276. rng {
  277. compatible = "amlogic,meson-rng";
  278. reg = <0x0 0x0 0x0 0x4>;
  279. };
  280. };
  281. hiubus: hiubus@c883c000 {
  282. compatible = "simple-bus";
  283. reg = <0x0 0xc883c000 0x0 0x2000>;
  284. #address-cells = <2>;
  285. #size-cells = <2>;
  286. ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
  287. mailbox: mailbox@404 {
  288. compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu";
  289. reg = <0 0x404 0 0x4c>;
  290. interrupts = <0 208 IRQ_TYPE_EDGE_RISING>,
  291. <0 209 IRQ_TYPE_EDGE_RISING>,
  292. <0 210 IRQ_TYPE_EDGE_RISING>;
  293. #mbox-cells = <1>;
  294. };
  295. };
  296. ethmac: ethernet@c9410000 {
  297. compatible = "amlogic,meson-gx-dwmac", "amlogic,meson-gxbb-dwmac", "snps,dwmac";
  298. reg = <0x0 0xc9410000 0x0 0x10000
  299. 0x0 0xc8834540 0x0 0x4>;
  300. interrupts = <0 8 1>;
  301. interrupt-names = "macirq";
  302. phy-mode = "rgmii";
  303. status = "disabled";
  304. };
  305. apb: apb@d0000000 {
  306. compatible = "simple-bus";
  307. reg = <0x0 0xd0000000 0x0 0x200000>;
  308. #address-cells = <2>;
  309. #size-cells = <2>;
  310. ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
  311. sd_emmc_a: mmc@70000 {
  312. compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  313. reg = <0x0 0x70000 0x0 0x2000>;
  314. interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
  315. status = "disabled";
  316. };
  317. sd_emmc_b: mmc@72000 {
  318. compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  319. reg = <0x0 0x72000 0x0 0x2000>;
  320. interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
  321. status = "disabled";
  322. };
  323. sd_emmc_c: mmc@74000 {
  324. compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
  325. reg = <0x0 0x74000 0x0 0x2000>;
  326. interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
  327. status = "disabled";
  328. };
  329. };
  330. vpu: vpu@d0100000 {
  331. compatible = "amlogic,meson-gx-vpu";
  332. reg = <0x0 0xd0100000 0x0 0x100000>,
  333. <0x0 0xc883c000 0x0 0x1000>,
  334. <0x0 0xc8838000 0x0 0x1000>;
  335. reg-names = "vpu", "hhi", "dmc";
  336. interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
  337. #address-cells = <1>;
  338. #size-cells = <0>;
  339. /* CVBS VDAC output port */
  340. cvbs_vdac_port: port@0 {
  341. reg = <0>;
  342. };
  343. };
  344. };
  345. };