at91sam9g20ek_common.dtsi 2.7 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. 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. status = "okay";
  40. };
  41. usart1: serial@fffb4000 {
  42. status = "okay";
  43. };
  44. macb0: ethernet@fffc4000 {
  45. phy-mode = "rmii";
  46. status = "okay";
  47. };
  48. usb1: gadget@fffa4000 {
  49. atmel,vbus-gpio = <&pioC 5 0>;
  50. status = "okay";
  51. };
  52. ssc0: ssc@fffbc000 {
  53. status = "okay";
  54. pinctrl-0 = <&pinctrl_ssc0_tx>;
  55. };
  56. };
  57. nand0: nand@40000000 {
  58. nand-bus-width = <8>;
  59. nand-ecc-mode = "soft";
  60. nand-on-flash-bbt;
  61. status = "okay";
  62. at91bootstrap@0 {
  63. label = "at91bootstrap";
  64. reg = <0x0 0x20000>;
  65. };
  66. barebox@20000 {
  67. label = "barebox";
  68. reg = <0x20000 0x40000>;
  69. };
  70. bareboxenv@60000 {
  71. label = "bareboxenv";
  72. reg = <0x60000 0x20000>;
  73. };
  74. bareboxenv2@80000 {
  75. label = "bareboxenv2";
  76. reg = <0x80000 0x20000>;
  77. };
  78. oftree@80000 {
  79. label = "oftree";
  80. reg = <0xa0000 0x20000>;
  81. };
  82. kernel@a0000 {
  83. label = "kernel";
  84. reg = <0xc0000 0x400000>;
  85. };
  86. rootfs@4a0000 {
  87. label = "rootfs";
  88. reg = <0x4c0000 0x7800000>;
  89. };
  90. data@7ca0000 {
  91. label = "data";
  92. reg = <0x7cc0000 0x8340000>;
  93. };
  94. };
  95. usb0: ohci@00500000 {
  96. num-ports = <2>;
  97. status = "okay";
  98. };
  99. };
  100. i2c@0 {
  101. status = "okay";
  102. 24c512@50 {
  103. compatible = "24c512";
  104. reg = <0x50>;
  105. };
  106. wm8731: wm8731@1b {
  107. compatible = "wm8731";
  108. reg = <0x1b>;
  109. };
  110. };
  111. gpio_keys {
  112. compatible = "gpio-keys";
  113. #address-cells = <1>;
  114. #size-cells = <0>;
  115. btn3 {
  116. label = "Button 3";
  117. gpios = <&pioA 30 1>;
  118. linux,code = <0x103>;
  119. gpio-key,wakeup;
  120. };
  121. btn4 {
  122. label = "Button 4";
  123. gpios = <&pioA 31 1>;
  124. linux,code = <0x104>;
  125. gpio-key,wakeup;
  126. };
  127. };
  128. sound {
  129. compatible = "atmel,at91sam9g20ek-wm8731-audio";
  130. pinctrl-names = "default";
  131. pinctrl-0 = <&pinctrl_pck0_as_mck>;
  132. atmel,model = "wm8731 @ AT91SAMG20EK";
  133. atmel,audio-routing =
  134. "Ext Spk", "LHPOUT",
  135. "Int Mic", "MICIN";
  136. atmel,ssc-controller = <&ssc0>;
  137. atmel,audio-codec = <&wm8731>;
  138. };
  139. };