at91sam9263ek.dts 4.1 KB

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