at91sam9263ek.dts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference board
  4. *
  5. * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
  6. */
  7. /dts-v1/;
  8. #include "at91sam9263.dtsi"
  9. / {
  10. model = "Atmel at91sam9263ek";
  11. compatible = "atmel,at91sam9263ek", "atmel,at91sam9263", "atmel,at91sam9";
  12. chosen {
  13. bootargs = "mem=64M root=/dev/mtdblock5 rw rootfstype=ubifs";
  14. stdout-path = "serial0:115200n8";
  15. };
  16. memory@20000000 {
  17. reg = <0x20000000 0x4000000>;
  18. };
  19. clocks {
  20. slow_xtal {
  21. clock-frequency = <32768>;
  22. };
  23. main_xtal {
  24. clock-frequency = <16367660>;
  25. };
  26. };
  27. ahb {
  28. apb {
  29. dbgu: serial@ffffee00 {
  30. status = "okay";
  31. };
  32. tcb0: timer@fff7c000 {
  33. timer@0 {
  34. compatible = "atmel,tcb-timer";
  35. reg = <0>, <1>;
  36. };
  37. timer@2 {
  38. compatible = "atmel,tcb-timer";
  39. reg = <2>;
  40. };
  41. };
  42. usart0: serial@fff8c000 {
  43. pinctrl-0 = <
  44. &pinctrl_usart0
  45. &pinctrl_usart0_rts
  46. &pinctrl_usart0_cts>;
  47. status = "okay";
  48. };
  49. macb0: ethernet@fffbc000 {
  50. phy-mode = "rmii";
  51. status = "okay";
  52. };
  53. usb1: gadget@fff78000 {
  54. atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>;
  55. status = "okay";
  56. };
  57. mmc0: mmc@fff80000 {
  58. pinctrl-0 = <
  59. &pinctrl_board_mmc0
  60. &pinctrl_mmc0_clk
  61. &pinctrl_mmc0_slot0_cmd_dat0
  62. &pinctrl_mmc0_slot0_dat1_3>;
  63. pinctrl-names = "default";
  64. status = "okay";
  65. slot@0 {
  66. reg = <0>;
  67. bus-width = <4>;
  68. cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>;
  69. wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>;
  70. };
  71. };
  72. pinctrl@fffff200 {
  73. mmc0 {
  74. pinctrl_board_mmc0: mmc0-board {
  75. atmel,pins =
  76. <AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PE18 gpio CD pin pull up and deglitch */
  77. AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PE19 gpio WP pin pull up */
  78. };
  79. };
  80. };
  81. spi0: spi@fffa4000 {
  82. status = "okay";
  83. cs-gpios = <&pioA 5 0>, <0>, <0>, <0>;
  84. flash@0 {
  85. compatible = "atmel,at45", "atmel,dataflash";
  86. spi-max-frequency = <50000000>;
  87. reg = <0>;
  88. };
  89. };
  90. rtc@fffffd20 {
  91. atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
  92. };
  93. watchdog@fffffd40 {
  94. status = "okay";
  95. };
  96. };
  97. fb0: fb@700000 {
  98. display = <&display0>;
  99. status = "okay";
  100. display0: panel {
  101. bits-per-pixel = <16>;
  102. atmel,lcdcon-backlight;
  103. atmel,dmacon = <0x1>;
  104. atmel,lcdcon2 = <0x80008002>;
  105. atmel,guard-time = <1>;
  106. display-timings {
  107. native-mode = <&timing0>;
  108. timing0: timing0 {
  109. clock-frequency = <4965000>;
  110. hactive = <240>;
  111. vactive = <320>;
  112. hback-porch = <1>;
  113. hfront-porch = <33>;
  114. vback-porch = <1>;
  115. vfront-porch = <0>;
  116. hsync-len = <5>;
  117. vsync-len = <1>;
  118. hsync-active = <1>;
  119. vsync-active = <1>;
  120. };
  121. };
  122. };
  123. };
  124. ebi0: ebi@10000000 {
  125. status = "okay";
  126. nand_controller: nand-controller {
  127. status = "okay";
  128. pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
  129. pinctrl-names = "default";
  130. nand@3 {
  131. reg = <0x3 0x0 0x800000>;
  132. rb-gpios = <&pioA 22 GPIO_ACTIVE_HIGH>;
  133. cs-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
  134. nand-bus-width = <8>;
  135. nand-ecc-mode = "soft";
  136. nand-on-flash-bbt;
  137. label = "atmel_nand";
  138. partitions {
  139. compatible = "fixed-partitions";
  140. #address-cells = <1>;
  141. #size-cells = <1>;
  142. at91bootstrap@0 {
  143. label = "at91bootstrap";
  144. reg = <0x0 0x20000>;
  145. };
  146. barebox@20000 {
  147. label = "barebox";
  148. reg = <0x20000 0x40000>;
  149. };
  150. bareboxenv@60000 {
  151. label = "bareboxenv";
  152. reg = <0x60000 0x20000>;
  153. };
  154. bareboxenv2@80000 {
  155. label = "bareboxenv2";
  156. reg = <0x80000 0x20000>;
  157. };
  158. oftree@80000 {
  159. label = "oftree";
  160. reg = <0xa0000 0x20000>;
  161. };
  162. kernel@a0000 {
  163. label = "kernel";
  164. reg = <0xc0000 0x400000>;
  165. };
  166. rootfs@4a0000 {
  167. label = "rootfs";
  168. reg = <0x4c0000 0x7800000>;
  169. };
  170. data@7ca0000 {
  171. label = "data";
  172. reg = <0x7cc0000 0x8340000>;
  173. };
  174. };
  175. };
  176. };
  177. };
  178. usb0: ohci@a00000 {
  179. num-ports = <2>;
  180. status = "okay";
  181. atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH
  182. &pioA 21 GPIO_ACTIVE_HIGH
  183. >;
  184. };
  185. };
  186. leds {
  187. compatible = "gpio-leds";
  188. d3 {
  189. label = "d3";
  190. gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
  191. linux,default-trigger = "heartbeat";
  192. };
  193. d2 {
  194. label = "d2";
  195. gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
  196. linux,default-trigger = "nand-disk";
  197. };
  198. };
  199. gpio-keys {
  200. compatible = "gpio-keys";
  201. button-left-click {
  202. label = "left_click";
  203. gpios = <&pioC 5 GPIO_ACTIVE_LOW>;
  204. linux,code = <272>;
  205. wakeup-source;
  206. };
  207. button-right-click {
  208. label = "right_click";
  209. gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
  210. linux,code = <273>;
  211. wakeup-source;
  212. };
  213. };
  214. i2c-gpio-0 {
  215. status = "okay";
  216. 24c512@50 {
  217. compatible = "atmel,24c512";
  218. reg = <0x50>;
  219. pagesize = <128>;
  220. };
  221. };
  222. };