at91sam9g20ek_common.dtsi 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. <2 1 0x2 0x0>; /* PC1 periph B */
  32. };
  33. };
  34. };
  35. dbgu: serial@fffff200 {
  36. status = "okay";
  37. };
  38. usart0: serial@fffb0000 {
  39. pinctrl-0 =
  40. <&pinctrl_usart0
  41. &pinctrl_usart0_rts
  42. &pinctrl_usart0_cts
  43. &pinctrl_usart0_dtr_dsr
  44. &pinctrl_usart0_dcd
  45. &pinctrl_usart0_ri>;
  46. status = "okay";
  47. };
  48. usart1: serial@fffb4000 {
  49. status = "okay";
  50. };
  51. macb0: ethernet@fffc4000 {
  52. phy-mode = "rmii";
  53. status = "okay";
  54. };
  55. usb1: gadget@fffa4000 {
  56. atmel,vbus-gpio = <&pioC 5 0>;
  57. status = "okay";
  58. };
  59. mmc0: mmc@fffa8000 {
  60. pinctrl-0 = <
  61. &pinctrl_board_mmc0_slot1
  62. &pinctrl_mmc0_clk
  63. &pinctrl_mmc0_slot1_cmd_dat0
  64. &pinctrl_mmc0_slot1_dat1_3>;
  65. status = "okay";
  66. slot@1 {
  67. reg = <1>;
  68. bus-width = <4>;
  69. cd-gpios = <&pioC 9 0>;
  70. };
  71. };
  72. pinctrl@fffff400 {
  73. mmc0_slot1 {
  74. pinctrl_board_mmc0_slot1: mmc0_slot1-board {
  75. atmel,pins =
  76. <2 9 0x0 0x5>; /* PC9 gpio CD pin pull up and deglitch */
  77. };
  78. };
  79. };
  80. ssc0: ssc@fffbc000 {
  81. status = "okay";
  82. pinctrl-0 = <&pinctrl_ssc0_tx>;
  83. };
  84. spi0: spi@fffc8000 {
  85. status = "okay";
  86. cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
  87. mtd_dataflash@0 {
  88. compatible = "atmel,at45", "atmel,dataflash";
  89. spi-max-frequency = <50000000>;
  90. reg = <1>;
  91. };
  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. #address-cells = <1>;
  151. #size-cells = <0>;
  152. btn3 {
  153. label = "Button 3";
  154. gpios = <&pioA 30 1>;
  155. linux,code = <0x103>;
  156. gpio-key,wakeup;
  157. };
  158. btn4 {
  159. label = "Button 4";
  160. gpios = <&pioA 31 1>;
  161. linux,code = <0x104>;
  162. gpio-key,wakeup;
  163. };
  164. };
  165. sound {
  166. compatible = "atmel,at91sam9g20ek-wm8731-audio";
  167. pinctrl-names = "default";
  168. pinctrl-0 = <&pinctrl_pck0_as_mck>;
  169. atmel,model = "wm8731 @ AT91SAMG20EK";
  170. atmel,audio-routing =
  171. "Ext Spk", "LHPOUT",
  172. "Int Mic", "MICIN";
  173. atmel,ssc-controller = <&ssc0>;
  174. atmel,audio-codec = <&wm8731>;
  175. };
  176. };