at91-wb45n.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * at91-wb45n.dtsi - Device Tree file for WB45NBT board
  4. *
  5. * Copyright (C) 2018 Laird
  6. *
  7. */
  8. #include "at91sam9g25.dtsi"
  9. / {
  10. model = "Laird Workgroup Bridge 45N - Atmel AT91SAM (dt)";
  11. compatible = "laird,wb45n", "laird,wbxx", "atmel,at91sam9x5", "atmel,at91sam9";
  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. atheros {
  20. compatible = "atheros,ath6kl";
  21. atheros,board-id = "SD32";
  22. };
  23. };
  24. &reset_controller {
  25. compatible = "atmel,sama5d3-rstc";
  26. };
  27. &shutdown_controller {
  28. atmel,wakeup-mode = "low";
  29. };
  30. &slow_xtal {
  31. clock-frequency = <32768>;
  32. };
  33. &main_xtal {
  34. clock-frequency = <12000000>;
  35. };
  36. &ebi {
  37. status = "okay";
  38. nand_controller: nand-controller {
  39. pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb &pinctrl_nand_oe_we>;
  40. pinctrl-names = "default";
  41. status = "okay";
  42. nand@3 {
  43. reg = <0x3 0x0 0x800000>;
  44. rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
  45. cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
  46. nand-bus-width = <8>;
  47. nand-ecc-mode = "hw";
  48. nand-ecc-strength = <4>;
  49. nand-ecc-step-size = <512>;
  50. nand-on-flash-bbt;
  51. label = "atmel_nand";
  52. partitions {
  53. compatible = "fixed-partitions";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. at91bootstrap@0 {
  57. label = "at91bs";
  58. reg = <0x0 0x20000>;
  59. };
  60. uboot@20000 {
  61. label = "u-boot";
  62. reg = <0x20000 0x80000>;
  63. };
  64. ubootenv@a0000 {
  65. label = "u-boot-env";
  66. reg = <0xa0000 0x20000>;
  67. };
  68. ubootenv@c0000 {
  69. label = "redund-env";
  70. reg = <0xc0000 0x20000>;
  71. };
  72. kernel-a@e0000 {
  73. label = "kernel-a";
  74. reg = <0xe0000 0x280000>;
  75. };
  76. kernel-b@360000 {
  77. label = "kernel-b";
  78. reg = <0x360000 0x280000>;
  79. };
  80. rootfs-a@5e0000 {
  81. label = "rootfs-a";
  82. reg = <0x5e0000 0x2600000>;
  83. };
  84. rootfs-b@2be0000 {
  85. label = "rootfs-b";
  86. reg = <0x2be0000 0x2600000>;
  87. };
  88. user@51e0000 {
  89. label = "user";
  90. reg = <0x51e0000 0x2dc0000>;
  91. };
  92. logs@7fa0000 {
  93. label = "logs";
  94. reg = <0x7fa0000 0x60000>;
  95. };
  96. };
  97. };
  98. };
  99. };
  100. &usb0 {
  101. num-ports = <2>;
  102. atmel,vbus-gpio = <
  103. &pioB 12 GPIO_ACTIVE_HIGH
  104. &pioA 31 GPIO_ACTIVE_HIGH
  105. >;
  106. atmel,oc-gpio = <&pioB 13 GPIO_ACTIVE_LOW>;
  107. };
  108. &macb0 {
  109. phy-mode = "rmii";
  110. };
  111. &spi0 {
  112. cs-gpios = <&pioA 14 0>, <&pioA 7 0>, <0>, <0>;
  113. };
  114. &usb2 {
  115. pinctrl-names = "default";
  116. pinctrl-0 = <&pinctrl_board_usb2>;
  117. atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
  118. };
  119. &mmc0 {
  120. pinctrl-names = "default";
  121. pinctrl-0 = <
  122. &pinctrl_mmc0_slot0_clk_cmd_dat0
  123. &pinctrl_mmc0_slot0_dat1_3>;
  124. slot@0 {
  125. reg = <0>;
  126. bus-width = <4>;
  127. };
  128. };
  129. &pinctrl {
  130. usb2 {
  131. pinctrl_board_usb2: usb2-board {
  132. atmel,pins =
  133. <AT91_PIOB 11 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB11 gpio vbus sense, deglitch */
  134. };
  135. };
  136. };