ox810se.dtsi 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * ox810se.dtsi - Device tree file for Oxford Semiconductor OX810SE SoC
  4. *
  5. * Copyright (C) 2016 Neil Armstrong <[email protected]>
  6. */
  7. #include <dt-bindings/clock/oxsemi,ox810se.h>
  8. #include <dt-bindings/reset/oxsemi,ox810se.h>
  9. / {
  10. #address-cells = <1>;
  11. #size-cells = <1>;
  12. compatible = "oxsemi,ox810se";
  13. cpus {
  14. #address-cells = <0>;
  15. #size-cells = <0>;
  16. cpu {
  17. device_type = "cpu";
  18. compatible = "arm,arm926ej-s";
  19. clocks = <&armclk>;
  20. };
  21. };
  22. memory {
  23. device_type = "memory";
  24. /* Max 256MB @ 0x48000000 */
  25. reg = <0x48000000 0x10000000>;
  26. };
  27. clocks {
  28. osc: oscillator {
  29. compatible = "fixed-clock";
  30. #clock-cells = <0>;
  31. clock-frequency = <25000000>;
  32. };
  33. gmacclk: gmacclk {
  34. compatible = "fixed-clock";
  35. #clock-cells = <0>;
  36. clock-frequency = <125000000>;
  37. };
  38. rpsclk: rpsclk {
  39. compatible = "fixed-factor-clock";
  40. #clock-cells = <0>;
  41. clock-div = <1>;
  42. clock-mult = <1>;
  43. clocks = <&osc>;
  44. };
  45. pll400: pll400 {
  46. compatible = "fixed-clock";
  47. #clock-cells = <0>;
  48. clock-frequency = <733333333>;
  49. };
  50. sysclk: sysclk {
  51. compatible = "fixed-factor-clock";
  52. #clock-cells = <0>;
  53. clock-div = <4>;
  54. clock-mult = <1>;
  55. clocks = <&pll400>;
  56. };
  57. armclk: armclk {
  58. compatible = "fixed-factor-clock";
  59. #clock-cells = <0>;
  60. clock-div = <2>;
  61. clock-mult = <1>;
  62. clocks = <&pll400>;
  63. };
  64. };
  65. soc {
  66. #address-cells = <1>;
  67. #size-cells = <1>;
  68. compatible = "simple-bus";
  69. ranges;
  70. interrupt-parent = <&intc>;
  71. etha: ethernet@40400000 {
  72. compatible = "oxsemi,ox810se-dwmac", "snps,dwmac";
  73. reg = <0x40400000 0x2000>;
  74. interrupts = <8>;
  75. interrupt-names = "macirq";
  76. mac-address = [000000000000]; /* Filled in by U-Boot */
  77. phy-mode = "rgmii";
  78. clocks = <&stdclk 6>, <&gmacclk>;
  79. clock-names = "gmac", "stmmaceth";
  80. resets = <&reset 6>;
  81. /* Regmap for sys registers */
  82. oxsemi,sys-ctrl = <&sys>;
  83. status = "disabled";
  84. };
  85. apb-bridge@44000000 {
  86. #address-cells = <1>;
  87. #size-cells = <1>;
  88. compatible = "simple-bus";
  89. ranges = <0 0x44000000 0x1000000>;
  90. pinctrl: pinctrl {
  91. compatible = "oxsemi,ox810se-pinctrl";
  92. /* Regmap for sys registers */
  93. oxsemi,sys-ctrl = <&sys>;
  94. pinctrl_uart0: uart0 {
  95. uart0a {
  96. pins = "gpio31";
  97. function = "fct3";
  98. };
  99. uart0b {
  100. pins = "gpio32";
  101. function = "fct3";
  102. };
  103. };
  104. pinctrl_uart0_modem: uart0_modem {
  105. uart0c {
  106. pins = "gpio27";
  107. function = "fct3";
  108. };
  109. uart0d {
  110. pins = "gpio28";
  111. function = "fct3";
  112. };
  113. uart0e {
  114. pins = "gpio29";
  115. function = "fct3";
  116. };
  117. uart0f {
  118. pins = "gpio30";
  119. function = "fct3";
  120. };
  121. uart0g {
  122. pins = "gpio33";
  123. function = "fct3";
  124. };
  125. uart0h {
  126. pins = "gpio34";
  127. function = "fct3";
  128. };
  129. };
  130. pinctrl_uart1: uart1 {
  131. uart1a {
  132. pins = "gpio20";
  133. function = "fct3";
  134. };
  135. uart1b {
  136. pins = "gpio22";
  137. function = "fct3";
  138. };
  139. };
  140. pinctrl_uart1_modem: uart1_modem {
  141. uart1c {
  142. pins = "gpio8";
  143. function = "fct3";
  144. };
  145. uart1d {
  146. pins = "gpio9";
  147. function = "fct3";
  148. };
  149. uart1e {
  150. pins = "gpio23";
  151. function = "fct3";
  152. };
  153. uart1f {
  154. pins = "gpio24";
  155. function = "fct3";
  156. };
  157. uart1g {
  158. pins = "gpio25";
  159. function = "fct3";
  160. };
  161. uart1h {
  162. pins = "gpio26";
  163. function = "fct3";
  164. };
  165. };
  166. pinctrl_uart2: uart2 {
  167. uart2a {
  168. pins = "gpio6";
  169. function = "fct3";
  170. };
  171. uart2b {
  172. pins = "gpio7";
  173. function = "fct3";
  174. };
  175. };
  176. pinctrl_uart2_modem: uart2_modem {
  177. uart2c {
  178. pins = "gpio0";
  179. function = "fct3";
  180. };
  181. uart2d {
  182. pins = "gpio1";
  183. function = "fct3";
  184. };
  185. uart2e {
  186. pins = "gpio2";
  187. function = "fct3";
  188. };
  189. uart2f {
  190. pins = "gpio3";
  191. function = "fct3";
  192. };
  193. uart2g {
  194. pins = "gpio4";
  195. function = "fct3";
  196. };
  197. uart2h {
  198. pins = "gpio5";
  199. function = "fct3";
  200. };
  201. };
  202. };
  203. gpio0: gpio@0 {
  204. compatible = "oxsemi,ox810se-gpio";
  205. reg = <0x000000 0x100000>;
  206. interrupts = <21>;
  207. #gpio-cells = <2>;
  208. gpio-controller;
  209. interrupt-controller;
  210. #interrupt-cells = <2>;
  211. ngpios = <32>;
  212. oxsemi,gpio-bank = <0>;
  213. gpio-ranges = <&pinctrl 0 0 32>;
  214. };
  215. gpio1: gpio@100000 {
  216. compatible = "oxsemi,ox810se-gpio";
  217. reg = <0x100000 0x100000>;
  218. interrupts = <22>;
  219. #gpio-cells = <2>;
  220. gpio-controller;
  221. interrupt-controller;
  222. #interrupt-cells = <2>;
  223. ngpios = <3>;
  224. oxsemi,gpio-bank = <1>;
  225. gpio-ranges = <&pinctrl 0 32 3>;
  226. };
  227. uart0: serial@200000 {
  228. compatible = "ns16550a";
  229. reg = <0x200000 0x100000>;
  230. clocks = <&sysclk>;
  231. interrupts = <23>;
  232. reg-shift = <0>;
  233. fifo-size = <16>;
  234. reg-io-width = <1>;
  235. current-speed = <115200>;
  236. no-loopback-test;
  237. status = "disabled";
  238. resets = <&reset RESET_UART1>;
  239. };
  240. uart1: serial@300000 {
  241. compatible = "ns16550a";
  242. reg = <0x300000 0x100000>;
  243. clocks = <&sysclk>;
  244. interrupts = <24>;
  245. reg-shift = <0>;
  246. fifo-size = <16>;
  247. reg-io-width = <1>;
  248. current-speed = <115200>;
  249. no-loopback-test;
  250. status = "disabled";
  251. resets = <&reset RESET_UART2>;
  252. };
  253. uart2: serial@900000 {
  254. compatible = "ns16550a";
  255. reg = <0x900000 0x100000>;
  256. clocks = <&sysclk>;
  257. interrupts = <29>;
  258. reg-shift = <0>;
  259. fifo-size = <16>;
  260. reg-io-width = <1>;
  261. current-speed = <115200>;
  262. no-loopback-test;
  263. status = "disabled";
  264. resets = <&reset RESET_UART3>;
  265. };
  266. uart3: serial@a00000 {
  267. compatible = "ns16550a";
  268. reg = <0xa00000 0x100000>;
  269. clocks = <&sysclk>;
  270. interrupts = <30>;
  271. reg-shift = <0>;
  272. fifo-size = <16>;
  273. reg-io-width = <1>;
  274. current-speed = <115200>;
  275. no-loopback-test;
  276. status = "disabled";
  277. resets = <&reset RESET_UART4>;
  278. };
  279. };
  280. apb-bridge@45000000 {
  281. #address-cells = <1>;
  282. #size-cells = <1>;
  283. compatible = "simple-bus";
  284. ranges = <0 0x45000000 0x1000000>;
  285. sys: sys-ctrl@0 {
  286. compatible = "oxsemi,ox810se-sys-ctrl", "syscon", "simple-mfd";
  287. reg = <0x000000 0x100000>;
  288. reset: reset-controller {
  289. compatible = "oxsemi,ox810se-reset";
  290. #reset-cells = <1>;
  291. };
  292. stdclk: stdclk {
  293. compatible = "oxsemi,ox810se-stdclk";
  294. #clock-cells = <1>;
  295. };
  296. };
  297. rps@300000 {
  298. #address-cells = <1>;
  299. #size-cells = <1>;
  300. compatible = "simple-bus";
  301. ranges = <0 0x300000 0x100000>;
  302. intc: interrupt-controller@0 {
  303. compatible = "oxsemi,ox810se-rps-irq";
  304. interrupt-controller;
  305. reg = <0 0x200>;
  306. #interrupt-cells = <1>;
  307. valid-mask = <0xffffffff>;
  308. clear-mask = <0xffffffff>;
  309. };
  310. timer0: timer@200 {
  311. compatible = "oxsemi,ox810se-rps-timer";
  312. reg = <0x200 0x40>;
  313. clocks = <&rpsclk>;
  314. interrupts = <4 5>;
  315. };
  316. };
  317. };
  318. };
  319. };