axs10x_mb.dtsi 7.2 KB

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