meson-gx.dtsi 9.8 KB

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