at91-sama5d4_xplained.dts 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * at91-sama5d4_xplained.dts - Device Tree file for SAMA5D4 Xplained board
  4. *
  5. * Copyright (C) 2015 Atmel,
  6. * 2015 Josh Wu <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "sama5d4.dtsi"
  10. #include <dt-bindings/input/input.h>
  11. / {
  12. model = "Atmel SAMA5D4 Xplained";
  13. compatible = "atmel,sama5d4-xplained", "atmel,sama5d4", "atmel,sama5";
  14. chosen {
  15. stdout-path = "serial0:115200n8";
  16. };
  17. memory@20000000 {
  18. reg = <0x20000000 0x20000000>;
  19. };
  20. clocks {
  21. slow_xtal {
  22. clock-frequency = <32768>;
  23. };
  24. main_xtal {
  25. clock-frequency = <12000000>;
  26. };
  27. };
  28. ahb {
  29. apb {
  30. uart0: serial@f8004000 {
  31. atmel,use-dma-rx;
  32. atmel,use-dma-tx;
  33. status = "okay";
  34. };
  35. i2c0: i2c@f8014000 {
  36. i2c-digital-filter;
  37. status = "okay";
  38. };
  39. macb0: ethernet@f8020000 {
  40. phy-mode = "rmii";
  41. status = "okay";
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
  44. phy0: ethernet-phy@1 {
  45. interrupt-parent = <&pioE>;
  46. interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
  47. reg = <1>;
  48. };
  49. };
  50. mmc1: mmc@fc000000 {
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
  53. vmmc-supply = <&vcc_mmc1_reg>;
  54. vqmmc-supply = <&vcc_3v3_reg>;
  55. status = "okay";
  56. slot@0 {
  57. reg = <0>;
  58. bus-width = <4>;
  59. cd-gpios = <&pioE 3 0>;
  60. };
  61. };
  62. usart3: serial@fc00c000 {
  63. atmel,use-dma-rx;
  64. atmel,use-dma-tx;
  65. status = "okay";
  66. };
  67. usart4: serial@fc010000 {
  68. status = "okay";
  69. };
  70. spi1: spi@fc018000 {
  71. pinctrl-names = "default", "cs";
  72. pinctrl-1 = <&pinctrl_spi1_cs>;
  73. cs-gpios = <&pioB 21 0>;
  74. status = "okay";
  75. };
  76. tcb2: timer@fc024000 {
  77. timer0: timer@0 {
  78. compatible = "atmel,tcb-timer";
  79. reg = <0>;
  80. };
  81. timer1: timer@1 {
  82. compatible = "atmel,tcb-timer";
  83. reg = <1>;
  84. };
  85. };
  86. adc0: adc@fc034000 {
  87. pinctrl-names = "default";
  88. pinctrl-0 = <
  89. /* external trigger conflicts with USBA_VBUS */
  90. &pinctrl_adc0_ad0
  91. &pinctrl_adc0_ad1
  92. &pinctrl_adc0_ad2
  93. &pinctrl_adc0_ad3
  94. &pinctrl_adc0_ad4
  95. >;
  96. atmel,adc-vref = <3300>;
  97. status = "okay";
  98. };
  99. watchdog@fc068640 {
  100. status = "okay";
  101. };
  102. pinctrl@fc06a000 {
  103. board {
  104. pinctrl_mmc1_cd: mmc1_cd {
  105. atmel,pins =
  106. <AT91_PIOE 3 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  107. };
  108. pinctrl_usba_vbus: usba_vbus {
  109. atmel,pins =
  110. <AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
  111. };
  112. pinctrl_usb_default: usb_default {
  113. atmel,pins =
  114. <AT91_PIOE 11 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
  115. AT91_PIOE 14 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
  116. };
  117. pinctrl_key_gpio: key_gpio_0 {
  118. atmel,pins =
  119. <AT91_PIOE 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  120. };
  121. pinctrl_macb0_phy_irq: macb0_phy_irq_0 {
  122. atmel,pins =
  123. <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  124. };
  125. pinctrl_spi1_cs: spi1_cs_default {
  126. atmel,pins =
  127. <AT91_PIOB 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
  128. };
  129. pinctrl_gpio_leds: gpio_leds_default {
  130. atmel,pins =
  131. <AT91_PIOD 30 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
  132. AT91_PIOE 15 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
  133. };
  134. pinctrl_vcc_mmc1_reg: vcc_mmc1_reg {
  135. atmel,pins =
  136. <AT91_PIOE 4 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
  137. };
  138. };
  139. };
  140. };
  141. usb0: gadget@400000 {
  142. atmel,vbus-gpio = <&pioE 31 GPIO_ACTIVE_HIGH>;
  143. pinctrl-names = "default";
  144. pinctrl-0 = <&pinctrl_usba_vbus>;
  145. status = "okay";
  146. };
  147. usb1: ohci@500000 {
  148. num-ports = <3>;
  149. atmel,vbus-gpio = <0
  150. &pioE 11 GPIO_ACTIVE_HIGH
  151. &pioE 14 GPIO_ACTIVE_HIGH
  152. >;
  153. pinctrl-names = "default";
  154. pinctrl-0 = <&pinctrl_usb_default>;
  155. status = "okay";
  156. };
  157. usb2: ehci@600000 {
  158. status = "okay";
  159. };
  160. ebi: ebi@10000000 {
  161. pinctrl-0 = <&pinctrl_ebi_cs3 &pinctrl_ebi_nrd_nandoe
  162. &pinctrl_ebi_nwe_nandwe &pinctrl_ebi_nandrdy
  163. &pinctrl_ebi_data_0_7 &pinctrl_ebi_nand_addr>;
  164. pinctrl-names = "default";
  165. status = "okay";
  166. nand_controller: nand-controller {
  167. status = "okay";
  168. nand@3 {
  169. reg = <0x3 0x0 0x2>;
  170. atmel,rb = <0>;
  171. nand-bus-width = <8>;
  172. nand-ecc-mode = "hw";
  173. nand-on-flash-bbt;
  174. label = "atmel_nand";
  175. partitions {
  176. compatible = "fixed-partitions";
  177. #address-cells = <1>;
  178. #size-cells = <1>;
  179. at91bootstrap@0 {
  180. label = "at91bootstrap";
  181. reg = <0x0 0x40000>;
  182. };
  183. bootloader@40000 {
  184. label = "bootloader";
  185. reg = <0x40000 0xc0000>;
  186. };
  187. bootloaderenvred@100000 {
  188. label = "bootloader env redundant";
  189. reg = <0x100000 0x40000>;
  190. };
  191. bootloaderenv@140000 {
  192. label = "bootloader env";
  193. reg = <0x140000 0x40000>;
  194. };
  195. dtb@180000 {
  196. label = "device tree";
  197. reg = <0x180000 0x80000>;
  198. };
  199. kernel@200000 {
  200. label = "kernel";
  201. reg = <0x200000 0x600000>;
  202. };
  203. rootfs@800000 {
  204. label = "rootfs";
  205. reg = <0x800000 0x1f800000>;
  206. };
  207. };
  208. };
  209. };
  210. };
  211. };
  212. gpio-keys {
  213. compatible = "gpio-keys";
  214. pinctrl-names = "default";
  215. pinctrl-0 = <&pinctrl_key_gpio>;
  216. button {
  217. label = "pb_user1";
  218. gpios = <&pioE 8 GPIO_ACTIVE_HIGH>;
  219. linux,code = <KEY_PROG1>;
  220. wakeup-source;
  221. };
  222. };
  223. leds {
  224. compatible = "gpio-leds";
  225. pinctrl-names = "default";
  226. pinctrl-0 = <&pinctrl_gpio_leds>;
  227. status = "okay";
  228. d8 {
  229. label = "d8";
  230. gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
  231. default-state = "on";
  232. };
  233. d10 {
  234. label = "d10";
  235. gpios = <&pioE 15 GPIO_ACTIVE_LOW>;
  236. linux,default-trigger = "heartbeat";
  237. };
  238. };
  239. vcc_3v3_reg: fixedregulator_3v3 {
  240. compatible = "regulator-fixed";
  241. regulator-name = "VCC 3V3";
  242. regulator-min-microvolt = <3300000>;
  243. regulator-max-microvolt = <3300000>;
  244. regulator-boot-on;
  245. regulator-always-on;
  246. };
  247. vcc_mmc1_reg: fixedregulator_mmc1 {
  248. compatible = "regulator-fixed";
  249. pinctrl-names = "default";
  250. pinctrl-0 = <&pinctrl_vcc_mmc1_reg>;
  251. gpio = <&pioE 4 GPIO_ACTIVE_LOW>;
  252. regulator-name = "VDD MCI1";
  253. regulator-min-microvolt = <3300000>;
  254. regulator-max-microvolt = <3300000>;
  255. vin-supply = <&vcc_3v3_reg>;
  256. regulator-always-on;
  257. };
  258. };