ipq8072-sax1v1k.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "ipq8074.dtsi"
  4. #include "ipq8074-hk-cpu.dtsi"
  5. #include "ipq8074-ess.dtsi"
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/input/input.h>
  8. #include <dt-bindings/leds/common.h>
  9. / {
  10. model = "Spectrum SAX1V1K";
  11. compatible = "spectrum,sax1v1k", "qcom,ipq8074";
  12. aliases {
  13. led-boot = &led_system_red;
  14. led-failsafe = &led_system_red;
  15. led-running = &led_system_blue;
  16. led-upgrade = &led_system_red;
  17. serial0 = &blsp1_uart5;
  18. /* Aliases as required by u-boot to patch MAC addresses */
  19. ethernet0 = &dp6_syn;
  20. ethernet1 = &dp4;
  21. ethernet2 = &dp3;
  22. ethernet3 = &dp2;
  23. label-mac-device = &dp6_syn;
  24. };
  25. chosen {
  26. stdout-path = "serial0:115200n8";
  27. };
  28. keys {
  29. compatible = "gpio-keys";
  30. reset {
  31. label = "reset";
  32. gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
  33. linux,code = <KEY_RESTART>;
  34. };
  35. wps {
  36. label = "wps";
  37. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_WPS_BUTTON>;
  39. };
  40. };
  41. leds {
  42. compatible = "gpio-leds";
  43. led_system_blue: system-blue {
  44. gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
  45. color = <LED_COLOR_ID_BLUE>;
  46. function = LED_FUNCTION_STATUS;
  47. };
  48. led_system_red: system-red {
  49. gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
  50. color = <LED_COLOR_ID_RED>;
  51. function = LED_FUNCTION_STATUS;
  52. };
  53. };
  54. };
  55. &tlmm {
  56. mdio_pins: mdio-pins {
  57. mdc {
  58. pins = "gpio68";
  59. function = "mdc";
  60. drive-strength = <8>;
  61. bias-pull-up;
  62. };
  63. mdio {
  64. pins = "gpio69";
  65. function = "mdio";
  66. drive-strength = <8>;
  67. bias-pull-up;
  68. };
  69. };
  70. };
  71. &blsp1_uart5 {
  72. status = "okay";
  73. };
  74. &prng {
  75. status = "okay";
  76. };
  77. &cryptobam {
  78. status = "okay";
  79. };
  80. &crypto {
  81. status = "okay";
  82. };
  83. &qpic_bam {
  84. status = "okay";
  85. };
  86. &mdio {
  87. pinctrl-0 = <&mdio_pins>;
  88. pinctrl-names = "default";
  89. reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
  90. status = "okay";
  91. ethernet-phy-package@0 {
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. compatible = "qcom,qca8075-package";
  95. reg = <0>;
  96. qcom,package-mode = "qsgmii";
  97. qca8075_1: ethernet-phy@1 {
  98. compatible = "ethernet-phy-ieee802.3-c22";
  99. reg = <1>;
  100. };
  101. qca8075_2: ethernet-phy@2 {
  102. compatible = "ethernet-phy-ieee802.3-c22";
  103. reg = <2>;
  104. };
  105. qca8075_3: ethernet-phy@3 {
  106. compatible = "ethernet-phy-ieee802.3-c22";
  107. reg = <3>;
  108. };
  109. };
  110. qca8081: ethernet-phy@28 {
  111. compatible = "ethernet-phy-id004d.d101";
  112. reg = <28>;
  113. reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
  114. reset-deassert-us = <10000>;
  115. leds {
  116. #address-cells = <1>;
  117. #size-cells = <0>;
  118. led@0 {
  119. reg = <0>;
  120. color = <LED_COLOR_ID_YELLOW>;
  121. function = LED_FUNCTION_WAN;
  122. default-state = "keep";
  123. active-low;
  124. };
  125. led@2 {
  126. reg = <2>;
  127. color = <LED_COLOR_ID_GREEN>;
  128. function = LED_FUNCTION_WAN;
  129. default-state = "keep";
  130. active-low;
  131. };
  132. };
  133. };
  134. };
  135. &sdhc_1 {
  136. /* Following same rule as QNAP 301W
  137. * the emmc has a problem with the hs400 > hs200 speed switch.
  138. * Therefore remove the mmc-hs400-1_8v property
  139. */
  140. /delete-property/ mmc-hs400-1_8v;
  141. mmc-hs200-1_8v;
  142. mmc-ddr-1_8v;
  143. vqmmc-supply = <&l11>;
  144. status = "okay";
  145. };
  146. &switch {
  147. switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
  148. switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
  149. switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
  150. switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
  151. status = "okay";
  152. qcom,port_phyinfo {
  153. port@2 {
  154. port_id = <2>;
  155. phy_address = <1>;
  156. };
  157. port@3 {
  158. port_id = <3>;
  159. phy_address = <2>;
  160. };
  161. port@4 {
  162. port_id = <4>;
  163. phy_address = <3>;
  164. };
  165. port@6 {
  166. port_id = <6>;
  167. phy_address = <28>;
  168. port_mac_sel = "QGMAC_PORT";
  169. };
  170. };
  171. };
  172. &edma {
  173. status = "okay";
  174. };
  175. &dp2 {
  176. phy-mode = "qsgmii";
  177. phy-handle = <&qca8075_1>;
  178. label = "lan3";
  179. status = "okay";
  180. };
  181. &dp3 {
  182. phy-mode = "qsgmii";
  183. phy-handle = <&qca8075_2>;
  184. label = "lan2";
  185. status = "okay";
  186. };
  187. &dp4 {
  188. phy-mode = "qsgmii";
  189. phy-handle = <&qca8075_3>;
  190. label = "lan1";
  191. status = "okay";
  192. };
  193. &dp6_syn {
  194. phy-handle = <&qca8081>;
  195. label = "wan";
  196. status = "okay";
  197. };
  198. &wifi {
  199. qcom,ath11k-calibration-variant = "Spectrum-SAX1V1K";
  200. status = "okay";
  201. };