axs10x_mb.dtsi 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. axs10x_mb {
  12. compatible = "simple-bus";
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. ranges = <0x00000000 0xe0000000 0x10000000>;
  16. interrupt-parent = <&mb_intc>;
  17. i2sclk: i2sclk@100a0 {
  18. compatible = "snps,axs10x-i2s-pll-clock";
  19. reg = <0x100a0 0x10>;
  20. clocks = <&i2spll_clk>;
  21. #clock-cells = <0>;
  22. };
  23. clocks {
  24. i2spll_clk: i2spll_clk {
  25. compatible = "fixed-clock";
  26. clock-frequency = <27000000>;
  27. #clock-cells = <0>;
  28. };
  29. i2cclk: i2cclk {
  30. compatible = "fixed-clock";
  31. clock-frequency = <50000000>;
  32. #clock-cells = <0>;
  33. };
  34. apbclk: apbclk {
  35. compatible = "fixed-clock";
  36. clock-frequency = <50000000>;
  37. #clock-cells = <0>;
  38. };
  39. mmcclk: mmcclk {
  40. compatible = "fixed-clock";
  41. clock-frequency = <50000000>;
  42. #clock-cells = <0>;
  43. };
  44. pguclk: pguclk {
  45. #clock-cells = <0>;
  46. compatible = "fixed-clock";
  47. clock-frequency = <74440000>;
  48. };
  49. };
  50. ethernet@0x18000 {
  51. #interrupt-cells = <1>;
  52. compatible = "snps,dwmac";
  53. reg = < 0x18000 0x2000 >;
  54. interrupts = < 4 >;
  55. interrupt-names = "macirq";
  56. phy-mode = "rgmii";
  57. snps,pbl = < 32 >;
  58. clocks = <&apbclk>;
  59. clock-names = "stmmaceth";
  60. max-speed = <100>;
  61. };
  62. ehci@0x40000 {
  63. compatible = "generic-ehci";
  64. reg = < 0x40000 0x100 >;
  65. interrupts = < 8 >;
  66. };
  67. ohci@0x60000 {
  68. compatible = "generic-ohci";
  69. reg = < 0x60000 0x100 >;
  70. interrupts = < 8 >;
  71. };
  72. /*
  73. * According to DW Mobile Storage databook it is required
  74. * to use "Hold Register" if card is enumerated in SDR12 or
  75. * SDR25 modes.
  76. *
  77. * Utilization of "Hold Register" is already implemented via
  78. * dw_mci_pltfm_prepare_command() which in its turn gets
  79. * used through dw_mci_drv_data->prepare_command call-back.
  80. * This call-back is used in Altera Socfpga platform and so
  81. * we may reuse it saying that we're compatible with their
  82. * "altr,socfpga-dw-mshc".
  83. *
  84. * Most probably "Hold Register" utilization is platform-
  85. * independent requirement which means that single unified
  86. * "snps,dw-mshc" should be enough for all users of DW MMC once
  87. * dw_mci_pltfm_prepare_command() is used in generic platform
  88. * code.
  89. */
  90. mmc@0x15000 {
  91. compatible = "altr,socfpga-dw-mshc";
  92. reg = < 0x15000 0x400 >;
  93. num-slots = < 1 >;
  94. fifo-depth = < 16 >;
  95. card-detect-delay = < 200 >;
  96. clocks = <&apbclk>, <&mmcclk>;
  97. clock-names = "biu", "ciu";
  98. interrupts = < 7 >;
  99. bus-width = < 4 >;
  100. };
  101. uart@0x20000 {
  102. compatible = "snps,dw-apb-uart";
  103. reg = <0x20000 0x100>;
  104. clock-frequency = <33333333>;
  105. interrupts = <17>;
  106. baud = <115200>;
  107. reg-shift = <2>;
  108. reg-io-width = <4>;
  109. };
  110. uart@0x21000 {
  111. compatible = "snps,dw-apb-uart";
  112. reg = <0x21000 0x100>;
  113. clock-frequency = <33333333>;
  114. interrupts = <18>;
  115. baud = <115200>;
  116. reg-shift = <2>;
  117. reg-io-width = <4>;
  118. };
  119. /* UART muxed with USB data port (ttyS3) */
  120. uart@0x22000 {
  121. compatible = "snps,dw-apb-uart";
  122. reg = <0x22000 0x100>;
  123. clock-frequency = <33333333>;
  124. interrupts = <19>;
  125. baud = <115200>;
  126. reg-shift = <2>;
  127. reg-io-width = <4>;
  128. };
  129. i2c@0x1d000 {
  130. compatible = "snps,designware-i2c";
  131. reg = <0x1d000 0x100>;
  132. clock-frequency = <400000>;
  133. clocks = <&i2cclk>;
  134. interrupts = <14>;
  135. };
  136. i2c@0x1e000 {
  137. compatible = "snps,designware-i2c";
  138. reg = <0x1e000 0x100>;
  139. clock-frequency = <400000>;
  140. clocks = <&i2cclk>;
  141. interrupts = <15>;
  142. };
  143. i2c@0x1f000 {
  144. compatible = "snps,designware-i2c";
  145. #address-cells = <1>;
  146. #size-cells = <0>;
  147. reg = <0x1f000 0x100>;
  148. clock-frequency = <400000>;
  149. clocks = <&i2cclk>;
  150. interrupts = <16>;
  151. adv7511:adv7511@39{
  152. compatible="adi,adv7511";
  153. reg = <0x39>;
  154. interrupts = <23>;
  155. adi,input-depth = <8>;
  156. adi,input-colorspace = "rgb";
  157. adi,input-clock = "1x";
  158. adi,clock-delay = <0x03>;
  159. ports {
  160. #address-cells = <1>;
  161. #size-cells = <0>;
  162. /* RGB/YUV input */
  163. port@0 {
  164. reg = <0>;
  165. adv7511_input:endpoint {
  166. remote-endpoint = <&pgu_output>;
  167. };
  168. };
  169. /* HDMI output */
  170. port@1 {
  171. reg = <1>;
  172. adv7511_output: endpoint {
  173. remote-endpoint = <&hdmi_connector_in>;
  174. };
  175. };
  176. };
  177. };
  178. eeprom@0x54{
  179. compatible = "24c01";
  180. reg = <0x54>;
  181. pagesize = <0x8>;
  182. };
  183. eeprom@0x57{
  184. compatible = "24c04";
  185. reg = <0x57>;
  186. pagesize = <0x8>;
  187. };
  188. };
  189. hdmi0: connector {
  190. compatible = "hdmi-connector";
  191. type = "a";
  192. port {
  193. hdmi_connector_in: endpoint {
  194. remote-endpoint = <&adv7511_output>;
  195. };
  196. };
  197. };
  198. gpio0:gpio@13000 {
  199. compatible = "snps,dw-apb-gpio";
  200. reg = <0x13000 0x1000>;
  201. #address-cells = <1>;
  202. #size-cells = <0>;
  203. gpio0_banka: gpio-controller@0 {
  204. compatible = "snps,dw-apb-gpio-port";
  205. gpio-controller;
  206. #gpio-cells = <2>;
  207. snps,nr-gpios = <32>;
  208. reg = <0>;
  209. };
  210. gpio0_bankb: gpio-controller@1 {
  211. compatible = "snps,dw-apb-gpio-port";
  212. gpio-controller;
  213. #gpio-cells = <2>;
  214. snps,nr-gpios = <8>;
  215. reg = <1>;
  216. };
  217. gpio0_bankc: gpio-controller@2 {
  218. compatible = "snps,dw-apb-gpio-port";
  219. gpio-controller;
  220. #gpio-cells = <2>;
  221. snps,nr-gpios = <8>;
  222. reg = <2>;
  223. };
  224. };
  225. gpio1:gpio@14000 {
  226. compatible = "snps,dw-apb-gpio";
  227. reg = <0x14000 0x1000>;
  228. #address-cells = <1>;
  229. #size-cells = <0>;
  230. gpio1_banka: gpio-controller@0 {
  231. compatible = "snps,dw-apb-gpio-port";
  232. gpio-controller;
  233. #gpio-cells = <2>;
  234. snps,nr-gpios = <30>;
  235. reg = <0>;
  236. };
  237. gpio1_bankb: gpio-controller@1 {
  238. compatible = "snps,dw-apb-gpio-port";
  239. gpio-controller;
  240. #gpio-cells = <2>;
  241. snps,nr-gpios = <10>;
  242. reg = <1>;
  243. };
  244. gpio1_bankc: gpio-controller@2 {
  245. compatible = "snps,dw-apb-gpio-port";
  246. gpio-controller;
  247. #gpio-cells = <2>;
  248. snps,nr-gpios = <8>;
  249. reg = <2>;
  250. };
  251. };
  252. pgu@17000 {
  253. compatible = "snps,arcpgu";
  254. reg = <0x17000 0x400>;
  255. encoder-slave = <&adv7511>;
  256. clocks = <&pguclk>;
  257. clock-names = "pxlclk";
  258. memory-region = <&frame_buffer>;
  259. port {
  260. pgu_output: endpoint {
  261. remote-endpoint = <&adv7511_input>;
  262. };
  263. };
  264. };
  265. };
  266. };