at91sam9261ek.dts 4.1 KB

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