axs10x_mb.dtsi 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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. clocks {
  18. i2cclk: i2cclk {
  19. compatible = "fixed-clock";
  20. clock-frequency = <50000000>;
  21. #clock-cells = <0>;
  22. };
  23. apbclk: apbclk {
  24. compatible = "fixed-clock";
  25. clock-frequency = <50000000>;
  26. #clock-cells = <0>;
  27. };
  28. mmcclk: mmcclk {
  29. compatible = "fixed-clock";
  30. clock-frequency = <50000000>;
  31. #clock-cells = <0>;
  32. };
  33. };
  34. ethernet@0x18000 {
  35. #interrupt-cells = <1>;
  36. compatible = "snps,dwmac";
  37. reg = < 0x18000 0x2000 >;
  38. interrupts = < 4 >;
  39. interrupt-names = "macirq";
  40. phy-mode = "rgmii";
  41. snps,pbl = < 32 >;
  42. clocks = <&apbclk>;
  43. clock-names = "stmmaceth";
  44. max-speed = <100>;
  45. };
  46. ehci@0x40000 {
  47. compatible = "generic-ehci";
  48. reg = < 0x40000 0x100 >;
  49. interrupts = < 8 >;
  50. };
  51. ohci@0x60000 {
  52. compatible = "generic-ohci";
  53. reg = < 0x60000 0x100 >;
  54. interrupts = < 8 >;
  55. };
  56. /*
  57. * According to DW Mobile Storage databook it is required
  58. * to use "Hold Register" if card is enumerated in SDR12 or
  59. * SDR25 modes.
  60. *
  61. * Utilization of "Hold Register" is already implemented via
  62. * dw_mci_pltfm_prepare_command() which in its turn gets
  63. * used through dw_mci_drv_data->prepare_command call-back.
  64. * This call-back is used in Altera Socfpga platform and so
  65. * we may reuse it saying that we're compatible with their
  66. * "altr,socfpga-dw-mshc".
  67. *
  68. * Most probably "Hold Register" utilization is platform-
  69. * independent requirement which means that single unified
  70. * "snps,dw-mshc" should be enough for all users of DW MMC once
  71. * dw_mci_pltfm_prepare_command() is used in generic platform
  72. * code.
  73. */
  74. mmc@0x15000 {
  75. compatible = "altr,socfpga-dw-mshc";
  76. reg = < 0x15000 0x400 >;
  77. num-slots = < 1 >;
  78. fifo-depth = < 16 >;
  79. card-detect-delay = < 200 >;
  80. clocks = <&apbclk>, <&mmcclk>;
  81. clock-names = "biu", "ciu";
  82. interrupts = < 7 >;
  83. bus-width = < 4 >;
  84. };
  85. uart@0x20000 {
  86. compatible = "snps,dw-apb-uart";
  87. reg = <0x20000 0x100>;
  88. clock-frequency = <33333333>;
  89. interrupts = <17>;
  90. baud = <115200>;
  91. reg-shift = <2>;
  92. reg-io-width = <4>;
  93. };
  94. uart@0x21000 {
  95. compatible = "snps,dw-apb-uart";
  96. reg = <0x21000 0x100>;
  97. clock-frequency = <33333333>;
  98. interrupts = <18>;
  99. baud = <115200>;
  100. reg-shift = <2>;
  101. reg-io-width = <4>;
  102. };
  103. /* UART muxed with USB data port (ttyS3) */
  104. uart@0x22000 {
  105. compatible = "snps,dw-apb-uart";
  106. reg = <0x22000 0x100>;
  107. clock-frequency = <33333333>;
  108. interrupts = <19>;
  109. baud = <115200>;
  110. reg-shift = <2>;
  111. reg-io-width = <4>;
  112. };
  113. i2c@0x1d000 {
  114. compatible = "snps,designware-i2c";
  115. reg = <0x1d000 0x100>;
  116. clock-frequency = <400000>;
  117. clocks = <&i2cclk>;
  118. interrupts = <14>;
  119. };
  120. i2c@0x1e000 {
  121. compatible = "snps,designware-i2c";
  122. reg = <0x1e000 0x100>;
  123. clock-frequency = <400000>;
  124. clocks = <&i2cclk>;
  125. interrupts = <15>;
  126. };
  127. i2c@0x1f000 {
  128. compatible = "snps,designware-i2c";
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. reg = <0x1f000 0x100>;
  132. clock-frequency = <400000>;
  133. clocks = <&i2cclk>;
  134. interrupts = <16>;
  135. eeprom@0x54{
  136. compatible = "24c01";
  137. reg = <0x54>;
  138. pagesize = <0x8>;
  139. };
  140. eeprom@0x57{
  141. compatible = "24c04";
  142. reg = <0x57>;
  143. pagesize = <0x8>;
  144. };
  145. };
  146. gpio0:gpio@13000 {
  147. compatible = "snps,dw-apb-gpio";
  148. reg = <0x13000 0x1000>;
  149. #address-cells = <1>;
  150. #size-cells = <0>;
  151. gpio0_banka: gpio-controller@0 {
  152. compatible = "snps,dw-apb-gpio-port";
  153. gpio-controller;
  154. #gpio-cells = <2>;
  155. snps,nr-gpios = <32>;
  156. reg = <0>;
  157. };
  158. gpio0_bankb: gpio-controller@1 {
  159. compatible = "snps,dw-apb-gpio-port";
  160. gpio-controller;
  161. #gpio-cells = <2>;
  162. snps,nr-gpios = <8>;
  163. reg = <1>;
  164. };
  165. gpio0_bankc: gpio-controller@2 {
  166. compatible = "snps,dw-apb-gpio-port";
  167. gpio-controller;
  168. #gpio-cells = <2>;
  169. snps,nr-gpios = <8>;
  170. reg = <2>;
  171. };
  172. };
  173. gpio1:gpio@14000 {
  174. compatible = "snps,dw-apb-gpio";
  175. reg = <0x14000 0x1000>;
  176. #address-cells = <1>;
  177. #size-cells = <0>;
  178. gpio1_banka: gpio-controller@0 {
  179. compatible = "snps,dw-apb-gpio-port";
  180. gpio-controller;
  181. #gpio-cells = <2>;
  182. snps,nr-gpios = <30>;
  183. reg = <0>;
  184. };
  185. gpio1_bankb: gpio-controller@1 {
  186. compatible = "snps,dw-apb-gpio-port";
  187. gpio-controller;
  188. #gpio-cells = <2>;
  189. snps,nr-gpios = <10>;
  190. reg = <1>;
  191. };
  192. gpio1_bankc: gpio-controller@2 {
  193. compatible = "snps,dw-apb-gpio-port";
  194. gpio-controller;
  195. #gpio-cells = <2>;
  196. snps,nr-gpios = <8>;
  197. reg = <2>;
  198. };
  199. };
  200. };
  201. };