at91sam9rlek.dts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * at91sam9rlek.dts - Device Tree file for Atmel at91sam9rl reference board
  4. *
  5. * Copyright (C) 2014 Microchip
  6. * Alexandre Belloni <[email protected]>
  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@20000000 {
  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@500000 {
  30. display = <&display0>;
  31. status = "okay";
  32. display0: panel {
  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. ebi: ebi@10000000 {
  58. pinctrl-0 = <&pinctrl_ebi_addr_nand>;
  59. pinctrl-names = "default";
  60. status = "okay";
  61. nand_controller: nand-controller {
  62. status = "okay";
  63. pinctrl-0 = <&pinctrl_nand_oe_we
  64. &pinctrl_nand_cs
  65. &pinctrl_nand_rb>;
  66. pinctrl-names = "default";
  67. nand@3 {
  68. reg = <0x3 0x0 0x800000>;
  69. rb-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
  70. cs-gpios = <&pioB 6 GPIO_ACTIVE_HIGH>;
  71. nand-bus-width = <8>;
  72. nand-ecc-mode = "soft";
  73. nand-on-flash-bbt;
  74. label = "atmel_nand";
  75. partitions {
  76. compatible = "fixed-partitions";
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. at91bootstrap@0 {
  80. label = "at91bootstrap";
  81. reg = <0x0 0x40000>;
  82. };
  83. bootloader@40000 {
  84. label = "bootloader";
  85. reg = <0x40000 0x80000>;
  86. };
  87. bootloaderenv@c0000 {
  88. label = "bootloader env";
  89. reg = <0xc0000 0xc0000>;
  90. };
  91. dtb@180000 {
  92. label = "device tree";
  93. reg = <0x180000 0x80000>;
  94. };
  95. kernel@200000 {
  96. label = "kernel";
  97. reg = <0x200000 0x600000>;
  98. };
  99. rootfs@800000 {
  100. label = "rootfs";
  101. reg = <0x800000 0x0f800000>;
  102. };
  103. };
  104. };
  105. };
  106. };
  107. apb {
  108. tcb0: timer@fffa0000 {
  109. timer@0 {
  110. compatible = "atmel,tcb-timer";
  111. reg = <0>, <1>;
  112. };
  113. timer@2 {
  114. compatible = "atmel,tcb-timer";
  115. reg = <2>;
  116. };
  117. };
  118. mmc0: mmc@fffa4000 {
  119. pinctrl-0 = <
  120. &pinctrl_board_mmc0
  121. &pinctrl_mmc0_clk
  122. &pinctrl_mmc0_slot0_cmd_dat0
  123. &pinctrl_mmc0_slot0_dat1_3>;
  124. status = "okay";
  125. slot@0 {
  126. reg = <0>;
  127. bus-width = <4>;
  128. cd-gpios = <&pioA 15 GPIO_ACTIVE_HIGH>;
  129. };
  130. };
  131. usart0: serial@fffb0000 {
  132. pinctrl-0 = <
  133. &pinctrl_usart0
  134. &pinctrl_usart0_rts
  135. &pinctrl_usart0_cts>;
  136. status = "okay";
  137. };
  138. adc0: adc@fffd0000 {
  139. pinctrl-names = "default";
  140. pinctrl-0 = <
  141. &pinctrl_adc0_ad0
  142. &pinctrl_adc0_ad1
  143. &pinctrl_adc0_ad2
  144. &pinctrl_adc0_ad3
  145. &pinctrl_adc0_ad4
  146. &pinctrl_adc0_ad5
  147. &pinctrl_adc0_adtrg>;
  148. atmel,adc-ts-wires = <4>;
  149. status = "okay";
  150. };
  151. usb0: gadget@fffd4000 {
  152. atmel,vbus-gpio = <&pioA 8 GPIO_ACTIVE_HIGH>;
  153. status = "okay";
  154. };
  155. spi0: spi@fffcc000 {
  156. status = "okay";
  157. cs-gpios = <&pioA 28 0>, <0>, <0>, <0>;
  158. flash@0 {
  159. compatible = "atmel,at45", "atmel,dataflash";
  160. spi-max-frequency = <15000000>;
  161. reg = <0>;
  162. };
  163. };
  164. pwm0: pwm@fffc8000 {
  165. status = "okay";
  166. pinctrl-names = "default";
  167. pinctrl-0 = <&pinctrl_pwm0_pwm1_2>,
  168. <&pinctrl_pwm0_pwm2_2>;
  169. };
  170. dbgu: serial@fffff200 {
  171. status = "okay";
  172. };
  173. pinctrl@fffff400 {
  174. mmc0 {
  175. pinctrl_board_mmc0: mmc0-board {
  176. atmel,pins =
  177. <AT91_PIOA 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  178. };
  179. };
  180. };
  181. watchdog@fffffd40 {
  182. status = "okay";
  183. };
  184. rtc@fffffd20 {
  185. atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
  186. };
  187. rtc@fffffe00 {
  188. status = "okay";
  189. };
  190. };
  191. };
  192. led-controller-1 {
  193. compatible = "pwm-leds";
  194. led-1 {
  195. label = "ds1";
  196. pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>;
  197. max-brightness = <255>;
  198. };
  199. led-2 {
  200. label = "ds2";
  201. pwms = <&pwm0 2 5000 PWM_POLARITY_INVERTED>;
  202. max-brightness = <255>;
  203. };
  204. };
  205. led-controller-2 {
  206. compatible = "gpio-leds";
  207. led-3 {
  208. label = "ds3";
  209. gpios = <&pioD 14 GPIO_ACTIVE_HIGH>;
  210. linux,default-trigger = "heartbeat";
  211. };
  212. };
  213. gpio-keys {
  214. compatible = "gpio-keys";
  215. button-right-click {
  216. label = "right_click";
  217. gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
  218. linux,code = <273>;
  219. wakeup-source;
  220. };
  221. button-left-click {
  222. label = "left_click";
  223. gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
  224. linux,code = <272>;
  225. wakeup-source;
  226. };
  227. };
  228. i2c-gpio-0 {
  229. status = "okay";
  230. };
  231. i2c-gpio-1 {
  232. status = "okay";
  233. };
  234. };