axs10x_mb.dtsi 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Support for peripherals on the AXS10x mainboard
  4. *
  5. * Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com)
  6. */
  7. / {
  8. aliases {
  9. ethernet = &gmac;
  10. };
  11. axs10x_mb {
  12. compatible = "simple-bus";
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. ranges = <0x00000000 0x0 0xe0000000 0x10000000>;
  16. interrupt-parent = <&mb_intc>;
  17. creg_rst: reset-controller@11220 {
  18. compatible = "snps,axs10x-reset";
  19. #reset-cells = <1>;
  20. reg = <0x11220 0x4>;
  21. };
  22. i2sclk: i2sclk@100a0 {
  23. compatible = "snps,axs10x-i2s-pll-clock";
  24. reg = <0x100a0 0x10>;
  25. clocks = <&i2spll_clk>;
  26. #clock-cells = <0>;
  27. };
  28. clocks {
  29. i2spll_clk: i2spll_clk {
  30. compatible = "fixed-clock";
  31. clock-frequency = <27000000>;
  32. #clock-cells = <0>;
  33. };
  34. i2cclk: i2cclk {
  35. compatible = "fixed-clock";
  36. clock-frequency = <50000000>;
  37. #clock-cells = <0>;
  38. };
  39. apbclk: apbclk {
  40. compatible = "fixed-clock";
  41. clock-frequency = <50000000>;
  42. #clock-cells = <0>;
  43. };
  44. mmcclk: mmcclk {
  45. compatible = "fixed-clock";
  46. /*
  47. * DW sdio controller has external ciu clock divider
  48. * controlled via register in SDIO IP. It divides
  49. * sdio_ref_clk (which comes from CGU) by 16 for
  50. * default. So default mmcclk clock (which comes
  51. * to sdk_in) is 25000000 Hz.
  52. */
  53. clock-frequency = <25000000>;
  54. #clock-cells = <0>;
  55. };
  56. };
  57. pguclk: pguclk@10080 {
  58. compatible = "snps,axs10x-pgu-pll-clock";
  59. reg = <0x10080 0x10>, <0x110 0x10>;
  60. #clock-cells = <0>;
  61. clocks = <&input_clk>;
  62. };
  63. gmac: ethernet@18000 {
  64. #interrupt-cells = <1>;
  65. compatible = "snps,dwmac";
  66. reg = < 0x18000 0x2000 >;
  67. interrupts = < 4 >;
  68. interrupt-names = "macirq";
  69. phy-mode = "rgmii";
  70. snps,pbl = < 32 >;
  71. snps,multicast-filter-bins = <256>;
  72. clocks = <&apbclk>;
  73. clock-names = "stmmaceth";
  74. max-speed = <100>;
  75. resets = <&creg_rst 5>;
  76. reset-names = "stmmaceth";
  77. mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
  78. };
  79. usb@40000 {
  80. compatible = "generic-ehci";
  81. reg = < 0x40000 0x100 >;
  82. interrupts = < 8 >;
  83. };
  84. usb@60000 {
  85. compatible = "generic-ohci";
  86. reg = < 0x60000 0x100 >;
  87. interrupts = < 8 >;
  88. };
  89. /*
  90. * According to DW Mobile Storage databook it is required
  91. * to use "Hold Register" if card is enumerated in SDR12 or
  92. * SDR25 modes.
  93. *
  94. * Utilization of "Hold Register" is already implemented via
  95. * dw_mci_pltfm_prepare_command() which in its turn gets
  96. * used through dw_mci_drv_data->prepare_command call-back.
  97. * This call-back is used in Altera Socfpga platform and so
  98. * we may reuse it saying that we're compatible with their
  99. * "altr,socfpga-dw-mshc".
  100. *
  101. * Most probably "Hold Register" utilization is platform-
  102. * independent requirement which means that single unified
  103. * "snps,dw-mshc" should be enough for all users of DW MMC once
  104. * dw_mci_pltfm_prepare_command() is used in generic platform
  105. * code.
  106. */
  107. mmc@15000 {
  108. compatible = "altr,socfpga-dw-mshc";
  109. reg = < 0x15000 0x400 >;
  110. fifo-depth = < 16 >;
  111. card-detect-delay = < 200 >;
  112. clocks = <&apbclk>, <&mmcclk>;
  113. clock-names = "biu", "ciu";
  114. interrupts = < 7 >;
  115. bus-width = < 4 >;
  116. };
  117. uart@20000 {
  118. compatible = "snps,dw-apb-uart";
  119. reg = <0x20000 0x100>;
  120. clock-frequency = <33333333>;
  121. interrupts = <17>;
  122. baud = <115200>;
  123. reg-shift = <2>;
  124. reg-io-width = <4>;
  125. };
  126. uart@21000 {
  127. compatible = "snps,dw-apb-uart";
  128. reg = <0x21000 0x100>;
  129. clock-frequency = <33333333>;
  130. interrupts = <18>;
  131. baud = <115200>;
  132. reg-shift = <2>;
  133. reg-io-width = <4>;
  134. };
  135. /* UART muxed with USB data port (ttyS3) */
  136. uart@22000 {
  137. compatible = "snps,dw-apb-uart";
  138. reg = <0x22000 0x100>;
  139. clock-frequency = <33333333>;
  140. interrupts = <19>;
  141. baud = <115200>;
  142. reg-shift = <2>;
  143. reg-io-width = <4>;
  144. };
  145. i2c@1d000 {
  146. compatible = "snps,designware-i2c";
  147. reg = <0x1d000 0x100>;
  148. clock-frequency = <400000>;
  149. clocks = <&i2cclk>;
  150. interrupts = <14>;
  151. };
  152. i2s: i2s@1e000 {
  153. compatible = "snps,designware-i2s";
  154. reg = <0x1e000 0x100>;
  155. clocks = <&i2sclk 0>;
  156. clock-names = "i2sclk";
  157. interrupts = <15>;
  158. #sound-dai-cells = <0>;
  159. };
  160. i2c@1f000 {
  161. compatible = "snps,designware-i2c";
  162. #address-cells = <1>;
  163. #size-cells = <0>;
  164. reg = <0x1f000 0x100>;
  165. clock-frequency = <400000>;
  166. clocks = <&i2cclk>;
  167. interrupts = <16>;
  168. adv7511:adv7511@39{
  169. compatible="adi,adv7511";
  170. reg = <0x39>;
  171. interrupts = <23>;
  172. adi,input-depth = <8>;
  173. adi,input-colorspace = "rgb";
  174. adi,input-clock = "1x";
  175. adi,clock-delay = <0x03>;
  176. #sound-dai-cells = <0>;
  177. ports {
  178. #address-cells = <1>;
  179. #size-cells = <0>;
  180. /* RGB/YUV input */
  181. port@0 {
  182. reg = <0>;
  183. adv7511_input:endpoint {
  184. remote-endpoint = <&pgu_output>;
  185. };
  186. };
  187. /* HDMI output */
  188. port@1 {
  189. reg = <1>;
  190. adv7511_output: endpoint {
  191. remote-endpoint = <&hdmi_connector_in>;
  192. };
  193. };
  194. };
  195. };
  196. eeprom@54{
  197. compatible = "atmel,24c01";
  198. reg = <0x54>;
  199. pagesize = <0x8>;
  200. };
  201. eeprom@57{
  202. compatible = "atmel,24c04";
  203. reg = <0x57>;
  204. pagesize = <0x8>;
  205. };
  206. };
  207. hdmi0: connector {
  208. compatible = "hdmi-connector";
  209. type = "a";
  210. port {
  211. hdmi_connector_in: endpoint {
  212. remote-endpoint = <&adv7511_output>;
  213. };
  214. };
  215. };
  216. gpio0:gpio@13000 {
  217. compatible = "snps,dw-apb-gpio";
  218. reg = <0x13000 0x1000>;
  219. #address-cells = <1>;
  220. #size-cells = <0>;
  221. gpio0_banka: gpio-controller@0 {
  222. compatible = "snps,dw-apb-gpio-port";
  223. gpio-controller;
  224. #gpio-cells = <2>;
  225. snps,nr-gpios = <32>;
  226. reg = <0>;
  227. };
  228. gpio0_bankb: gpio-controller@1 {
  229. compatible = "snps,dw-apb-gpio-port";
  230. gpio-controller;
  231. #gpio-cells = <2>;
  232. snps,nr-gpios = <8>;
  233. reg = <1>;
  234. };
  235. gpio0_bankc: gpio-controller@2 {
  236. compatible = "snps,dw-apb-gpio-port";
  237. gpio-controller;
  238. #gpio-cells = <2>;
  239. snps,nr-gpios = <8>;
  240. reg = <2>;
  241. };
  242. };
  243. gpio1:gpio@14000 {
  244. compatible = "snps,dw-apb-gpio";
  245. reg = <0x14000 0x1000>;
  246. #address-cells = <1>;
  247. #size-cells = <0>;
  248. gpio1_banka: gpio-controller@0 {
  249. compatible = "snps,dw-apb-gpio-port";
  250. gpio-controller;
  251. #gpio-cells = <2>;
  252. snps,nr-gpios = <30>;
  253. reg = <0>;
  254. };
  255. gpio1_bankb: gpio-controller@1 {
  256. compatible = "snps,dw-apb-gpio-port";
  257. gpio-controller;
  258. #gpio-cells = <2>;
  259. snps,nr-gpios = <10>;
  260. reg = <1>;
  261. };
  262. gpio1_bankc: gpio-controller@2 {
  263. compatible = "snps,dw-apb-gpio-port";
  264. gpio-controller;
  265. #gpio-cells = <2>;
  266. snps,nr-gpios = <8>;
  267. reg = <2>;
  268. };
  269. };
  270. pgu@17000 {
  271. compatible = "snps,arcpgu";
  272. reg = <0x17000 0x400>;
  273. clocks = <&pguclk>;
  274. clock-names = "pxlclk";
  275. memory-region = <&frame_buffer>;
  276. port {
  277. pgu_output: endpoint {
  278. remote-endpoint = <&adv7511_input>;
  279. };
  280. };
  281. };
  282. sound_playback {
  283. compatible = "simple-audio-card";
  284. simple-audio-card,name = "AXS10x HDMI Audio";
  285. simple-audio-card,format = "i2s";
  286. simple-audio-card,cpu {
  287. sound-dai = <&i2s>;
  288. };
  289. simple-audio-card,codec {
  290. sound-dai = <&adv7511>;
  291. };
  292. };
  293. };
  294. };