at91sam9g20ek_common.dtsi 3.7 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. <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. status = "okay";
  84. cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
  85. mtd_dataflash@0 {
  86. compatible = "atmel,at45", "atmel,dataflash";
  87. spi-max-frequency = <50000000>;
  88. reg = <1>;
  89. };
  90. };
  91. watchdog@fffffd40 {
  92. status = "okay";
  93. };
  94. };
  95. nand0: nand@40000000 {
  96. nand-bus-width = <8>;
  97. nand-ecc-mode = "soft";
  98. nand-on-flash-bbt;
  99. status = "okay";
  100. at91bootstrap@0 {
  101. label = "at91bootstrap";
  102. reg = <0x0 0x20000>;
  103. };
  104. barebox@20000 {
  105. label = "barebox";
  106. reg = <0x20000 0x40000>;
  107. };
  108. bareboxenv@60000 {
  109. label = "bareboxenv";
  110. reg = <0x60000 0x20000>;
  111. };
  112. bareboxenv2@80000 {
  113. label = "bareboxenv2";
  114. reg = <0x80000 0x20000>;
  115. };
  116. oftree@80000 {
  117. label = "oftree";
  118. reg = <0xa0000 0x20000>;
  119. };
  120. kernel@a0000 {
  121. label = "kernel";
  122. reg = <0xc0000 0x400000>;
  123. };
  124. rootfs@4a0000 {
  125. label = "rootfs";
  126. reg = <0x4c0000 0x7800000>;
  127. };
  128. data@7ca0000 {
  129. label = "data";
  130. reg = <0x7cc0000 0x8340000>;
  131. };
  132. };
  133. usb0: ohci@00500000 {
  134. num-ports = <2>;
  135. status = "okay";
  136. };
  137. };
  138. i2c@0 {
  139. status = "okay";
  140. 24c512@50 {
  141. compatible = "24c512";
  142. reg = <0x50>;
  143. };
  144. wm8731: wm8731@1b {
  145. compatible = "wm8731";
  146. reg = <0x1b>;
  147. };
  148. };
  149. gpio_keys {
  150. compatible = "gpio-keys";
  151. btn3 {
  152. label = "Button 3";
  153. gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
  154. linux,code = <0x103>;
  155. gpio-key,wakeup;
  156. };
  157. btn4 {
  158. label = "Button 4";
  159. gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
  160. linux,code = <0x104>;
  161. gpio-key,wakeup;
  162. };
  163. };
  164. sound {
  165. compatible = "atmel,at91sam9g20ek-wm8731-audio";
  166. pinctrl-names = "default";
  167. pinctrl-0 = <&pinctrl_pck0_as_mck>;
  168. atmel,model = "wm8731 @ AT91SAMG20EK";
  169. atmel,audio-routing =
  170. "Ext Spk", "LHPOUT",
  171. "Int Mic", "MICIN";
  172. atmel,ssc-controller = <&ssc0>;
  173. atmel,audio-codec = <&wm8731>;
  174. };
  175. };