at91sam9rlek.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. /*
  2. * at91sam9rlek.dts - Device Tree file for Atmel at91sam9rl reference board
  3. *
  4. * Copyright (C) 2014 Alexandre Belloni <alexandre.belloni@free-electrons.com>
  5. *
  6. * Licensed under GPLv2 only
  7. */
  8. /dts-v1/;
  9. #include "at91sam9rl.dtsi"
  10. / {
  11. model = "Atmel at91sam9rlek";
  12. compatible = "atmel,at91sam9rlek", "atmel,at91sam9rl", "atmel,at91sam9";
  13. chosen {
  14. bootargs = "rootfstype=ubifs root=ubi0:rootfs ubi.mtd=5 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 = <12000000>;
  26. };
  27. };
  28. ahb {
  29. fb0: fb@00500000 {
  30. display = <&display0>;
  31. status = "okay";
  32. display0: display {
  33. bits-per-pixel = <16>;
  34. atmel,lcdcon-backlight;
  35. atmel,dmacon = <0x1>;
  36. atmel,lcdcon2 = <0x80008002>;
  37. atmel,guard-time = <1>;
  38. atmel,lcd-wiring-mode = "RGB";
  39. display-timings {
  40. native-mode = <&timing0>;
  41. timing0: timing0 {
  42. clock-frequency = <4965000>;
  43. hactive = <240>;
  44. vactive = <320>;
  45. hback-porch = <1>;
  46. hfront-porch = <33>;
  47. vback-porch = <1>;
  48. vfront-porch = <0>;
  49. hsync-len = <5>;
  50. vsync-len = <1>;
  51. hsync-active = <1>;
  52. vsync-active = <1>;
  53. };
  54. };
  55. };
  56. };
  57. nand0: nand@40000000 {
  58. nand-bus-width = <8>;
  59. nand-ecc-mode = "soft";
  60. nand-on-flash-bbt = <1>;
  61. status = "okay";
  62. at91bootstrap@0 {
  63. label = "at91bootstrap";
  64. reg = <0x0 0x40000>;
  65. };
  66. bootloader@40000 {
  67. label = "bootloader";
  68. reg = <0x40000 0x80000>;
  69. };
  70. bootloaderenv@c0000 {
  71. label = "bootloader env";
  72. reg = <0xc0000 0xc0000>;
  73. };
  74. dtb@180000 {
  75. label = "device tree";
  76. reg = <0x180000 0x80000>;
  77. };
  78. kernel@200000 {
  79. label = "kernel";
  80. reg = <0x200000 0x600000>;
  81. };
  82. rootfs@800000 {
  83. label = "rootfs";
  84. reg = <0x800000 0x0f800000>;
  85. };
  86. };
  87. apb {
  88. mmc0: mmc@fffa4000 {
  89. pinctrl-0 = <
  90. &pinctrl_board_mmc0
  91. &pinctrl_mmc0_clk
  92. &pinctrl_mmc0_slot0_cmd_dat0
  93. &pinctrl_mmc0_slot0_dat1_3>;
  94. status = "okay";
  95. slot@0 {
  96. reg = <0>;
  97. bus-width = <4>;
  98. cd-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
  99. };
  100. };
  101. usart0: serial@fffb0000 {
  102. pinctrl-0 = <
  103. &pinctrl_usart0
  104. &pinctrl_usart0_rts
  105. &pinctrl_usart0_cts>;
  106. status = "okay";
  107. };
  108. adc0: adc@fffd0000 {
  109. pinctrl-names = "default";
  110. pinctrl-0 = <
  111. &pinctrl_adc0_ad0
  112. &pinctrl_adc0_ad1
  113. &pinctrl_adc0_ad2
  114. &pinctrl_adc0_ad3
  115. &pinctrl_adc0_ad4
  116. &pinctrl_adc0_ad5
  117. &pinctrl_adc0_adtrg>;
  118. atmel,adc-ts-wires = <4>;
  119. status = "okay";
  120. };
  121. usb0: gadget@fffd4000 {
  122. atmel,vbus-gpio = <&pioA 8 GPIO_ACTIVE_HIGH>;
  123. status = "okay";
  124. };
  125. spi0: spi@fffcc000 {
  126. status = "okay";
  127. cs-gpios = <&pioA 28 0>, <0>, <0>, <0>;
  128. mtd_dataflash@0 {
  129. compatible = "atmel,at45", "atmel,dataflash";
  130. spi-max-frequency = <15000000>;
  131. reg = <0>;
  132. };
  133. };
  134. pwm0: pwm@fffc8000 {
  135. status = "okay";
  136. pinctrl-names = "default";
  137. pinctrl-0 = <&pinctrl_pwm0_pwm1_2>,
  138. <&pinctrl_pwm0_pwm2_2>;
  139. };
  140. dbgu: serial@fffff200 {
  141. status = "okay";
  142. };
  143. pinctrl@fffff400 {
  144. mmc0 {
  145. pinctrl_board_mmc0: mmc0-board {
  146. atmel,pins =
  147. <AT91_PIOA 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  148. };
  149. };
  150. };
  151. watchdog@fffffd40 {
  152. status = "okay";
  153. };
  154. rtc@fffffe00 {
  155. status = "okay";
  156. };
  157. };
  158. };
  159. pwmleds {
  160. compatible = "pwm-leds";
  161. ds1 {
  162. label = "ds1";
  163. pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
  164. max-brightness = <255>;
  165. };
  166. ds2 {
  167. label = "ds2";
  168. pwms = <&pwm0 2 5000 PWM_POLARITY_INVERTED>;
  169. max-brightness = <255>;
  170. };
  171. };
  172. leds {
  173. compatible = "gpio-leds";
  174. ds3 {
  175. label = "ds3";
  176. gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
  177. linux,default-trigger = "heartbeat";
  178. };
  179. };
  180. gpio_keys {
  181. compatible = "gpio-keys";
  182. right_click {
  183. label = "right_click";
  184. gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
  185. linux,code = <273>;
  186. wakeup-source;
  187. };
  188. left_click {
  189. label = "left_click";
  190. gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
  191. linux,code = <272>;
  192. wakeup-source;
  193. };
  194. };
  195. i2c-gpio-0 {
  196. status = "okay";
  197. };
  198. i2c-gpio-1 {
  199. status = "okay";
  200. };
  201. };