at91sam9g20ek_common.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. dbgu: serial@fffff200 {
  28. status = "okay";
  29. };
  30. usart0: serial@fffb0000 {
  31. pinctrl-0 =
  32. <&pinctrl_usart0
  33. &pinctrl_usart0_rts
  34. &pinctrl_usart0_cts
  35. &pinctrl_usart0_dtr_dsr
  36. &pinctrl_usart0_dcd
  37. &pinctrl_usart0_ri>;
  38. status = "okay";
  39. };
  40. usart1: serial@fffb4000 {
  41. status = "okay";
  42. };
  43. macb0: ethernet@fffc4000 {
  44. phy-mode = "rmii";
  45. status = "okay";
  46. };
  47. usb1: gadget@fffa4000 {
  48. atmel,vbus-gpio = <&pioC 5 0>;
  49. status = "okay";
  50. };
  51. mmc0: mmc@fffa8000 {
  52. pinctrl-0 = <
  53. &pinctrl_board_mmc0_slot1
  54. &pinctrl_mmc0_clk
  55. &pinctrl_mmc0_slot1_cmd_dat0
  56. &pinctrl_mmc0_slot1_dat1_3>;
  57. status = "okay";
  58. slot@1 {
  59. reg = <1>;
  60. bus-width = <4>;
  61. cd-gpios = <&pioC 9 0>;
  62. };
  63. };
  64. pinctrl@fffff400 {
  65. mmc0_slot1 {
  66. pinctrl_board_mmc0_slot1: mmc0_slot1-board {
  67. atmel,pins =
  68. <2 9 0x0 0x5>; /* PC9 gpio CD pin pull up and deglitch */
  69. };
  70. };
  71. };
  72. };
  73. nand0: nand@40000000 {
  74. nand-bus-width = <8>;
  75. nand-ecc-mode = "soft";
  76. nand-on-flash-bbt;
  77. status = "okay";
  78. at91bootstrap@0 {
  79. label = "at91bootstrap";
  80. reg = <0x0 0x20000>;
  81. };
  82. barebox@20000 {
  83. label = "barebox";
  84. reg = <0x20000 0x40000>;
  85. };
  86. bareboxenv@60000 {
  87. label = "bareboxenv";
  88. reg = <0x60000 0x20000>;
  89. };
  90. bareboxenv2@80000 {
  91. label = "bareboxenv2";
  92. reg = <0x80000 0x20000>;
  93. };
  94. oftree@80000 {
  95. label = "oftree";
  96. reg = <0xa0000 0x20000>;
  97. };
  98. kernel@a0000 {
  99. label = "kernel";
  100. reg = <0xc0000 0x400000>;
  101. };
  102. rootfs@4a0000 {
  103. label = "rootfs";
  104. reg = <0x4c0000 0x7800000>;
  105. };
  106. data@7ca0000 {
  107. label = "data";
  108. reg = <0x7cc0000 0x8340000>;
  109. };
  110. };
  111. usb0: ohci@00500000 {
  112. num-ports = <2>;
  113. status = "okay";
  114. };
  115. };
  116. i2c@0 {
  117. status = "okay";
  118. 24c512@50 {
  119. compatible = "24c512";
  120. reg = <0x50>;
  121. };
  122. wm8731@1b {
  123. compatible = "wm8731";
  124. reg = <0x1b>;
  125. };
  126. };
  127. gpio_keys {
  128. compatible = "gpio-keys";
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. btn3 {
  132. label = "Button 3";
  133. gpios = <&pioA 30 1>;
  134. linux,code = <0x103>;
  135. gpio-key,wakeup;
  136. };
  137. btn4 {
  138. label = "Button 4";
  139. gpios = <&pioA 31 1>;
  140. linux,code = <0x104>;
  141. gpio-key,wakeup;
  142. };
  143. };
  144. };