at91sam9g20ek_common.dtsi 3.8 KB

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