ipq8072-eap660hd-v1.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
  2. /dts-v1/;
  3. #include "ipq8074.dtsi"
  4. #include "ipq8074-hk-cpu.dtsi"
  5. #include "ipq8074-ess.dtsi"
  6. #include <dt-bindings/leds/common.h>
  7. #include <dt-bindings/input/input.h>
  8. #include <dt-bindings/gpio/gpio.h>
  9. / {
  10. model = "TP-Link EAP660 HD v1";
  11. compatible = "tplink,eap660hd-v1", "qcom,ipq8074";
  12. aliases {
  13. serial0 = &blsp1_uart5;
  14. led-boot = &led_status_blue;
  15. led-failsafe = &led_status_blue;
  16. led-running = &led_status_blue;
  17. led-upgrade = &led_status_blue;
  18. };
  19. chosen {
  20. stdout-path = "serial0,115200n8";
  21. bootargs-append = " root=/dev/ubiblock0_1";
  22. };
  23. keys {
  24. compatible = "gpio-keys";
  25. reset {
  26. label = "reset";
  27. gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
  28. linux,code = <KEY_RESTART>;
  29. };
  30. };
  31. leds {
  32. compatible = "gpio-leds";
  33. led_status_blue: status-blue {
  34. function = LED_FUNCTION_STATUS;
  35. gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
  36. color = <LED_COLOR_ID_BLUE>;
  37. };
  38. };
  39. };
  40. &blsp1_uart5 {
  41. status = "okay";
  42. };
  43. &tlmm {
  44. mdio_pins: mdio-pins {
  45. mdc {
  46. pins = "gpio68";
  47. function = "mdc";
  48. drive-strength = <8>;
  49. bias-pull-up;
  50. };
  51. mdio {
  52. pins = "gpio69";
  53. function = "mdio";
  54. drive-strength = <8>;
  55. bias-pull-up;
  56. };
  57. };
  58. };
  59. &mdio {
  60. status = "okay";
  61. pinctrl-0 = <&mdio_pins>;
  62. pinctrl-names = "default";
  63. reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
  64. qca8081_28: ethernet-phy@28 {
  65. compatible = "ethernet-phy-ieee802.3-c22";
  66. reg = <28>;
  67. };
  68. };
  69. &dp5 {
  70. status = "okay";
  71. phy-mode = "sgmii";
  72. phy-handle = <&qca8081_28>;
  73. label = "lan";
  74. };
  75. &switch {
  76. status = "okay";
  77. switch_lan_bmp = <ESS_PORT5>;
  78. switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
  79. qcom,port_phyinfo {
  80. port@5 {
  81. phy_address = <28>;
  82. port_id = <5>;
  83. port_mac_sel = "QGMAC_PORT";
  84. };
  85. };
  86. };
  87. &edma {
  88. status = "okay";
  89. };
  90. &qpic_bam {
  91. status = "okay";
  92. };
  93. &qpic_nand {
  94. status = "okay";
  95. nand@0 {
  96. reg = <0>;
  97. nand-ecc-strength = <4>;
  98. nand-ecc-step-size = <512>;
  99. nand-bus-width = <8>;
  100. partitions {
  101. compatible = "qcom,smem-part";
  102. };
  103. };
  104. };
  105. &wifi {
  106. status = "okay";
  107. qcom,ath11k-calibration-variant = "TP-Link-EAP660-HD-v1";
  108. };