sama5d3xmb.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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 0>;
  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 0>;
  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. };
  76. pinctrl@fffff200 {
  77. board {
  78. pinctrl_mmc0_cd: mmc0_cd {
  79. atmel,pins =
  80. <3 17 0x0 0x5>; /* PD17 GPIO with pullup deglitch */
  81. };
  82. pinctrl_mmc1_cd: mmc1_cd {
  83. atmel,pins =
  84. <3 18 0x0 0x5>; /* PD18 GPIO with pullup deglitch */
  85. };
  86. pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
  87. atmel,pins =
  88. <3 30 0x2 0x0>; /* PD30 periph B */
  89. };
  90. pinctrl_isi_reset: isi_reset-0 {
  91. atmel,pins =
  92. <4 24 0x0 0x0>; /* PE24 gpio */
  93. };
  94. pinctrl_isi_power: isi_power-0 {
  95. atmel,pins =
  96. <4 29 0x0 0x0>; /* PE29 gpio */
  97. };
  98. pinctrl_usba_vbus: usba_vbus {
  99. atmel,pins =
  100. <3 29 0x0 0x4>; /* PD29 GPIO with deglitch */
  101. };
  102. };
  103. };
  104. dbgu: serial@ffffee00 {
  105. status = "okay";
  106. };
  107. watchdog@fffffe40 {
  108. status = "okay";
  109. };
  110. };
  111. usb0: gadget@00500000 {
  112. atmel,vbus-gpio = <&pioD 29 0>;
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&pinctrl_usba_vbus>;
  115. status = "okay";
  116. };
  117. usb1: ohci@00600000 {
  118. num-ports = <3>;
  119. atmel,vbus-gpio = <&pioD 25 0
  120. &pioD 26 1
  121. &pioD 27 1
  122. >;
  123. status = "okay";
  124. };
  125. usb2: ehci@00700000 {
  126. status = "okay";
  127. };
  128. };
  129. sound {
  130. compatible = "atmel,sama5d3ek-wm8904";
  131. pinctrl-names = "default";
  132. pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
  133. atmel,model = "wm8904 @ SAMA5D3EK";
  134. atmel,audio-routing =
  135. "Headphone Jack", "HPOUTL",
  136. "Headphone Jack", "HPOUTR",
  137. "IN2L", "Line In Jack",
  138. "IN2R", "Line In Jack",
  139. "IN1L", "Mic";
  140. atmel,ssc-controller = <&ssc0>;
  141. atmel,audio-codec = <&wm8904>;
  142. };
  143. };