sama5d3xmb.dtsi 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. m25p80@0 {
  26. compatible = "atmel,at25df321a";
  27. spi-max-frequency = <50000000>;
  28. reg = <0>;
  29. };
  30. };
  31. /*
  32. * i2c0 conflicts with ISI:
  33. * disable it to allow the use of ISI
  34. * can not enable audio when i2c0 disabled
  35. */
  36. i2c0: i2c@f0014000 {
  37. wm8904: wm8904@1a {
  38. compatible = "wm8904";
  39. reg = <0x1a>;
  40. };
  41. };
  42. usart1: serial@f0020000 {
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
  45. status = "okay";
  46. };
  47. isi: isi@f0034000 {
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&pinctrl_isi &pinctrl_isi_pck_as_mck &pinctrl_isi_power &pinctrl_isi_reset>;
  50. };
  51. mmc1: mmc@f8000000 {
  52. pinctrl-names = "default";
  53. pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
  54. status = "okay";
  55. slot@0 {
  56. reg = <0>;
  57. bus-width = <4>;
  58. cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>;
  59. };
  60. };
  61. adc0: adc@f8018000 {
  62. pinctrl-names = "default";
  63. pinctrl-0 = <
  64. &pinctrl_adc0_adtrg
  65. &pinctrl_adc0_ad0
  66. &pinctrl_adc0_ad1
  67. &pinctrl_adc0_ad2
  68. &pinctrl_adc0_ad3
  69. &pinctrl_adc0_ad4
  70. >;
  71. status = "okay";
  72. };
  73. macb1: ethernet@f802c000 {
  74. phy-mode = "rmii";
  75. #address-cells = <1>;
  76. #size-cells = <0>;
  77. phy0: ethernet-phy@1 {
  78. interrupt-parent = <&pioE>;
  79. interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
  80. reg = <1>;
  81. };
  82. };
  83. pinctrl@fffff200 {
  84. board {
  85. pinctrl_mmc0_cd: mmc0_cd {
  86. atmel,pins =
  87. <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD17 GPIO with pullup deglitch */
  88. };
  89. pinctrl_mmc1_cd: mmc1_cd {
  90. atmel,pins =
  91. <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD18 GPIO with pullup deglitch */
  92. };
  93. pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
  94. atmel,pins =
  95. <AT91_PIOD 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD30 periph B */
  96. };
  97. pinctrl_isi_reset: isi_reset-0 {
  98. atmel,pins =
  99. <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE24 gpio */
  100. };
  101. pinctrl_isi_power: isi_power-0 {
  102. atmel,pins =
  103. <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE29 gpio */
  104. };
  105. pinctrl_usba_vbus: usba_vbus {
  106. atmel,pins =
  107. <AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PD29 GPIO with deglitch */
  108. };
  109. };
  110. };
  111. dbgu: serial@ffffee00 {
  112. status = "okay";
  113. };
  114. watchdog@fffffe40 {
  115. status = "okay";
  116. };
  117. };
  118. usb0: gadget@00500000 {
  119. atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
  120. pinctrl-names = "default";
  121. pinctrl-0 = <&pinctrl_usba_vbus>;
  122. status = "okay";
  123. };
  124. usb1: ohci@00600000 {
  125. num-ports = <3>;
  126. atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH
  127. &pioD 26 GPIO_ACTIVE_LOW
  128. &pioD 27 GPIO_ACTIVE_LOW
  129. >;
  130. status = "okay";
  131. };
  132. usb2: ehci@00700000 {
  133. status = "okay";
  134. };
  135. };
  136. sound {
  137. compatible = "atmel,sama5d3ek-wm8904";
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
  140. atmel,model = "wm8904 @ SAMA5D3EK";
  141. atmel,audio-routing =
  142. "Headphone Jack", "HPOUTL",
  143. "Headphone Jack", "HPOUTR",
  144. "IN2L", "Line In Jack",
  145. "IN2R", "Line In Jack",
  146. "IN1L", "Mic";
  147. atmel,ssc-controller = <&ssc0>;
  148. atmel,audio-codec = <&wm8904>;
  149. };
  150. };