at91-wb50n.dtsi 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * at91-wb50n.dtsi - Device Tree include file for wb50n cpu module
  4. *
  5. * Copyright (C) 2018 Laird
  6. *
  7. */
  8. #include "sama5d31.dtsi"
  9. / {
  10. model = "Laird Workgroup Bridge 50N - Atmel SAMA5D";
  11. compatible = "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
  12. chosen {
  13. bootargs = "ubi.mtd=6 root=ubi0:rootfs rootfstype=ubifs rw";
  14. stdout-path = "serial0:115200n8";
  15. };
  16. memory@20000000 {
  17. reg = <0x20000000 0x4000000>;
  18. };
  19. };
  20. &pinctrl {
  21. board {
  22. pinctrl_mmc0_cd: mmc0_cd {
  23. atmel,pins = <AT91_PIOC 26 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC26 GPIO with pullup deglitch */
  24. };
  25. pinctrl_usba_vbus: usba_vbus {
  26. atmel,pins = <AT91_PIOB 13 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB13 GPIO with deglitch */
  27. };
  28. };
  29. };
  30. &slow_xtal {
  31. clock-frequency = <32768>;
  32. };
  33. &main_xtal {
  34. clock-frequency = <12000000>;
  35. };
  36. &clk32k {
  37. atmel,osc-bypass;
  38. };
  39. &mmc0 {
  40. pinctrl-names = "default";
  41. pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>;
  42. cd-gpios = <&pioC 26 GPIO_ACTIVE_LOW>;
  43. slot@0 {
  44. reg = <0>;
  45. bus-width = <4>;
  46. };
  47. };
  48. &mmc1 {
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>;
  51. status = "okay";
  52. atheros@0 {
  53. compatible = "atheros,ath6kl";
  54. atheros,board-id = "SD32";
  55. reg = <0>;
  56. bus-width = <4>;
  57. };
  58. };
  59. &macb1 {
  60. phy-mode = "rmii";
  61. };
  62. &dbgu {
  63. dmas = <0>, <0>; /* Do not use DMA for dbgu */
  64. };
  65. /* On BB40 this port is labeled UART1 */
  66. &usart0 {
  67. atmel,use-dma-rx;
  68. atmel,use-dma-tx;
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts_cts>;
  71. };
  72. /* On BB40 this port is labeled UART0 */
  73. &usart1 {
  74. atmel,use-dma-rx;
  75. atmel,use-dma-tx;
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
  78. dtr-gpios = <&pioD 13 GPIO_ACTIVE_LOW>;
  79. dsr-gpios = <&pioD 11 GPIO_ACTIVE_LOW>;
  80. dcd-gpios = <&pioD 7 GPIO_ACTIVE_LOW>;
  81. rng-gpios = <&pioD 8 GPIO_ACTIVE_LOW>;
  82. };
  83. /* USART3 is direct-connect to the Bluetooth UART on the radio SIP */
  84. &usart3 {
  85. atmel,use-dma-rx;
  86. atmel,use-dma-tx;
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&pinctrl_usart3 &pinctrl_usart3_rts_cts>;
  89. status = "okay";
  90. };
  91. &spi1 {
  92. cs-gpios = <&pioC 25 0>, <0>, <0>, <0>;
  93. };
  94. &ebi {
  95. pinctrl-0 = <&pinctrl_ebi_nand_addr>;
  96. pinctrl-names = "default";
  97. status = "okay";
  98. };
  99. &nand_controller {
  100. status = "okay";
  101. nand: nand@3 {
  102. reg = <0x3 0x0 0x2>;
  103. atmel,rb = <0>;
  104. nand-bus-width = <8>;
  105. nand-ecc-mode = "hw";
  106. nand-ecc-strength = <8>;
  107. nand-ecc-step-size = <512>;
  108. nand-on-flash-bbt;
  109. label = "atmel_nand";
  110. partitions {
  111. compatible = "fixed-partitions";
  112. #address-cells = <1>;
  113. #size-cells = <1>;
  114. at91bootstrap@0 {
  115. label = "at91bs";
  116. reg = <0x0 0x20000>;
  117. };
  118. uboot@20000 {
  119. label = "u-boot";
  120. reg = <0x20000 0x80000>;
  121. };
  122. ubootenv@a0000 {
  123. label = "u-boot-env";
  124. reg = <0xa0000 0x20000>;
  125. };
  126. ubootenv@c0000 {
  127. label = "u-boot-env";
  128. reg = <0xc0000 0x20000>;
  129. };
  130. kernel-a@e0000 {
  131. label = "kernel-a";
  132. reg = <0xe0000 0x500000>;
  133. };
  134. kernel-b@5e0000 {
  135. label = "kernel-b";
  136. reg = <0x5e0000 0x500000>;
  137. };
  138. rootfs-a@ae0000 {
  139. label = "rootfs-a";
  140. reg = <0xae0000 0x3000000>;
  141. };
  142. rootfs-b@3ae0000 {
  143. label = "rootfs-b";
  144. reg = <0x3ae0000 0x3000000>;
  145. };
  146. user@6ae0000 {
  147. label = "user";
  148. reg = <0x6ae0000 0x14e0000>;
  149. };
  150. };
  151. };
  152. };
  153. &usb0 {
  154. atmel,vbus-gpio = <&pioB 13 GPIO_ACTIVE_LOW>;
  155. pinctrl-names = "default";
  156. pinctrl-0 = <&pinctrl_usba_vbus>;
  157. };
  158. &usb1 {
  159. num-ports = <3>;
  160. atmel,vbus-gpio = <&pioA 2 GPIO_ACTIVE_LOW>;
  161. atmel,oc-gpio = <&pioA 4 GPIO_ACTIVE_LOW>;
  162. };