1
0

ar9342_ubnt_nanostation-ac.dts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar9342_ubnt_wa.dtsi"
  6. / {
  7. compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342";
  8. model = "Ubiquiti Nanostation AC (WA)";
  9. leds {
  10. compatible = "gpio-leds";
  11. rssi0 {
  12. label = "ubnt:blue:rssi0";
  13. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  14. };
  15. rssi1 {
  16. label = "ubnt:blue:rssi1";
  17. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  18. };
  19. rssi2 {
  20. label = "ubnt:blue:rssi2";
  21. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  22. };
  23. rssi3 {
  24. label = "ubnt:blue:rssi3";
  25. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  26. };
  27. };
  28. };
  29. &mdio0 {
  30. status = "okay";
  31. phy-mask = <4>;
  32. phy0: ethernet-phy@0 {
  33. phy-mode = "rgmii";
  34. reg = <0>;
  35. qca,ar8327-initvals = <
  36. 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
  37. 0x58 0xffb7ffb7 /* LED_CTRL2 */
  38. 0x5c 0x03ffff00 /* LED_CTRL3 */
  39. 0x7c 0x0000007e /* PORT0_STATUS */
  40. >;
  41. };
  42. };
  43. &eth0 {
  44. status = "okay";
  45. /* default for ar934x, except for 1000M and 10M */
  46. pll-data = <0x06000000 0x00000101 0x00001313>;
  47. mtd-mac-address = <&eeprom 0x0>;
  48. phy-mode = "rgmii";
  49. phy-handle = <&phy0>;
  50. gmac-config {
  51. device = <&gmac>;
  52. rxd-delay = <2>;
  53. rxdv-delay = <2>;
  54. };
  55. };
  56. &wmac {
  57. status = "okay";
  58. mtd-cal-data = <&eeprom 0x1000>;
  59. mtd-mac-address = <&eeprom 0x1002>;
  60. };