usb_a9263.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /*
  2. * usb_a9263.dts - Device Tree file for Caloa USB A9293 board
  3. *
  4. * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  5. *
  6. * Licensed under GPLv2 only
  7. */
  8. /dts-v1/;
  9. #include "at91sam9263.dtsi"
  10. / {
  11. model = "Calao USB A9263";
  12. compatible = "atmel,usb-a9263", "atmel,at91sam9263", "atmel,at91sam9";
  13. chosen {
  14. bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
  15. };
  16. memory {
  17. reg = <0x20000000 0x4000000>;
  18. };
  19. clocks {
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. ranges;
  23. main_clock: clock@0 {
  24. compatible = "atmel,osc", "fixed-clock";
  25. clock-frequency = <12000000>;
  26. };
  27. slow_xtal {
  28. clock-frequency = <32768>;
  29. };
  30. main_xtal {
  31. clock-frequency = <12000000>;
  32. };
  33. };
  34. ahb {
  35. apb {
  36. dbgu: serial@ffffee00 {
  37. status = "okay";
  38. };
  39. macb0: ethernet@fffbc000 {
  40. phy-mode = "rmii";
  41. status = "okay";
  42. };
  43. usb1: gadget@fff78000 {
  44. atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
  45. status = "okay";
  46. };
  47. spi0: spi@fffa4000 {
  48. cs-gpios = <&pioB 15 GPIO_ACTIVE_HIGH>;
  49. status = "okay";
  50. mtd_dataflash@0 {
  51. compatible = "atmel,at45", "atmel,dataflash";
  52. reg = <0>;
  53. spi-max-frequency = <15000000>;
  54. };
  55. };
  56. shdwc@fffffd10 {
  57. atmel,wakeup-counter = <10>;
  58. atmel,wakeup-rtt-timer;
  59. };
  60. };
  61. nand0: nand@40000000 {
  62. nand-bus-width = <8>;
  63. nand-ecc-mode = "soft";
  64. nand-on-flash-bbt;
  65. status = "okay";
  66. at91bootstrap@0 {
  67. label = "at91bootstrap";
  68. reg = <0x0 0x20000>;
  69. };
  70. barebox@20000 {
  71. label = "barebox";
  72. reg = <0x20000 0x40000>;
  73. };
  74. bareboxenv@60000 {
  75. label = "bareboxenv";
  76. reg = <0x60000 0x20000>;
  77. };
  78. bareboxenv2@80000 {
  79. label = "bareboxenv2";
  80. reg = <0x80000 0x20000>;
  81. };
  82. oftree@80000 {
  83. label = "oftree";
  84. reg = <0xa0000 0x20000>;
  85. };
  86. kernel@a0000 {
  87. label = "kernel";
  88. reg = <0xc0000 0x400000>;
  89. };
  90. rootfs@4a0000 {
  91. label = "rootfs";
  92. reg = <0x4c0000 0x7800000>;
  93. };
  94. data@7ca0000 {
  95. label = "data";
  96. reg = <0x7cc0000 0x8340000>;
  97. };
  98. };
  99. usb0: ohci@00a00000 {
  100. num-ports = <2>;
  101. status = "okay";
  102. };
  103. };
  104. leds {
  105. compatible = "gpio-leds";
  106. user_led {
  107. label = "user_led";
  108. gpios = <&pioB 21 GPIO_ACTIVE_HIGH>;
  109. linux,default-trigger = "heartbeat";
  110. };
  111. };
  112. gpio_keys {
  113. compatible = "gpio-keys";
  114. #address-cells = <1>;
  115. #size-cells = <0>;
  116. user_pb {
  117. label = "user_pb";
  118. gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
  119. linux,code = <28>;
  120. gpio-key,wakeup;
  121. };
  122. };
  123. i2c@0 {
  124. status = "okay";
  125. };
  126. };