at91sam9263ek.dts 3.3 KB

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