at91sam9g20ek_common.dtsi 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. /*
  2. * at91sam9g20ek_common.dtsi - Device Tree file for Atmel at91sam9g20ek board
  3. *
  4. * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  5. *
  6. * Licensed under GPLv2.
  7. */
  8. #include "at91sam9g20.dtsi"
  9. / {
  10. chosen {
  11. bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
  12. };
  13. memory {
  14. reg = <0x20000000 0x4000000>;
  15. };
  16. clocks {
  17. #address-cells = <1>;
  18. #size-cells = <1>;
  19. ranges;
  20. main_clock: clock@0 {
  21. compatible = "atmel,osc", "fixed-clock";
  22. clock-frequency = <18432000>;
  23. };
  24. };
  25. ahb {
  26. apb {
  27. pinctrl@fffff400 {
  28. board {
  29. pinctrl_pck0_as_mck: pck0_as_mck {
  30. atmel,pins =
  31. <AT91_PIOC 1 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC1 periph B */
  32. };
  33. };
  34. mmc0_slot1 {
  35. pinctrl_board_mmc0_slot1: mmc0_slot1-board {
  36. atmel,pins =
  37. <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC9 gpio CD pin pull up and deglitch */
  38. };
  39. };
  40. };
  41. dbgu: serial@fffff200 {
  42. status = "okay";
  43. };
  44. usart0: serial@fffb0000 {
  45. pinctrl-0 =
  46. <&pinctrl_usart0
  47. &pinctrl_usart0_rts
  48. &pinctrl_usart0_cts
  49. &pinctrl_usart0_dtr_dsr
  50. &pinctrl_usart0_dcd
  51. &pinctrl_usart0_ri>;
  52. status = "okay";
  53. };
  54. usart1: serial@fffb4000 {
  55. status = "okay";
  56. };
  57. macb0: ethernet@fffc4000 {
  58. phy-mode = "rmii";
  59. status = "okay";
  60. };
  61. usb1: gadget@fffa4000 {
  62. atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
  63. status = "okay";
  64. };
  65. mmc0: mmc@fffa8000 {
  66. pinctrl-0 = <
  67. &pinctrl_board_mmc0_slot1
  68. &pinctrl_mmc0_clk
  69. &pinctrl_mmc0_slot1_cmd_dat0
  70. &pinctrl_mmc0_slot1_dat1_3>;
  71. status = "okay";
  72. slot@1 {
  73. reg = <1>;
  74. bus-width = <4>;
  75. cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
  76. };
  77. };
  78. ssc0: ssc@fffbc000 {
  79. status = "okay";
  80. pinctrl-0 = <&pinctrl_ssc0_tx>;
  81. };
  82. spi0: spi@fffc8000 {
  83. cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
  84. mtd_dataflash@0 {
  85. compatible = "atmel,at45", "atmel,dataflash";
  86. spi-max-frequency = <50000000>;
  87. reg = <1>;
  88. };
  89. };
  90. watchdog@fffffd40 {
  91. status = "okay";
  92. };
  93. };
  94. nand0: nand@40000000 {
  95. nand-bus-width = <8>;
  96. nand-ecc-mode = "soft";
  97. nand-on-flash-bbt;
  98. status = "okay";
  99. at91bootstrap@0 {
  100. label = "at91bootstrap";
  101. reg = <0x0 0x20000>;
  102. };
  103. barebox@20000 {
  104. label = "barebox";
  105. reg = <0x20000 0x40000>;
  106. };
  107. bareboxenv@60000 {
  108. label = "bareboxenv";
  109. reg = <0x60000 0x20000>;
  110. };
  111. bareboxenv2@80000 {
  112. label = "bareboxenv2";
  113. reg = <0x80000 0x20000>;
  114. };
  115. oftree@80000 {
  116. label = "oftree";
  117. reg = <0xa0000 0x20000>;
  118. };
  119. kernel@a0000 {
  120. label = "kernel";
  121. reg = <0xc0000 0x400000>;
  122. };
  123. rootfs@4a0000 {
  124. label = "rootfs";
  125. reg = <0x4c0000 0x7800000>;
  126. };
  127. data@7ca0000 {
  128. label = "data";
  129. reg = <0x7cc0000 0x8340000>;
  130. };
  131. };
  132. usb0: ohci@00500000 {
  133. num-ports = <2>;
  134. status = "okay";
  135. };
  136. };
  137. i2c@0 {
  138. status = "okay";
  139. 24c512@50 {
  140. compatible = "24c512";
  141. reg = <0x50>;
  142. };
  143. wm8731: wm8731@1b {
  144. compatible = "wm8731";
  145. reg = <0x1b>;
  146. };
  147. };
  148. gpio_keys {
  149. compatible = "gpio-keys";
  150. btn3 {
  151. label = "Button 3";
  152. gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
  153. linux,code = <0x103>;
  154. gpio-key,wakeup;
  155. };
  156. btn4 {
  157. label = "Button 4";
  158. gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
  159. linux,code = <0x104>;
  160. gpio-key,wakeup;
  161. };
  162. };
  163. sound {
  164. compatible = "atmel,at91sam9g20ek-wm8731-audio";
  165. pinctrl-names = "default";
  166. pinctrl-0 = <&pinctrl_pck0_as_mck>;
  167. atmel,model = "wm8731 @ AT91SAMG20EK";
  168. atmel,audio-routing =
  169. "Ext Spk", "LHPOUT",
  170. "Int Mic", "MICIN";
  171. atmel,ssc-controller = <&ssc0>;
  172. atmel,audio-codec = <&wm8731>;
  173. };
  174. };