at91-sama5d3_xplained.dts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. /*
  2. * at91-sama5d3_xplained.dts - Device Tree file for the SAMA5D3 Xplained board
  3. *
  4. * Copyright (C) 2014 Atmel,
  5. * 2014 Nicolas Ferre <nicolas.ferre@atmel.com>
  6. *
  7. * Licensed under GPLv2 or later.
  8. */
  9. /dts-v1/;
  10. #include "sama5d36.dtsi"
  11. / {
  12. model = "SAMA5D3 Xplained";
  13. compatible = "atmel,sama5d3-xplained", "atmel,sama5d3", "atmel,sama5";
  14. chosen {
  15. bootargs = "console=ttyS0,115200";
  16. };
  17. memory {
  18. reg = <0x20000000 0x10000000>;
  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. mmc0: mmc@f0000000 {
  31. pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>;
  32. status = "okay";
  33. slot@0 {
  34. reg = <0>;
  35. bus-width = <8>;
  36. cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>;
  37. };
  38. };
  39. spi0: spi@f0004000 {
  40. cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>;
  41. status = "okay";
  42. };
  43. can0: can@f000c000 {
  44. status = "okay";
  45. };
  46. i2c0: i2c@f0014000 {
  47. pinctrl-0 = <&pinctrl_i2c0_pu>;
  48. status = "okay";
  49. };
  50. i2c1: i2c@f0018000 {
  51. status = "okay";
  52. pmic: act8865@5b {
  53. compatible = "active-semi,act8865";
  54. reg = <0x5b>;
  55. status = "okay";
  56. regulators {
  57. vcc_1v8_reg: DCDC_REG1 {
  58. regulator-name = "VCC_1V8";
  59. regulator-min-microvolt = <1800000>;
  60. regulator-max-microvolt = <1800000>;
  61. regulator-always-on;
  62. };
  63. vcc_1v2_reg: DCDC_REG2 {
  64. regulator-name = "VCC_1V2";
  65. regulator-min-microvolt = <1200000>;
  66. regulator-max-microvolt = <1200000>;
  67. regulator-always-on;
  68. };
  69. vcc_3v3_reg: DCDC_REG3 {
  70. regulator-name = "VCC_3V3";
  71. regulator-min-microvolt = <3300000>;
  72. regulator-max-microvolt = <3300000>;
  73. regulator-always-on;
  74. };
  75. vddfuse_reg: LDO_REG1 {
  76. regulator-name = "FUSE_2V5";
  77. regulator-min-microvolt = <2500000>;
  78. regulator-max-microvolt = <2500000>;
  79. };
  80. vddana_reg: LDO_REG2 {
  81. regulator-name = "VDDANA";
  82. regulator-min-microvolt = <3300000>;
  83. regulator-max-microvolt = <3300000>;
  84. regulator-always-on;
  85. };
  86. };
  87. };
  88. };
  89. macb0: ethernet@f0028000 {
  90. phy-mode = "rgmii";
  91. status = "okay";
  92. };
  93. pwm0: pwm@f002c000 {
  94. pinctrl-names = "default";
  95. pinctrl-0 = <&pinctrl_pwm0_pwmh0_0 &pinctrl_pwm0_pwmh1_0>;
  96. status = "okay";
  97. };
  98. usart0: serial@f001c000 {
  99. status = "okay";
  100. };
  101. usart1: serial@f0020000 {
  102. pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
  103. status = "okay";
  104. };
  105. uart0: serial@f0024000 {
  106. status = "okay";
  107. };
  108. mmc1: mmc@f8000000 {
  109. pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
  110. status = "okay";
  111. slot@0 {
  112. reg = <0>;
  113. bus-width = <4>;
  114. cd-gpios = <&pioE 1 GPIO_ACTIVE_HIGH>;
  115. };
  116. };
  117. spi1: spi@f8008000 {
  118. cs-gpios = <&pioC 25 0>;
  119. status = "okay";
  120. };
  121. adc0: adc@f8018000 {
  122. pinctrl-0 = <
  123. &pinctrl_adc0_adtrg
  124. &pinctrl_adc0_ad0
  125. &pinctrl_adc0_ad1
  126. &pinctrl_adc0_ad2
  127. &pinctrl_adc0_ad3
  128. &pinctrl_adc0_ad4
  129. &pinctrl_adc0_ad5
  130. &pinctrl_adc0_ad6
  131. &pinctrl_adc0_ad7
  132. &pinctrl_adc0_ad8
  133. &pinctrl_adc0_ad9
  134. >;
  135. status = "okay";
  136. };
  137. i2c2: i2c@f801c000 {
  138. dmas = <0>, <0>; /* Do not use DMA for i2c2 */
  139. pinctrl-0 = <&pinctrl_i2c2_pu>;
  140. status = "okay";
  141. };
  142. macb1: ethernet@f802c000 {
  143. phy-mode = "rmii";
  144. status = "okay";
  145. };
  146. dbgu: serial@ffffee00 {
  147. status = "okay";
  148. };
  149. pinctrl@fffff200 {
  150. board {
  151. pinctrl_i2c0_pu: i2c0_pu {
  152. atmel,pins =
  153. <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
  154. <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
  155. };
  156. pinctrl_i2c2_pu: i2c2_pu {
  157. atmel,pins =
  158. <AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
  159. <AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
  160. };
  161. pinctrl_mmc0_cd: mmc0_cd {
  162. atmel,pins =
  163. <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  164. };
  165. pinctrl_mmc1_cd: mmc1_cd {
  166. atmel,pins =
  167. <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
  168. };
  169. pinctrl_usba_vbus: usba_vbus {
  170. atmel,pins =
  171. <AT91_PIOE 9 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PE9, conflicts with A9 */
  172. };
  173. };
  174. };
  175. pmc: pmc@fffffc00 {
  176. main: mainck {
  177. clock-frequency = <12000000>;
  178. };
  179. };
  180. };
  181. nand0: nand@60000000 {
  182. nand-bus-width = <8>;
  183. nand-ecc-mode = "hw";
  184. atmel,has-pmecc;
  185. atmel,pmecc-cap = <4>;
  186. atmel,pmecc-sector-size = <512>;
  187. nand-on-flash-bbt;
  188. status = "okay";
  189. at91bootstrap@0 {
  190. label = "at91bootstrap";
  191. reg = <0x0 0x40000>;
  192. };
  193. bootloader@40000 {
  194. label = "bootloader";
  195. reg = <0x40000 0x80000>;
  196. };
  197. bootloaderenv@c0000 {
  198. label = "bootloader env";
  199. reg = <0xc0000 0xc0000>;
  200. };
  201. dtb@180000 {
  202. label = "device tree";
  203. reg = <0x180000 0x80000>;
  204. };
  205. kernel@200000 {
  206. label = "kernel";
  207. reg = <0x200000 0x600000>;
  208. };
  209. rootfs@800000 {
  210. label = "rootfs";
  211. reg = <0x800000 0x0f800000>;
  212. };
  213. };
  214. usb0: gadget@00500000 {
  215. atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>; /* PE9, conflicts with A9 */
  216. pinctrl-names = "default";
  217. pinctrl-0 = <&pinctrl_usba_vbus>;
  218. status = "okay";
  219. };
  220. usb1: ohci@00600000 {
  221. num-ports = <3>;
  222. atmel,vbus-gpio = <0
  223. &pioE 3 GPIO_ACTIVE_LOW
  224. &pioE 4 GPIO_ACTIVE_LOW
  225. >;
  226. status = "okay";
  227. };
  228. usb2: ehci@00700000 {
  229. status = "okay";
  230. };
  231. };
  232. gpio_keys {
  233. compatible = "gpio-keys";
  234. bp3 {
  235. label = "PB_USER";
  236. gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
  237. linux,code = <0x104>;
  238. gpio-key,wakeup;
  239. };
  240. };
  241. leds {
  242. compatible = "gpio-leds";
  243. d2 {
  244. label = "d2";
  245. gpios = <&pioE 23 GPIO_ACTIVE_LOW>; /* PE23, conflicts with A23, CTS2 */
  246. linux,default-trigger = "heartbeat";
  247. };
  248. d3 {
  249. label = "d3";
  250. gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
  251. };
  252. };
  253. };