qca9558_engenius_ews660ap.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qca955x_senao_loader.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "engenius,ews660ap", "qca,qca9558";
  7. model = "EnGenius EWS660AP";
  8. aliases {
  9. label-mac-device = &eth0;
  10. led-boot = &led_wifi5g;
  11. led-failsafe = &led_wifi5g;
  12. led-upgrade = &led_wifi5g;
  13. };
  14. keys {
  15. compatible = "gpio-keys";
  16. reset {
  17. label = "reset";
  18. gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
  19. debounce-interval = <60>;
  20. linux,code = <KEY_RESTART>;
  21. };
  22. };
  23. leds {
  24. compatible = "gpio-leds";
  25. wifi2g {
  26. label = "green:wifi2g";
  27. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  28. linux,default-trigger = "phy1tpt";
  29. };
  30. led_wifi5g: wifi5g {
  31. label = "green:wifi5g";
  32. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  33. linux,default-trigger = "phy0tpt";
  34. };
  35. };
  36. };
  37. &partitions {
  38. partition@ff0000 {
  39. label = "art";
  40. reg = <0xff0000 0x010000>;
  41. read-only;
  42. nvmem-layout {
  43. compatible = "fixed-layout";
  44. #address-cells = <1>;
  45. #size-cells = <1>;
  46. macaddr_art_0: macaddr@0 {
  47. compatible = "mac-base";
  48. reg = <0x0 0x6>;
  49. #nvmem-cell-cells = <1>;
  50. };
  51. calibration_art_1000: calibration@1000 {
  52. reg = <0x1000 0x440>;
  53. };
  54. calibration_art_5000: calibration@5000 {
  55. reg = <0x5000 0x844>;
  56. };
  57. };
  58. };
  59. };
  60. &mdio0 {
  61. status = "okay";
  62. phy1: ethernet-phy@1 {
  63. reg = <1>;
  64. eee-broken-100tx;
  65. eee-broken-1000t;
  66. };
  67. phy2: ethernet-phy@2 {
  68. reg = <2>;
  69. eee-broken-100tx;
  70. eee-broken-1000t;
  71. at803x-override-sgmii-link-check;
  72. };
  73. };
  74. &eth0 {
  75. status = "okay";
  76. nvmem-cells = <&macaddr_art_0 0>;
  77. nvmem-cell-names = "mac-address";
  78. phy-handle = <&phy1>;
  79. phy-mode = "rgmii-id";
  80. pll-data = <0x82000000 0x80000101 0x80001313>;
  81. };
  82. &eth1 {
  83. status = "okay";
  84. nvmem-cells = <&macaddr_art_0 1>;
  85. nvmem-cell-names = "mac-address";
  86. phy-handle = <&phy2>;
  87. pll-data = <0x03000000 0x00000101 0x00001313>;
  88. qca955x-sgmii-fixup;
  89. };
  90. &wmac {
  91. status = "okay";
  92. nvmem-cells = <&macaddr_art_0 2>, <&calibration_art_1000>;
  93. nvmem-cell-names = "mac-address", "calibration";
  94. };
  95. &ath10k_1 {
  96. status = "okay";
  97. nvmem-cells = <&macaddr_art_0 3>, <&calibration_art_5000>;
  98. nvmem-cell-names = "mac-address", "calibration";
  99. };
  100. &pcie1 {
  101. status = "okay";
  102. };