sama5d3xmb.dtsi 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*
  2. * sama5d3xmb.dts - Device Tree file for SAMA5D3x mother board
  3. *
  4. * Copyright (C) 2013 Atmel,
  5. * 2013 Ludovic Desroches <ludovic.desroches@atmel.com>
  6. *
  7. * Licensed under GPLv2 or later.
  8. */
  9. #include "sama5d3xcm.dtsi"
  10. / {
  11. compatible = "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5";
  12. ahb {
  13. apb {
  14. mmc0: mmc@f0000000 {
  15. pinctrl-names = "default";
  16. pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>;
  17. status = "okay";
  18. slot@0 {
  19. reg = <0>;
  20. bus-width = <4>;
  21. cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
  22. };
  23. };
  24. spi0: spi@f0004000 {
  25. dmas = <0>, <0>; /* Do not use DMA for spi0 */
  26. m25p80@0 {
  27. compatible = "atmel,at25df321a";
  28. spi-max-frequency = <50000000>;
  29. reg = <0>;
  30. };
  31. };
  32. ssc0: ssc@f0008000 {
  33. atmel,clk-from-rk-pin;
  34. };
  35. /*
  36. * i2c0 conflicts with ISI:
  37. * disable it to allow the use of ISI
  38. * can not enable audio when i2c0 disabled
  39. */
  40. i2c0: i2c@f0014000 {
  41. wm8904: wm8904@1a {
  42. compatible = "wm8904";
  43. reg = <0x1a>;
  44. clocks = <&pck0>;
  45. clock-names = "mclk";
  46. };
  47. };
  48. usart1: serial@f0020000 {
  49. dmas = <0>, <0>; /* Do not use DMA for usart1 */
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
  52. status = "okay";
  53. };
  54. isi: isi@f0034000 {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&pinctrl_isi &pinctrl_isi_pck_as_mck &pinctrl_isi_power &pinctrl_isi_reset>;
  57. };
  58. mmc1: mmc@f8000000 {
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
  61. status = "okay";
  62. slot@0 {
  63. reg = <0>;
  64. bus-width = <4>;
  65. cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>;
  66. };
  67. };
  68. adc0: adc@f8018000 {
  69. pinctrl-names = "default";
  70. pinctrl-0 = <
  71. &pinctrl_adc0_adtrg
  72. &pinctrl_adc0_ad0
  73. &pinctrl_adc0_ad1
  74. &pinctrl_adc0_ad2
  75. &pinctrl_adc0_ad3
  76. &pinctrl_adc0_ad4
  77. >;
  78. status = "okay";
  79. };
  80. macb1: ethernet@f802c000 {
  81. phy-mode = "rmii";
  82. #address-cells = <1>;
  83. #size-cells = <0>;
  84. phy0: ethernet-phy@1 {
  85. interrupt-parent = <&pioE>;
  86. interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
  87. reg = <1>;
  88. };
  89. };
  90. pinctrl@fffff200 {
  91. board {
  92. pinctrl_mmc0_cd: mmc0_cd {
  93. atmel,pins =
  94. <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD17 GPIO with pullup deglitch */
  95. };
  96. pinctrl_mmc1_cd: mmc1_cd {
  97. atmel,pins =
  98. <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD18 GPIO with pullup deglitch */
  99. };
  100. pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
  101. atmel,pins =
  102. <AT91_PIOD 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD30 periph B */
  103. };
  104. pinctrl_isi_reset: isi_reset-0 {
  105. atmel,pins =
  106. <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE24 gpio */
  107. };
  108. pinctrl_isi_power: isi_power-0 {
  109. atmel,pins =
  110. <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE29 gpio */
  111. };
  112. pinctrl_usba_vbus: usba_vbus {
  113. atmel,pins =
  114. <AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PD29 GPIO with deglitch */
  115. };
  116. };
  117. };
  118. dbgu: serial@ffffee00 {
  119. dmas = <0>, <0>; /* Do not use DMA for dbgu */
  120. status = "okay";
  121. };
  122. watchdog@fffffe40 {
  123. status = "okay";
  124. };
  125. };
  126. usb0: gadget@00500000 {
  127. atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&pinctrl_usba_vbus>;
  130. status = "okay";
  131. };
  132. usb1: ohci@00600000 {
  133. num-ports = <3>;
  134. atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH
  135. &pioD 26 GPIO_ACTIVE_LOW
  136. &pioD 27 GPIO_ACTIVE_LOW
  137. >;
  138. status = "okay";
  139. };
  140. usb2: ehci@00700000 {
  141. status = "okay";
  142. };
  143. };
  144. sound {
  145. compatible = "atmel,asoc-wm8904";
  146. pinctrl-names = "default";
  147. pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
  148. atmel,model = "wm8904 @ SAMA5D3EK";
  149. atmel,audio-routing =
  150. "Headphone Jack", "HPOUTL",
  151. "Headphone Jack", "HPOUTR",
  152. "IN2L", "Line In Jack",
  153. "IN2R", "Line In Jack",
  154. "MICBIAS", "IN1L",
  155. "IN1L", "Mic";
  156. atmel,ssc-controller = <&ssc0>;
  157. atmel,audio-codec = <&wm8904>;
  158. status = "disabled";
  159. };
  160. };