at91-qil_a9260.dts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * at91-qil_a9260.dts - Device Tree file for Calao QIL A9260 board
  4. *
  5. * Copyright (C) 2011-2013 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
  6. */
  7. /dts-v1/;
  8. #include "at91sam9260.dtsi"
  9. / {
  10. model = "Calao QIL A9260";
  11. compatible = "calao,qil-a9260", "atmel,at91sam9260", "atmel,at91sam9";
  12. chosen {
  13. bootargs = "console=ttyS0,115200";
  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. tcb0: timer@fffa0000 {
  29. timer@0 {
  30. compatible = "atmel,tcb-timer";
  31. reg = <0>, <1>;
  32. };
  33. timer@2 {
  34. compatible = "atmel,tcb-timer";
  35. reg = <2>;
  36. };
  37. };
  38. usb1: gadget@fffa4000 {
  39. atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
  40. status = "okay";
  41. };
  42. mmc0: mmc@fffa8000 {
  43. pinctrl-0 = <
  44. &pinctrl_mmc0_clk
  45. &pinctrl_mmc0_slot0_cmd_dat0
  46. &pinctrl_mmc0_slot0_dat1_3>;
  47. pinctrl-names = "default";
  48. status = "okay";
  49. slot@0 {
  50. reg = <0>;
  51. bus-width = <4>;
  52. };
  53. };
  54. usart0: serial@fffb0000 {
  55. pinctrl-0 =
  56. <&pinctrl_usart0
  57. &pinctrl_usart0_rts
  58. &pinctrl_usart0_cts
  59. &pinctrl_usart0_dtr_dsr
  60. &pinctrl_usart0_dcd
  61. &pinctrl_usart0_ri>;
  62. status = "okay";
  63. };
  64. usart1: serial@fffb4000 {
  65. pinctrl-0 =
  66. <&pinctrl_usart1
  67. &pinctrl_usart1_rts
  68. &pinctrl_usart1_cts>;
  69. status = "okay";
  70. };
  71. usart2: serial@fffb8000 {
  72. pinctrl-0 =
  73. <&pinctrl_usart2
  74. &pinctrl_usart2_rts
  75. &pinctrl_usart2_cts>;
  76. status = "okay";
  77. };
  78. macb0: ethernet@fffc4000 {
  79. phy-mode = "rmii";
  80. status = "okay";
  81. };
  82. spi0: spi@fffc8000 {
  83. status = "okay";
  84. cs-gpios = <&pioA 3 GPIO_ACTIVE_HIGH>;
  85. m41t94@0 {
  86. compatible = "st,m41t94";
  87. reg = <0>;
  88. spi-max-frequency = <1000000>;
  89. };
  90. };
  91. dbgu: serial@fffff200 {
  92. status = "okay";
  93. };
  94. shdwc@fffffd10 {
  95. atmel,wakeup-counter = <10>;
  96. atmel,wakeup-rtt-timer;
  97. };
  98. };
  99. usb0: ohci@500000 {
  100. num-ports = <2>;
  101. status = "okay";
  102. };
  103. ebi: ebi@10000000 {
  104. status = "okay";
  105. nand_controller: nand-controller {
  106. status = "okay";
  107. pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
  108. pinctrl-names = "default";
  109. nand@3 {
  110. reg = <0x3 0x0 0x800000>;
  111. rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
  112. cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
  113. nand-bus-width = <8>;
  114. nand-ecc-mode = "soft";
  115. nand-on-flash-bbt;
  116. label = "atmel_nand";
  117. partitions {
  118. compatible = "fixed-partitions";
  119. #address-cells = <1>;
  120. #size-cells = <1>;
  121. at91bootstrap@0 {
  122. label = "at91bootstrap";
  123. reg = <0x0 0x20000>;
  124. };
  125. barebox@20000 {
  126. label = "barebox";
  127. reg = <0x20000 0x40000>;
  128. };
  129. bareboxenv@60000 {
  130. label = "bareboxenv";
  131. reg = <0x60000 0x20000>;
  132. };
  133. bareboxenv2@80000 {
  134. label = "bareboxenv2";
  135. reg = <0x80000 0x20000>;
  136. };
  137. oftree@a0000 {
  138. label = "oftree";
  139. reg = <0xa0000 0x20000>;
  140. };
  141. kernel@c0000 {
  142. label = "kernel";
  143. reg = <0xc0000 0x400000>;
  144. };
  145. rootfs@4c0000 {
  146. label = "rootfs";
  147. reg = <0x4c0000 0x7800000>;
  148. };
  149. data@7cc0000 {
  150. label = "data";
  151. reg = <0x7cc0000 0x8340000>;
  152. };
  153. };
  154. };
  155. };
  156. };
  157. };
  158. leds {
  159. compatible = "gpio-leds";
  160. user_led {
  161. label = "user_led";
  162. gpios = <&pioB 21 GPIO_ACTIVE_HIGH>;
  163. linux,default-trigger = "heartbeat";
  164. };
  165. };
  166. gpio_keys {
  167. compatible = "gpio-keys";
  168. button-user {
  169. label = "user_pb";
  170. gpios = <&pioB 10 GPIO_ACTIVE_LOW>;
  171. linux,code = <28>;
  172. wakeup-source;
  173. };
  174. };
  175. i2c-gpio-0 {
  176. status = "okay";
  177. };
  178. };