ipq6018-eap623od-hd-v1.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. // SPDX-License-Identifier: MIT, GPL-2.0 or later
  2. /* Copyright (c) 2025, Yang Xiwen <[email protected]> */
  3. /dts-v1/;
  4. #include "ipq6018.dtsi"
  5. #include "ipq6018-cp-cpu.dtsi"
  6. #include "ipq6018-ess.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/leds/common.h>
  10. / {
  11. model = "TP-Link EAP623-Outdoor HD V1.0";
  12. compatible = "tplink,eap623od-hd-v1", "qcom,ipq6018";
  13. aliases {
  14. serial0 = &blsp1_uart3;
  15. led-boot = &led_sys_green;
  16. led-failsafe = &led_sys_yellow;
  17. led-running = &led_sys_green;
  18. led-upgrade = &led_sys_yellow;
  19. };
  20. chosen {
  21. stdout-path = "serial0:115200n8";
  22. bootargs-append = " root=/dev/ubiblock0_1";
  23. };
  24. keys {
  25. compatible = "gpio-keys";
  26. reset {
  27. label = "reset";
  28. gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
  29. linux,code = <KEY_RESTART>;
  30. };
  31. };
  32. leds {
  33. compatible = "gpio-leds";
  34. led_sys_green: led-0 {
  35. color = <LED_COLOR_ID_GREEN>;
  36. function = LED_FUNCTION_STATUS;
  37. gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
  38. };
  39. led_sys_yellow: led-1 {
  40. color = <LED_COLOR_ID_YELLOW>;
  41. function = LED_FUNCTION_STATUS;
  42. gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
  43. };
  44. };
  45. };
  46. &blsp1_uart3 {
  47. pinctrl-0 = <&serial_3_pins>;
  48. pinctrl-names = "default";
  49. status = "okay";
  50. };
  51. &tlmm {
  52. mdio_pins: mdio-pins {
  53. mdc {
  54. pins = "gpio64";
  55. function = "mdc";
  56. drive-strength = <8>;
  57. bias-pull-up;
  58. };
  59. mdio {
  60. pins = "gpio65";
  61. function = "mdio";
  62. drive-strength = <8>;
  63. bias-pull-up;
  64. };
  65. };
  66. phy_pins: phy-reset-pin {
  67. pins = "gpio77";
  68. function = "gpio";
  69. bias-pull-up;
  70. };
  71. };
  72. &mdio {
  73. status = "okay";
  74. reset-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
  75. reset-delay-us = <10000>;
  76. reset-post-delay-us = <50000>;
  77. pinctrl-0 = <&mdio_pins>, <&phy_pins>;
  78. pinctrl-names = "default";
  79. rtl8211f: ethernet-phy@4 {
  80. reg = <4>;
  81. realtek,clkout-disable;
  82. realtek,aldps-enable;
  83. };
  84. };
  85. &switch {
  86. status = "okay";
  87. switch_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
  88. switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance0*/
  89. qcom,port_phyinfo {
  90. port@5 {
  91. port_id = <5>;
  92. phy_address = <4>;
  93. port_mac_sel = "QGMAC_PORT";
  94. };
  95. };
  96. };
  97. &edma {
  98. status = "okay";
  99. };
  100. &dp5 {
  101. status = "okay";
  102. phy-handle = <&rtl8211f>;
  103. phy-mode = "sgmii";
  104. label = "lan";
  105. };
  106. &qpic_bam {
  107. status = "okay";
  108. };
  109. &qpic_nand {
  110. status = "okay";
  111. nand@0 {
  112. reg = <0>;
  113. nand-ecc-strength = <4>;
  114. nand-ecc-step-size = <512>;
  115. nand-bus-width = <8>;
  116. partitions {
  117. compatible = "qcom,smem-part";
  118. };
  119. };
  120. };
  121. &wifi {
  122. qcom,ath11k-calibration-variant = "TPLink-EAP623-Outdoor-HD-v1";
  123. status = "okay";
  124. };