at91sam9g20ek_common.dtsi 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. status = "okay";
  32. };
  33. usart1: serial@fffb4000 {
  34. status = "okay";
  35. };
  36. macb0: ethernet@fffc4000 {
  37. phy-mode = "rmii";
  38. status = "okay";
  39. };
  40. usb1: gadget@fffa4000 {
  41. atmel,vbus-gpio = <&pioC 5 0>;
  42. status = "okay";
  43. };
  44. };
  45. nand0: nand@40000000 {
  46. nand-bus-width = <8>;
  47. nand-ecc-mode = "soft";
  48. nand-on-flash-bbt;
  49. status = "okay";
  50. at91bootstrap@0 {
  51. label = "at91bootstrap";
  52. reg = <0x0 0x20000>;
  53. };
  54. barebox@20000 {
  55. label = "barebox";
  56. reg = <0x20000 0x40000>;
  57. };
  58. bareboxenv@60000 {
  59. label = "bareboxenv";
  60. reg = <0x60000 0x20000>;
  61. };
  62. bareboxenv2@80000 {
  63. label = "bareboxenv2";
  64. reg = <0x80000 0x20000>;
  65. };
  66. oftree@80000 {
  67. label = "oftree";
  68. reg = <0xa0000 0x20000>;
  69. };
  70. kernel@a0000 {
  71. label = "kernel";
  72. reg = <0xc0000 0x400000>;
  73. };
  74. rootfs@4a0000 {
  75. label = "rootfs";
  76. reg = <0x4c0000 0x7800000>;
  77. };
  78. data@7ca0000 {
  79. label = "data";
  80. reg = <0x7cc0000 0x8340000>;
  81. };
  82. };
  83. usb0: ohci@00500000 {
  84. num-ports = <2>;
  85. status = "okay";
  86. };
  87. };
  88. i2c@0 {
  89. status = "okay";
  90. 24c512@50 {
  91. compatible = "24c512";
  92. reg = <0x50>;
  93. };
  94. wm8731@1b {
  95. compatible = "wm8731";
  96. reg = <0x1b>;
  97. };
  98. };
  99. gpio_keys {
  100. compatible = "gpio-keys";
  101. #address-cells = <1>;
  102. #size-cells = <0>;
  103. btn3 {
  104. label = "Buttin 3";
  105. gpios = <&pioA 30 1>;
  106. linux,code = <0x103>;
  107. gpio-key,wakeup;
  108. };
  109. btn4 {
  110. label = "Buttin 4";
  111. gpios = <&pioA 31 1>;
  112. linux,code = <0x104>;
  113. gpio-key,wakeup;
  114. };
  115. };
  116. };