at91sam9261ek.dts 4.7 KB

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