armada-3720-espressobin-ultra.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree file for ESPRESSObin-Ultra board.
  4. * Copyright (C) 2019 Globalscale technologies, Inc.
  5. *
  6. * Jason Hung <[email protected]>
  7. */
  8. /dts-v1/;
  9. #include "armada-3720-espressobin.dtsi"
  10. / {
  11. model = "Globalscale Marvell ESPRESSOBin Ultra Board";
  12. compatible = "globalscale,espressobin-ultra", "globalscale,espressobin",
  13. "marvell,armada3720", "marvell,armada3710";
  14. aliases {
  15. /* ethernet1 is WAN port */
  16. ethernet1 = &switch0port5;
  17. ethernet2 = &switch0port1;
  18. ethernet3 = &switch0port2;
  19. ethernet4 = &switch0port3;
  20. ethernet5 = &switch0port4;
  21. };
  22. reg_usb3_vbus: usb3-vbus {
  23. compatible = "regulator-fixed";
  24. regulator-name = "usb3-vbus";
  25. regulator-min-microvolt = <5000000>;
  26. regulator-max-microvolt = <5000000>;
  27. enable-active-high;
  28. gpio = <&gpionb 19 GPIO_ACTIVE_HIGH>;
  29. };
  30. usb3_phy: usb3-phy {
  31. compatible = "usb-nop-xceiv";
  32. vcc-supply = <&reg_usb3_vbus>;
  33. };
  34. gpio-leds {
  35. pinctrl-names = "default";
  36. compatible = "gpio-leds";
  37. /* No assigned functions to the LEDs by default */
  38. led1 {
  39. label = "ebin-ultra:blue:led1";
  40. gpios = <&gpionb 11 GPIO_ACTIVE_LOW>;
  41. };
  42. led2 {
  43. label = "ebin-ultra:green:led2";
  44. gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
  45. };
  46. led3 {
  47. label = "ebin-ultra:red:led3";
  48. gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
  49. };
  50. led4 {
  51. label = "ebin-ultra:yellow:led4";
  52. gpios = <&gpionb 14 GPIO_ACTIVE_LOW>;
  53. };
  54. };
  55. };
  56. &sdhci0 {
  57. status = "okay";
  58. };
  59. &sdhci1 {
  60. status = "disabled";
  61. };
  62. &spi0 {
  63. flash@0 {
  64. partitions {
  65. compatible = "fixed-partitions";
  66. #address-cells = <1>;
  67. #size-cells = <1>;
  68. partition@0 {
  69. label = "firmware";
  70. reg = <0x0 0x3e0000>;
  71. };
  72. partition@3e0000 {
  73. label = "hw-info";
  74. reg = <0x3e0000 0x10000>;
  75. read-only;
  76. };
  77. partition@3f0000 {
  78. label = "u-boot-env";
  79. reg = <0x3f0000 0x10000>;
  80. };
  81. };
  82. };
  83. };
  84. &i2c0 {
  85. status = "okay";
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&i2c1_pins>;
  88. clock-frequency = <100000>;
  89. rtc@51 {
  90. compatible = "nxp,pcf8563";
  91. reg = <0x51>;
  92. };
  93. };
  94. &usb3 {
  95. usb-phy = <&usb3_phy>;
  96. };
  97. &mdio {
  98. extphy: ethernet-phy@1 {
  99. reg = <1>;
  100. reset-gpios = <&gpionb 2 GPIO_ACTIVE_LOW>;
  101. };
  102. };
  103. &switch0 {
  104. reg = <3>;
  105. reset-gpios = <&gpiosb 23 GPIO_ACTIVE_LOW>;
  106. ports {
  107. switch0port1: port@1 {
  108. reg = <1>;
  109. label = "lan0";
  110. phy-handle = <&switch0phy0>;
  111. };
  112. switch0port2: port@2 {
  113. reg = <2>;
  114. label = "lan1";
  115. phy-handle = <&switch0phy1>;
  116. };
  117. switch0port3: port@3 {
  118. reg = <3>;
  119. label = "lan2";
  120. phy-handle = <&switch0phy2>;
  121. };
  122. switch0port4: port@4 {
  123. reg = <4>;
  124. label = "lan3";
  125. phy-handle = <&switch0phy3>;
  126. };
  127. switch0port5: port@5 {
  128. reg = <5>;
  129. label = "wan";
  130. phy-handle = <&extphy>;
  131. phy-mode = "sgmii";
  132. };
  133. };
  134. mdio {
  135. switch0phy3: switch0phy3@14 {
  136. reg = <0x14>;
  137. };
  138. };
  139. };