at91sam9g20ek_common.dtsi 3.4 KB

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