at91-sama5d2_xplained.dts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /dts-v1/;
  2. #include "sama5d2.dtsi"
  3. #include "sama5d2-pinfunc.h"
  4. / {
  5. model = "Atmel SAMA5D2 Xplained";
  6. compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
  7. chosen {
  8. stdout-path = &uart1;
  9. };
  10. ahb {
  11. usb1: ohci@00400000 {
  12. num-ports = <3>;
  13. atmel,vbus-gpio = <&pioA 42 0>;
  14. pinctrl-names = "default";
  15. pinctrl-0 = <&pinctrl_usb_default>;
  16. status = "okay";
  17. };
  18. usb2: ehci@00500000 {
  19. status = "okay";
  20. };
  21. sdmmc0: sdio-host@a0000000 {
  22. bus-width = <8>;
  23. pinctrl-names = "default";
  24. pinctrl-0 = <&pinctrl_sdmmc0_cmd_dat_default &pinctrl_sdmmc0_ck_cd_default>;
  25. status = "okay";
  26. };
  27. sdmmc1: sdio-host@b0000000 {
  28. bus-width = <4>;
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&pinctrl_sdmmc1_cmd_dat_default &pinctrl_sdmmc1_ck_cd_default>;
  31. status = "okay"; /* conflict with qspi0 */
  32. };
  33. apb {
  34. qspi0: spi@f0020000 {
  35. status = "okay";
  36. flash@0 {
  37. compatible = "atmel,sama5d2-qspi-flash";
  38. reg = <0>;
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. pinctrl-names = "default";
  42. pinctrl-0 = <&pinctrl_qspi0_default>;
  43. spi-max-frequency = <83000000>;
  44. partition@00000000 {
  45. label = "boot";
  46. reg = <0x00000000 0x00c00000>;
  47. };
  48. partition@00c00000 {
  49. label = "rootfs";
  50. reg = <0x00c00000 0x00000000>;
  51. };
  52. };
  53. };
  54. spi0: spi@f8000000 {
  55. cs-gpios = <&pioA 17 0>, <0>, <0>, <0>;
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&pinctrl_spi0_default>;
  58. status = "okay";
  59. spi_flash@0 {
  60. compatible = "spi-flash";
  61. reg = <0>;
  62. spi-max-frequency = <50000000>;
  63. };
  64. };
  65. macb0: ethernet@f8008000 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
  68. phy-mode = "rmii";
  69. status = "okay";
  70. ethernet-phy@1 {
  71. reg = <0x1>;
  72. };
  73. };
  74. uart1: serial@f8020000 {
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&pinctrl_uart1_default>;
  77. status = "okay";
  78. };
  79. i2c1: i2c@fc028000 {
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&pinctrl_i2c1_default>;
  82. status = "okay";
  83. };
  84. pioA: gpio@fc038000 {
  85. pinctrl {
  86. pinctrl_i2c1_default: i2c1_default {
  87. pinmux = <PIN_PD4__TWD1>,
  88. <PIN_PD5__TWCK1>;
  89. bias-disable;
  90. };
  91. pinctrl_macb0_phy_irq: macb0_phy_irq {
  92. pinmux = <PIN_PC9__GPIO>;
  93. bias-disable;
  94. };
  95. pinctrl_macb0_rmii: macb0_rmii {
  96. pinmux = <PIN_PB14__GTXCK>,
  97. <PIN_PB15__GTXEN>,
  98. <PIN_PB16__GRXDV>,
  99. <PIN_PB17__GRXER>,
  100. <PIN_PB18__GRX0>,
  101. <PIN_PB19__GRX1>,
  102. <PIN_PB20__GTX0>,
  103. <PIN_PB21__GTX1>,
  104. <PIN_PB22__GMDC>,
  105. <PIN_PB23__GMDIO>;
  106. bias-disable;
  107. };
  108. pinctrl_qspi0_default: qspi0_default {
  109. pinmux = <PIN_PA22__QSPI0_SCK>,
  110. <PIN_PA23__QSPI0_CS>,
  111. <PIN_PA24__QSPI0_IO0>,
  112. <PIN_PA25__QSPI0_IO1>,
  113. <PIN_PA26__QSPI0_IO2>,
  114. <PIN_PA27__QSPI0_IO3>;
  115. bias-disable;
  116. };
  117. pinctrl_sdmmc0_cmd_dat_default: sdmmc0_cmd_dat_default {
  118. pinmux = <PIN_PA1__SDMMC0_CMD>,
  119. <PIN_PA2__SDMMC0_DAT0>,
  120. <PIN_PA3__SDMMC0_DAT1>,
  121. <PIN_PA4__SDMMC0_DAT2>,
  122. <PIN_PA5__SDMMC0_DAT3>,
  123. <PIN_PA6__SDMMC0_DAT4>,
  124. <PIN_PA7__SDMMC0_DAT5>,
  125. <PIN_PA8__SDMMC0_DAT6>,
  126. <PIN_PA9__SDMMC0_DAT7>;
  127. bias-pull-up;
  128. };
  129. pinctrl_sdmmc0_ck_cd_default: sdmmc0_ck_cd_default {
  130. pinmux = <PIN_PA0__SDMMC0_CK>,
  131. <PIN_PA10__SDMMC0_RSTN>,
  132. <PIN_PA11__SDMMC0_VDDSEL>,
  133. <PIN_PA13__SDMMC0_CD>;
  134. bias-disable;
  135. };
  136. pinctrl_sdmmc1_cmd_dat_default: sdmmc1_cmd_dat_default {
  137. pinmux = <PIN_PA28__SDMMC1_CMD>,
  138. <PIN_PA18__SDMMC1_DAT0>,
  139. <PIN_PA19__SDMMC1_DAT1>,
  140. <PIN_PA20__SDMMC1_DAT2>,
  141. <PIN_PA21__SDMMC1_DAT3>;
  142. bias-pull-up;
  143. };
  144. pinctrl_sdmmc1_ck_cd_default: sdmmc1_ck_cd_default {
  145. pinmux = <PIN_PA22__SDMMC1_CK>,
  146. <PIN_PA30__SDMMC1_CD>;
  147. bias-disable;
  148. };
  149. pinctrl_spi0_default: spi0_default {
  150. pinmux = <PIN_PA14__SPI0_SPCK>,
  151. <PIN_PA15__SPI0_MOSI>,
  152. <PIN_PA16__SPI0_MISO>;
  153. bias-disable;
  154. };
  155. pinctrl_uart1_default: uart1_default {
  156. pinmux = <PIN_PD2__URXD1>,
  157. <PIN_PD3__UTXD1>;
  158. bias-disable;
  159. };
  160. pinctrl_usb_default: usb_default {
  161. pinmux = <PIN_PB10__GPIO>;
  162. bias-disable;
  163. };
  164. pinctrl_usba_vbus: usba_vbus {
  165. pinmux = <PIN_PA31__GPIO>;
  166. bias-disable;
  167. };
  168. };
  169. };
  170. };
  171. };
  172. };