wb50n.dtsi 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * wb50n.dts - Device Tree file for wb50n board
  4. *
  5. * Copyright (C) 2015 Laird
  6. */
  7. #include "sama5d31.dtsi"
  8. / {
  9. model = "Laird Workgroup Bridge 50N - Atmel SAMA5D";
  10. compatible = "laird,wb50n", "atmel,sama5d31ek", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
  11. chosen {
  12. bootargs = "console=ttyS0,115200 earlyprintk loglevel=4 mem=64M";
  13. };
  14. memory {
  15. reg = <0x20000000 0x4000000>;
  16. };
  17. clocks {
  18. slow_xtal {
  19. clock-frequency = <32768>;
  20. };
  21. main_xtal {
  22. clock-frequency = <12000000>;
  23. };
  24. };
  25. ahb {
  26. apb {
  27. pmc: pmc@fffffc00 {
  28. main: mainck {
  29. clock-frequency = <12000000>;
  30. };
  31. periphck {
  32. usart1_clk: usart1_clk {
  33. #clock-cells = <0>;
  34. reg = <13>;
  35. atmel,clk-output-range = <0 132000000>;
  36. };
  37. };
  38. };
  39. pinctrl@fffff200 {
  40. board {
  41. pinctrl_mmc0_cd: mmc0_cd {
  42. atmel,pins =
  43. <AT91_PIOC 26 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC26 GPIO with pullup deglitch */
  44. };
  45. pinctrl_usba_vbus: usba_vbus {
  46. atmel,pins =
  47. <AT91_PIOB 13 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB13 GPIO with deglitch */
  48. };
  49. };
  50. };
  51. mmc0: mmc@f0000000 {
  52. pinctrl-names = "default";
  53. pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>;
  54. cd-gpios = <&pioC 26 GPIO_ACTIVE_LOW>;
  55. slot@0 {
  56. reg = <0>;
  57. bus-width = <4>;
  58. };
  59. };
  60. mmc1: mmc@f8000000 {
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>;
  63. status = "okay";
  64. slot@0 {
  65. reg = <0>;
  66. bus-width = <4>;
  67. };
  68. };
  69. macb1: ethernet@f802c000 {
  70. phy-mode = "rmii";
  71. };
  72. dbgu: serial@ffffee00 {
  73. dmas = <0>, <0>; /* Do not use DMA for dbgu */
  74. };
  75. /* On BB40 this port is labeled UART1 */
  76. usart0: serial@f001c000 {
  77. atmel,use-dma-rx;
  78. atmel,use-dma-tx;
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts_cts>;
  81. };
  82. /* On BB40 this port is labeled UART0 */
  83. usart1: serial@f0020000 {
  84. atmel,use-dma-rx;
  85. atmel,use-dma-tx;
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
  88. dtr-gpios = <&pioD 13 GPIO_ACTIVE_LOW>;
  89. dsr-gpios = <&pioD 11 GPIO_ACTIVE_LOW>;
  90. dcd-gpios = <&pioD 7 GPIO_ACTIVE_LOW>;
  91. rng-gpios = <&pioD 8 GPIO_ACTIVE_LOW>;
  92. };
  93. /* USART3 is direct-connect to the Bluetooth UART on the radio SIP */
  94. usart3: serial@f8024000 {
  95. atmel,use-dma-rx;
  96. atmel,use-dma-tx;
  97. pinctrl-names = "default";
  98. pinctrl-0 = <&pinctrl_usart3 &pinctrl_usart3_rts_cts>;
  99. status = "okay";
  100. };
  101. spi1: spi@f8008000 {
  102. cs-gpios = <&pioC 25 0>, <0>, <0>, <0>;
  103. };
  104. sckc@fffffe50 {
  105. slow_osc: slow_osc {
  106. atmel,osc-bypass;
  107. };
  108. };
  109. };
  110. nand0: nand@60000000 {
  111. nand-bus-width = <8>;
  112. nand-ecc-mode = "hw";
  113. atmel,has-pmecc;
  114. atmel,pmecc-cap = <8>;
  115. atmel,pmecc-sector-size = <512>;
  116. nand-on-flash-bbt;
  117. status = "okay";
  118. at91bootstrap@0 {
  119. label = "at91bs";
  120. reg = <0x0 0x20000>;
  121. };
  122. uboot@20000 {
  123. label = "u-boot";
  124. reg = <0x20000 0x80000>;
  125. };
  126. ubootenv@a0000 {
  127. label = "u-boot-env";
  128. reg = <0xa0000 0x20000>;
  129. };
  130. ubootenv@c0000 {
  131. label = "u-boot-env";
  132. reg = <0xc0000 0x20000>;
  133. };
  134. kernel-a@e0000 {
  135. label = "kernel-a";
  136. reg = <0xe0000 0x500000>;
  137. };
  138. kernel-b@5e0000 {
  139. label = "kernel-b";
  140. reg = <0x5e0000 0x500000>;
  141. };
  142. rootfs-a@ae0000 {
  143. label = "rootfs-a";
  144. reg = <0xae0000 0x3000000>;
  145. };
  146. rootfs-b@3ae0000 {
  147. label = "rootfs-b";
  148. reg = <0x3ae0000 0x3000000>;
  149. };
  150. user@6ae0000 {
  151. label = "user";
  152. reg = <0x6ae0000 0x14e0000>;
  153. };
  154. };
  155. usb0: gadget@00500000 {
  156. atmel,vbus-gpio = <&pioB 13 GPIO_ACTIVE_LOW>;
  157. pinctrl-names = "default";
  158. pinctrl-0 = <&pinctrl_usba_vbus>;
  159. };
  160. usb1: ohci@00600000 {
  161. num-ports = <3>;
  162. atmel,vbus-gpio = <&pioA 2 GPIO_ACTIVE_LOW>;
  163. atmel,oc-gpio = <&pioA 4 GPIO_ACTIVE_LOW>;
  164. };
  165. };
  166. atheros {
  167. compatible = "atheros,ath6kl";
  168. atheros,board-id = "SD32";
  169. };
  170. };