ox820.dtsi 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * ox820.dtsi - Device tree file for Oxford Semiconductor OX820 SoC
  4. *
  5. * Copyright (C) 2016 Neil Armstrong <[email protected]>
  6. */
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. #include <dt-bindings/clock/oxsemi,ox820.h>
  9. #include <dt-bindings/reset/oxsemi,ox820.h>
  10. / {
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. compatible = "oxsemi,ox820";
  14. cpus {
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. enable-method = "oxsemi,ox820-smp";
  18. cpu@0 {
  19. device_type = "cpu";
  20. compatible = "arm,arm11mpcore";
  21. clocks = <&armclk>;
  22. reg = <0>;
  23. };
  24. cpu@1 {
  25. device_type = "cpu";
  26. compatible = "arm,arm11mpcore";
  27. clocks = <&armclk>;
  28. reg = <1>;
  29. };
  30. };
  31. memory {
  32. device_type = "memory";
  33. /* Max 512MB @ 0x60000000 */
  34. reg = <0x60000000 0x20000000>;
  35. };
  36. clocks {
  37. osc: oscillator {
  38. compatible = "fixed-clock";
  39. #clock-cells = <0>;
  40. clock-frequency = <25000000>;
  41. };
  42. gmacclk: gmacclk {
  43. compatible = "fixed-clock";
  44. #clock-cells = <0>;
  45. clock-frequency = <125000000>;
  46. };
  47. sysclk: sysclk {
  48. compatible = "fixed-factor-clock";
  49. #clock-cells = <0>;
  50. clock-div = <4>;
  51. clock-mult = <1>;
  52. clocks = <&osc>;
  53. };
  54. plla: plla {
  55. compatible = "fixed-clock";
  56. #clock-cells = <0>;
  57. clock-frequency = <850000000>;
  58. };
  59. armclk: armclk {
  60. compatible = "fixed-factor-clock";
  61. #clock-cells = <0>;
  62. clock-div = <2>;
  63. clock-mult = <1>;
  64. clocks = <&plla>;
  65. };
  66. };
  67. soc {
  68. #address-cells = <1>;
  69. #size-cells = <1>;
  70. compatible = "simple-bus";
  71. ranges;
  72. interrupt-parent = <&gic>;
  73. nandc: nand-controller@41000000 {
  74. compatible = "oxsemi,ox820-nand";
  75. reg = <0x41000000 0x100000>;
  76. clocks = <&stdclk CLK_820_NAND>;
  77. resets = <&reset RESET_NAND>;
  78. #address-cells = <1>;
  79. #size-cells = <0>;
  80. status = "disabled";
  81. };
  82. etha: ethernet@40400000 {
  83. compatible = "oxsemi,ox820-dwmac", "snps,dwmac";
  84. reg = <0x40400000 0x2000>;
  85. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
  86. <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  87. interrupt-names = "macirq", "eth_wake_irq";
  88. mac-address = [000000000000]; /* Filled in by U-Boot */
  89. phy-mode = "rgmii";
  90. clocks = <&stdclk CLK_820_ETHA>, <&gmacclk>;
  91. clock-names = "gmac", "stmmaceth";
  92. resets = <&reset RESET_MAC>;
  93. /* Regmap for sys registers */
  94. oxsemi,sys-ctrl = <&sys>;
  95. status = "disabled";
  96. };
  97. apb-bridge@44000000 {
  98. #address-cells = <1>;
  99. #size-cells = <1>;
  100. compatible = "simple-bus";
  101. ranges = <0 0x44000000 0x1000000>;
  102. pinctrl: pinctrl {
  103. compatible = "oxsemi,ox820-pinctrl";
  104. /* Regmap for sys registers */
  105. oxsemi,sys-ctrl = <&sys>;
  106. pinctrl_uart0: uart0 {
  107. uart0 {
  108. pins = "gpio30", "gpio31";
  109. function = "fct5";
  110. };
  111. };
  112. pinctrl_uart0_modem: uart0_modem {
  113. uart0_modem_a {
  114. pins = "gpio24", "gpio24", "gpio26", "gpio27";
  115. function = "fct4";
  116. };
  117. uart0_modem_b {
  118. pins = "gpio28", "gpio29";
  119. function = "fct5";
  120. };
  121. };
  122. pinctrl_uart1: uart1 {
  123. uart1 {
  124. pins = "gpio7", "gpio8";
  125. function = "fct4";
  126. };
  127. };
  128. pinctrl_uart1_modem: uart1_modem {
  129. uart1_modem {
  130. pins = "gpio5", "gpio6", "gpio40", "gpio41", "gpio42", "gpio43";
  131. function = "fct4";
  132. };
  133. };
  134. pinctrl_etha_mdio: etha_mdio {
  135. etha_mdio {
  136. pins = "gpio3", "gpio4";
  137. function = "fct1";
  138. };
  139. };
  140. pinctrl_nand: nand {
  141. nand {
  142. pins = "gpio12", "gpio13", "gpio14", "gpio15",
  143. "gpio16", "gpio17", "gpio18", "gpio19",
  144. "gpio20", "gpio21", "gpio22", "gpio23",
  145. "gpio24";
  146. function = "fct1";
  147. };
  148. };
  149. };
  150. gpio0: gpio@0 {
  151. compatible = "oxsemi,ox820-gpio";
  152. reg = <0x000000 0x100000>;
  153. interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
  154. #gpio-cells = <2>;
  155. gpio-controller;
  156. interrupt-controller;
  157. #interrupt-cells = <2>;
  158. ngpios = <32>;
  159. oxsemi,gpio-bank = <0>;
  160. gpio-ranges = <&pinctrl 0 0 32>;
  161. };
  162. gpio1: gpio@100000 {
  163. compatible = "oxsemi,ox820-gpio";
  164. reg = <0x100000 0x100000>;
  165. interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
  166. #gpio-cells = <2>;
  167. gpio-controller;
  168. interrupt-controller;
  169. #interrupt-cells = <2>;
  170. ngpios = <18>;
  171. oxsemi,gpio-bank = <1>;
  172. gpio-ranges = <&pinctrl 0 32 18>;
  173. };
  174. uart0: serial@200000 {
  175. compatible = "ns16550a";
  176. reg = <0x200000 0x100000>;
  177. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
  178. reg-shift = <0>;
  179. fifo-size = <16>;
  180. reg-io-width = <1>;
  181. current-speed = <115200>;
  182. no-loopback-test;
  183. status = "disabled";
  184. clocks = <&sysclk>;
  185. resets = <&reset RESET_UART1>;
  186. };
  187. uart1: serial@300000 {
  188. compatible = "ns16550a";
  189. reg = <0x200000 0x100000>;
  190. interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
  191. reg-shift = <0>;
  192. fifo-size = <16>;
  193. reg-io-width = <1>;
  194. current-speed = <115200>;
  195. no-loopback-test;
  196. status = "disabled";
  197. clocks = <&sysclk>;
  198. resets = <&reset RESET_UART2>;
  199. };
  200. rps@400000 {
  201. #address-cells = <1>;
  202. #size-cells = <1>;
  203. compatible = "simple-bus";
  204. ranges = <0 0x400000 0x100000>;
  205. intc: interrupt-controller@0 {
  206. compatible = "oxsemi,ox820-rps-irq", "oxsemi,ox810se-rps-irq";
  207. interrupt-controller;
  208. reg = <0 0x200>;
  209. interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
  210. #interrupt-cells = <1>;
  211. valid-mask = <0xffffffff>;
  212. clear-mask = <0xffffffff>;
  213. };
  214. timer0: timer@200 {
  215. compatible = "oxsemi,ox820-rps-timer";
  216. reg = <0x200 0x40>;
  217. clocks = <&sysclk>;
  218. interrupt-parent = <&intc>;
  219. interrupts = <4>;
  220. };
  221. };
  222. sys: sys-ctrl@e00000 {
  223. compatible = "oxsemi,ox820-sys-ctrl", "syscon", "simple-mfd";
  224. reg = <0xe00000 0x200000>;
  225. reset: reset-controller {
  226. compatible = "oxsemi,ox820-reset", "oxsemi,ox810se-reset";
  227. #reset-cells = <1>;
  228. };
  229. stdclk: stdclk {
  230. compatible = "oxsemi,ox820-stdclk", "oxsemi,ox810se-stdclk";
  231. #clock-cells = <1>;
  232. };
  233. };
  234. };
  235. apb-bridge@47000000 {
  236. #address-cells = <1>;
  237. #size-cells = <1>;
  238. compatible = "simple-bus";
  239. ranges = <0 0x47000000 0x1000000>;
  240. scu: scu@0 {
  241. compatible = "arm,arm11mp-scu";
  242. reg = <0x0 0x100>;
  243. };
  244. local-timer@600 {
  245. compatible = "arm,arm11mp-twd-timer";
  246. reg = <0x600 0x20>;
  247. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(3)|IRQ_TYPE_LEVEL_HIGH)>;
  248. clocks = <&armclk>;
  249. };
  250. gic: interrupt-controller@1000 {
  251. compatible = "arm,arm11mp-gic";
  252. interrupt-controller;
  253. #interrupt-cells = <3>;
  254. reg = <0x1000 0x1000>,
  255. <0x100 0x500>;
  256. };
  257. };
  258. };
  259. };