at91sam9261ek.dts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. /*
  2. * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board
  3. *
  4. * Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com>
  5. *
  6. * Licensed under GPLv2 only.
  7. */
  8. /dts-v1/;
  9. #include "at91sam9261.dtsi"
  10. / {
  11. model = "Atmel at91sam9261ek";
  12. compatible = "atmel,at91sam9261ek", "atmel,at91sam9261", "atmel,at91sam9";
  13. chosen {
  14. bootargs = "rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw";
  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 = <18432000>;
  26. };
  27. };
  28. ahb {
  29. usb0: ohci@00500000 {
  30. status = "okay";
  31. };
  32. fb0: fb@0x00600000 {
  33. display = <&display0>;
  34. atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>;
  35. status = "okay";
  36. display0: display {
  37. bits-per-pixel = <16>;
  38. atmel,lcdcon-backlight;
  39. atmel,dmacon = <0x1>;
  40. atmel,lcdcon2 = <0x80008002>;
  41. atmel,guard-time = <1>;
  42. atmel,lcd-wiring-mode = "BRG";
  43. display-timings {
  44. native-mode = <&timing0>;
  45. timing0: timing0 {
  46. clock-frequency = <4965000>;
  47. hactive = <240>;
  48. vactive = <320>;
  49. hback-porch = <1>;
  50. hfront-porch = <33>;
  51. vback-porch = <1>;
  52. vfront-porch = <0>;
  53. hsync-len = <5>;
  54. vsync-len = <1>;
  55. hsync-active = <1>;
  56. vsync-active = <1>;
  57. };
  58. };
  59. };
  60. };
  61. nand0: nand@40000000 {
  62. nand-bus-width = <8>;
  63. nand-ecc-mode = "soft";
  64. nand-on-flash-bbt;
  65. status = "okay";
  66. at91bootstrap@0 {
  67. label = "at91bootstrap";
  68. reg = <0x0 0x40000>;
  69. };
  70. bootloader@40000 {
  71. label = "bootloader";
  72. reg = <0x40000 0x80000>;
  73. };
  74. bootloaderenv@c0000 {
  75. label = "bootloader env";
  76. reg = <0xc0000 0xc0000>;
  77. };
  78. dtb@180000 {
  79. label = "device tree";
  80. reg = <0x180000 0x80000>;
  81. };
  82. kernel@200000 {
  83. label = "kernel";
  84. reg = <0x200000 0x600000>;
  85. };
  86. rootfs@800000 {
  87. label = "rootfs";
  88. reg = <0x800000 0x0f800000>;
  89. };
  90. };
  91. apb {
  92. usb1: gadget@fffa4000 {
  93. atmel,vbus-gpio = <&pioB 29 GPIO_ACTIVE_HIGH>;
  94. status = "okay";
  95. };
  96. spi0: spi@fffc8000 {
  97. cs-gpios = <&pioA 3 0>, <0>, <&pioA 28 0>, <0>;
  98. status = "okay";
  99. mtd_dataflash@0 {
  100. compatible = "atmel,at45", "atmel,dataflash";
  101. reg = <0>;
  102. spi-max-frequency = <15000000>;
  103. };
  104. tsc2046@0 {
  105. reg = <2>;
  106. compatible = "ti,ads7843";
  107. interrupts-extended = <&pioC 2 IRQ_TYPE_EDGE_BOTH>;
  108. spi-max-frequency = <3000000>;
  109. pendown-gpio = <&pioC 2 GPIO_ACTIVE_HIGH>;
  110. ti,x-min = /bits/ 16 <150>;
  111. ti,x-max = /bits/ 16 <3830>;
  112. ti,y-min = /bits/ 16 <190>;
  113. ti,y-max = /bits/ 16 <3830>;
  114. ti,vref-delay-usecs = /bits/ 16 <450>;
  115. ti,x-plate-ohms = /bits/ 16 <450>;
  116. ti,y-plate-ohms = /bits/ 16 <250>;
  117. ti,pressure-max = /bits/ 16 <15000>;
  118. ti,debounce-rep = /bits/ 16 <0>;
  119. ti,debounce-tol = /bits/ 16 <65535>;
  120. ti,debounce-max = /bits/ 16 <1>;
  121. wakeup-source;
  122. };
  123. };
  124. dbgu: serial@fffff200 {
  125. status = "okay";
  126. };
  127. watchdog@fffffd40 {
  128. status = "okay";
  129. };
  130. };
  131. };
  132. leds {
  133. compatible = "gpio-leds";
  134. ds8 {
  135. label = "ds8";
  136. gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
  137. linux,default-trigger = "none";
  138. };
  139. ds7 {
  140. label = "ds7";
  141. gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
  142. linux,default-trigger = "nand-disk";
  143. };
  144. ds1 {
  145. label = "ds1";
  146. gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
  147. linux,default-trigger = "heartbeat";
  148. };
  149. };
  150. gpio_keys {
  151. compatible = "gpio-keys";
  152. button_0 {
  153. label = "button_0";
  154. gpios = <&pioA 27 GPIO_ACTIVE_LOW>;
  155. linux,code = <256>;
  156. wakeup-source;
  157. };
  158. button_1 {
  159. label = "button_1";
  160. gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
  161. linux,code = <257>;
  162. wakeup-source;
  163. };
  164. button_2 {
  165. label = "button_2";
  166. gpios = <&pioA 25 GPIO_ACTIVE_LOW>;
  167. linux,code = <258>;
  168. wakeup-source;
  169. };
  170. button_3 {
  171. label = "button_3";
  172. gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
  173. linux,code = <259>;
  174. wakeup-source;
  175. };
  176. };
  177. };