at91sam9g20ek_common.dtsi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. };
  52. nand0: nand@40000000 {
  53. nand-bus-width = <8>;
  54. nand-ecc-mode = "soft";
  55. nand-on-flash-bbt;
  56. status = "okay";
  57. at91bootstrap@0 {
  58. label = "at91bootstrap";
  59. reg = <0x0 0x20000>;
  60. };
  61. barebox@20000 {
  62. label = "barebox";
  63. reg = <0x20000 0x40000>;
  64. };
  65. bareboxenv@60000 {
  66. label = "bareboxenv";
  67. reg = <0x60000 0x20000>;
  68. };
  69. bareboxenv2@80000 {
  70. label = "bareboxenv2";
  71. reg = <0x80000 0x20000>;
  72. };
  73. oftree@80000 {
  74. label = "oftree";
  75. reg = <0xa0000 0x20000>;
  76. };
  77. kernel@a0000 {
  78. label = "kernel";
  79. reg = <0xc0000 0x400000>;
  80. };
  81. rootfs@4a0000 {
  82. label = "rootfs";
  83. reg = <0x4c0000 0x7800000>;
  84. };
  85. data@7ca0000 {
  86. label = "data";
  87. reg = <0x7cc0000 0x8340000>;
  88. };
  89. };
  90. usb0: ohci@00500000 {
  91. num-ports = <2>;
  92. status = "okay";
  93. };
  94. };
  95. i2c@0 {
  96. status = "okay";
  97. 24c512@50 {
  98. compatible = "24c512";
  99. reg = <0x50>;
  100. };
  101. wm8731@1b {
  102. compatible = "wm8731";
  103. reg = <0x1b>;
  104. };
  105. };
  106. gpio_keys {
  107. compatible = "gpio-keys";
  108. #address-cells = <1>;
  109. #size-cells = <0>;
  110. btn3 {
  111. label = "Button 3";
  112. gpios = <&pioA 30 1>;
  113. linux,code = <0x103>;
  114. gpio-key,wakeup;
  115. };
  116. btn4 {
  117. label = "Button 4";
  118. gpios = <&pioA 31 1>;
  119. linux,code = <0x104>;
  120. gpio-key,wakeup;
  121. };
  122. };
  123. };