usb_a9263.dts 3.1 KB

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