at91sam9263ek.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. };
  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. nand0: nand@40000000 {
  85. nand-bus-width = <8>;
  86. nand-ecc-mode = "soft";
  87. nand-on-flash-bbt = <1>;
  88. status = "okay";
  89. at91bootstrap@0 {
  90. label = "at91bootstrap";
  91. reg = <0x0 0x20000>;
  92. };
  93. barebox@20000 {
  94. label = "barebox";
  95. reg = <0x20000 0x40000>;
  96. };
  97. bareboxenv@60000 {
  98. label = "bareboxenv";
  99. reg = <0x60000 0x20000>;
  100. };
  101. bareboxenv2@80000 {
  102. label = "bareboxenv2";
  103. reg = <0x80000 0x20000>;
  104. };
  105. oftree@80000 {
  106. label = "oftree";
  107. reg = <0xa0000 0x20000>;
  108. };
  109. kernel@a0000 {
  110. label = "kernel";
  111. reg = <0xc0000 0x400000>;
  112. };
  113. rootfs@4a0000 {
  114. label = "rootfs";
  115. reg = <0x4c0000 0x7800000>;
  116. };
  117. data@7ca0000 {
  118. label = "data";
  119. reg = <0x7cc0000 0x8340000>;
  120. };
  121. };
  122. usb0: ohci@00a00000 {
  123. num-ports = <2>;
  124. status = "okay";
  125. atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH
  126. &pioA 21 GPIO_ACTIVE_HIGH
  127. >;
  128. };
  129. };
  130. leds {
  131. compatible = "gpio-leds";
  132. d3 {
  133. label = "d3";
  134. gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
  135. linux,default-trigger = "heartbeat";
  136. };
  137. d2 {
  138. label = "d2";
  139. gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
  140. linux,default-trigger = "nand-disk";
  141. };
  142. };
  143. gpio_keys {
  144. compatible = "gpio-keys";
  145. left_click {
  146. label = "left_click";
  147. gpios = <&pioC 5 GPIO_ACTIVE_LOW>;
  148. linux,code = <272>;
  149. gpio-key,wakeup;
  150. };
  151. right_click {
  152. label = "right_click";
  153. gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
  154. linux,code = <273>;
  155. gpio-key,wakeup;
  156. };
  157. };
  158. i2c@0 {
  159. status = "okay";
  160. 24c512@50 {
  161. compatible = "24c512";
  162. reg = <0x50>;
  163. pagesize = <128>;
  164. };
  165. };
  166. };