at91sam9263ek.dts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. /*
  2. * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference 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 = "Atmel at91sam9263ek";
  12. compatible = "atmel,at91sam9263ek", "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 = <16367660>;
  26. };
  27. slow_xtal {
  28. clock-frequency = <32768>;
  29. };
  30. main_xtal {
  31. clock-frequency = <16367660>;
  32. };
  33. };
  34. ahb {
  35. apb {
  36. dbgu: serial@ffffee00 {
  37. status = "okay";
  38. };
  39. usart0: serial@fff8c000 {
  40. pinctrl-0 = <
  41. &pinctrl_usart0
  42. &pinctrl_usart0_rts
  43. &pinctrl_usart0_cts>;
  44. status = "okay";
  45. };
  46. macb0: ethernet@fffbc000 {
  47. phy-mode = "rmii";
  48. status = "okay";
  49. };
  50. usb1: gadget@fff78000 {
  51. atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>;
  52. status = "okay";
  53. };
  54. mmc0: mmc@fff80000 {
  55. pinctrl-0 = <
  56. &pinctrl_board_mmc0
  57. &pinctrl_mmc0_clk
  58. &pinctrl_mmc0_slot0_cmd_dat0
  59. &pinctrl_mmc0_slot0_dat1_3>;
  60. status = "okay";
  61. slot@0 {
  62. reg = <0>;
  63. bus-width = <4>;
  64. cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>;
  65. wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>;
  66. };
  67. };
  68. pinctrl@fffff200 {
  69. mmc0 {
  70. pinctrl_board_mmc0: mmc0-board {
  71. atmel,pins =
  72. <AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PE18 gpio CD pin pull up and deglitch */
  73. AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PE19 gpio WP pin pull up */
  74. };
  75. };
  76. };
  77. spi0: spi@fffa4000 {
  78. status = "okay";
  79. cs-gpios = <&pioA 5 0>, <0>, <0>, <0>;
  80. mtd_dataflash@0 {
  81. compatible = "atmel,at45", "atmel,dataflash";
  82. spi-max-frequency = <50000000>;
  83. reg = <0>;
  84. };
  85. };
  86. watchdog@fffffd40 {
  87. status = "okay";
  88. };
  89. };
  90. fb0: fb@0x00700000 {
  91. display = <&display0>;
  92. status = "okay";
  93. display0: display {
  94. bits-per-pixel = <16>;
  95. atmel,lcdcon-backlight;
  96. atmel,dmacon = <0x1>;
  97. atmel,lcdcon2 = <0x80008002>;
  98. atmel,guard-time = <1>;
  99. display-timings {
  100. native-mode = <&timing0>;
  101. timing0: timing0 {
  102. clock-frequency = <4965000>;
  103. hactive = <240>;
  104. vactive = <320>;
  105. hback-porch = <1>;
  106. hfront-porch = <33>;
  107. vback-porch = <1>;
  108. vfront-porch = <0>;
  109. hsync-len = <5>;
  110. vsync-len = <1>;
  111. hsync-active = <1>;
  112. vsync-active = <1>;
  113. };
  114. };
  115. };
  116. };
  117. nand0: nand@40000000 {
  118. nand-bus-width = <8>;
  119. nand-ecc-mode = "soft";
  120. nand-on-flash-bbt = <1>;
  121. status = "okay";
  122. at91bootstrap@0 {
  123. label = "at91bootstrap";
  124. reg = <0x0 0x20000>;
  125. };
  126. barebox@20000 {
  127. label = "barebox";
  128. reg = <0x20000 0x40000>;
  129. };
  130. bareboxenv@60000 {
  131. label = "bareboxenv";
  132. reg = <0x60000 0x20000>;
  133. };
  134. bareboxenv2@80000 {
  135. label = "bareboxenv2";
  136. reg = <0x80000 0x20000>;
  137. };
  138. oftree@80000 {
  139. label = "oftree";
  140. reg = <0xa0000 0x20000>;
  141. };
  142. kernel@a0000 {
  143. label = "kernel";
  144. reg = <0xc0000 0x400000>;
  145. };
  146. rootfs@4a0000 {
  147. label = "rootfs";
  148. reg = <0x4c0000 0x7800000>;
  149. };
  150. data@7ca0000 {
  151. label = "data";
  152. reg = <0x7cc0000 0x8340000>;
  153. };
  154. };
  155. usb0: ohci@00a00000 {
  156. num-ports = <2>;
  157. status = "okay";
  158. atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH
  159. &pioA 21 GPIO_ACTIVE_HIGH
  160. >;
  161. };
  162. };
  163. leds {
  164. compatible = "gpio-leds";
  165. d3 {
  166. label = "d3";
  167. gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
  168. linux,default-trigger = "heartbeat";
  169. };
  170. d2 {
  171. label = "d2";
  172. gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
  173. linux,default-trigger = "nand-disk";
  174. };
  175. };
  176. gpio_keys {
  177. compatible = "gpio-keys";
  178. left_click {
  179. label = "left_click";
  180. gpios = <&pioC 5 GPIO_ACTIVE_LOW>;
  181. linux,code = <272>;
  182. gpio-key,wakeup;
  183. };
  184. right_click {
  185. label = "right_click";
  186. gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
  187. linux,code = <273>;
  188. gpio-key,wakeup;
  189. };
  190. };
  191. i2c@0 {
  192. status = "okay";
  193. 24c512@50 {
  194. compatible = "24c512";
  195. reg = <0x50>;
  196. pagesize = <128>;
  197. };
  198. };
  199. };