ar9342_ubnt_nanostation-m-xw.dts 568 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar9342_ubnt_xw.dtsi"
  6. / {
  7. compatible = "ubnt,nanostation-m-xw", "ubnt,xw", "qca,ar9342";
  8. model = "Ubiquiti Nanostation M (XW)";
  9. };
  10. &mdio0 {
  11. status = "okay";
  12. phy4-mii-enable;
  13. phy-mask = <0x23>;
  14. phy4: ethernet-phy@0 {
  15. reg = <0>;
  16. phy-mode = "mii";
  17. };
  18. };
  19. &eth0 {
  20. status = "okay";
  21. phy-mode = "mii";
  22. phy-handle = <&phy4>;
  23. gmac-config {
  24. device = <&gmac>;
  25. mii-gmac0 = <1>;
  26. mii-gmac0-slave = <1>;
  27. };
  28. };