at91-sama5d4ek.dts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * at91-sama5d4ek.dts - Device Tree file for SAMA5D4 Evaluation Kit
  4. *
  5. * Copyright (C) 2014 Atmel,
  6. * 2014 Nicolas Ferre <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "sama5d4.dtsi"
  10. / {
  11. model = "Atmel SAMA5D4-EK";
  12. compatible = "atmel,sama5d4ek", "atmel,sama5d4", "atmel,sama5";
  13. chosen {
  14. stdout-path = "serial0:115200n8";
  15. };
  16. memory@20000000 {
  17. reg = <0x20000000 0x20000000>;
  18. };
  19. clocks {
  20. slow_xtal {
  21. clock-frequency = <32768>;
  22. };
  23. main_xtal {
  24. clock-frequency = <12000000>;
  25. };
  26. };
  27. ahb {
  28. apb {
  29. adc0: adc@fc034000 {
  30. pinctrl-names = "default";
  31. pinctrl-0 = <
  32. /* external trigger conflicts with USBA_VBUS */
  33. &pinctrl_adc0_ad0
  34. &pinctrl_adc0_ad1
  35. &pinctrl_adc0_ad2
  36. &pinctrl_adc0_ad3
  37. &pinctrl_adc0_ad4
  38. >;
  39. /* The vref depends on JP22 of EK. If connect 1-2 then use 3.3V. connect 2-3 use 3.0V */
  40. atmel,adc-vref = <3300>;
  41. /*atmel,adc-ts-wires = <4>;*/ /* Set up ADC touch screen */
  42. status = "okay"; /* Enable ADC IIO support */
  43. };
  44. mmc0: mmc@f8000000 {
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>;
  47. slot@0 {
  48. reg = <0>;
  49. bus-width = <4>;
  50. cd-gpios = <&pioE 5 0>;
  51. };
  52. };
  53. ssc0: ssc@f8008000 {
  54. status = "okay";
  55. };
  56. spi0: spi@f8010000 {
  57. cs-gpios = <&pioC 3 0>, <0>, <0>, <0>;
  58. status = "okay";
  59. flash@0 {
  60. compatible = "atmel,at25df321a";
  61. spi-max-frequency = <50000000>;
  62. reg = <0>;
  63. };
  64. };
  65. i2c0: i2c@f8014000 {
  66. status = "okay";
  67. wm8904: codec@1a {
  68. compatible = "wlf,wm8904";
  69. reg = <0x1a>;
  70. clocks = <&pmc PMC_TYPE_SYSTEM 10>;
  71. clock-names = "mclk";
  72. };
  73. qt1070:keyboard@1b {
  74. compatible = "qt1070";
  75. reg = <0x1b>;
  76. interrupt-parent = <&pioE>;
  77. interrupts = <25 0x0>;
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&pinctrl_qt1070_irq>;
  80. wakeup-source;
  81. };
  82. touchscreen@4c {
  83. compatible = "atmel,maxtouch";
  84. reg = <0x4c>;
  85. interrupt-parent = <&pioE>;
  86. interrupts = <24 0x0>;
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&pinctrl_mxt_ts>;
  89. };
  90. };
  91. macb0: ethernet@f8020000 {
  92. pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
  93. phy-mode = "rmii";
  94. status = "okay";
  95. ethernet-phy@1 {
  96. reg = <0x1>;
  97. interrupt-parent = <&pioE>;
  98. interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
  99. };
  100. };
  101. mmc1: mmc@fc000000 {
  102. pinctrl-names = "default";
  103. pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
  104. status = "okay";
  105. slot@0 {
  106. reg = <0>;
  107. bus-width = <4>;
  108. cd-gpios = <&pioE 6 0>;
  109. };
  110. };
  111. usart2: serial@fc008000 {
  112. status = "okay";
  113. };
  114. usart3: serial@fc00c000 {
  115. status = "okay";
  116. };
  117. usart4: serial@fc010000 {
  118. status = "okay";
  119. };
  120. tcb2: timer@fc024000 {
  121. timer@0 {
  122. compatible = "atmel,tcb-timer";
  123. reg = <0>;
  124. };
  125. timer@1 {
  126. compatible = "atmel,tcb-timer";
  127. reg = <1>;
  128. };
  129. };
  130. watchdog@fc068640 {
  131. status = "okay";
  132. };
  133. pinctrl@fc06a000 {
  134. board {
  135. pinctrl_macb0_phy_irq: macb0_phy_irq {
  136. atmel,pins =
  137. <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
  138. };
  139. pinctrl_mmc0_cd: mmc0_cd {
  140. atmel,pins =
  141. <AT91_PIOE 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  142. };
  143. pinctrl_mmc1_cd: mmc1_cd {
  144. atmel,pins =
  145. <AT91_PIOE 6 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  146. };
  147. pinctrl_pck2_as_audio_mck: pck2_as_audio_mck {
  148. atmel,pins =
  149. <AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE>;
  150. };
  151. pinctrl_usba_vbus: usba_vbus {
  152. atmel,pins =
  153. <AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
  154. };
  155. pinctrl_key_gpio: key_gpio_0 {
  156. atmel,pins =
  157. <AT91_PIOE 13 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PE13 gpio */
  158. };
  159. pinctrl_qt1070_irq: qt1070_irq {
  160. atmel,pins =
  161. <AT91_PIOE 25 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  162. };
  163. pinctrl_mxt_ts: mxt_irq {
  164. atmel,pins =
  165. <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  166. };
  167. };
  168. };
  169. };
  170. usb0: gadget@400000 {
  171. atmel,vbus-gpio = <&pioE 31 GPIO_ACTIVE_HIGH>;
  172. pinctrl-names = "default";
  173. pinctrl-0 = <&pinctrl_usba_vbus>;
  174. status = "okay";
  175. };
  176. usb1: ohci@500000 {
  177. num-ports = <3>;
  178. atmel,vbus-gpio = <0 /* &pioE 10 GPIO_ACTIVE_LOW */
  179. &pioE 11 GPIO_ACTIVE_LOW
  180. &pioE 12 GPIO_ACTIVE_LOW
  181. >;
  182. status = "okay";
  183. };
  184. usb2: ehci@600000 {
  185. status = "okay";
  186. };
  187. ebi: ebi@10000000 {
  188. pinctrl-0 = <&pinctrl_ebi_cs3 &pinctrl_ebi_nrd_nandoe
  189. &pinctrl_ebi_nwe_nandwe &pinctrl_ebi_nandrdy
  190. &pinctrl_ebi_data_0_7 &pinctrl_ebi_nand_addr>;
  191. pinctrl-names = "default";
  192. status = "okay";
  193. nand_controller: nand-controller {
  194. status = "okay";
  195. nand@3 {
  196. reg = <0x3 0x0 0x2>;
  197. atmel,rb = <0>;
  198. nand-bus-width = <8>;
  199. nand-ecc-mode = "hw";
  200. nand-on-flash-bbt;
  201. label = "atmel_nand";
  202. partitions {
  203. compatible = "fixed-partitions";
  204. #address-cells = <1>;
  205. #size-cells = <1>;
  206. at91bootstrap@0 {
  207. label = "at91bootstrap";
  208. reg = <0x0 0x40000>;
  209. };
  210. bootloader@40000 {
  211. label = "bootloader";
  212. reg = <0x40000 0x80000>;
  213. };
  214. bootloaderenv@c0000 {
  215. label = "bootloader env";
  216. reg = <0xc0000 0xc0000>;
  217. };
  218. dtb@180000 {
  219. label = "device tree";
  220. reg = <0x180000 0x80000>;
  221. };
  222. kernel@200000 {
  223. label = "kernel";
  224. reg = <0x200000 0x600000>;
  225. };
  226. rootfs@800000 {
  227. label = "rootfs";
  228. reg = <0x800000 0x0f800000>;
  229. };
  230. };
  231. };
  232. };
  233. };
  234. };
  235. gpio-keys {
  236. compatible = "gpio-keys";
  237. pinctrl-names = "default";
  238. pinctrl-0 = <&pinctrl_key_gpio>;
  239. button {
  240. label = "pb_user1";
  241. gpios = <&pioE 13 GPIO_ACTIVE_HIGH>;
  242. linux,code = <0x100>;
  243. wakeup-source;
  244. };
  245. };
  246. leds {
  247. compatible = "gpio-leds";
  248. status = "okay";
  249. d8 {
  250. label = "d8";
  251. /* PE28, conflicts with usart4 rts pin */
  252. gpios = <&pioE 28 GPIO_ACTIVE_LOW>;
  253. };
  254. d9 {
  255. label = "d9";
  256. gpios = <&pioE 9 GPIO_ACTIVE_HIGH>;
  257. };
  258. d10 {
  259. label = "d10";
  260. gpios = <&pioE 8 GPIO_ACTIVE_LOW>;
  261. linux,default-trigger = "heartbeat";
  262. };
  263. };
  264. sound {
  265. compatible = "atmel,asoc-wm8904";
  266. pinctrl-names = "default";
  267. pinctrl-0 = <&pinctrl_pck2_as_audio_mck>;
  268. atmel,model = "wm8904 @ SAMA5D4EK";
  269. atmel,audio-routing =
  270. "Headphone Jack", "HPOUTL",
  271. "Headphone Jack", "HPOUTR",
  272. "IN1L", "Line In Jack",
  273. "IN1R", "Line In Jack";
  274. atmel,ssc-controller = <&ssc0>;
  275. atmel,audio-codec = <&wm8904>;
  276. };
  277. };