1
0

ar7242.dtsi 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "ar724x.dtsi"
  3. / {
  4. usb_phy: usb-phy {
  5. compatible = "qca,ar7200-usb-phy";
  6. reset-names = "usb-phy", "usb-suspend-override";
  7. resets = <&rst 4>, <&rst 3>;
  8. #phy-cells = <0>;
  9. status = "disabled";
  10. };
  11. };
  12. &gpio {
  13. ngpios = <20>;
  14. };
  15. &ahb {
  16. usb: usb@1b000000 {
  17. compatible = "generic-ehci";
  18. reg = <0x1b000000 0x1000>;
  19. interrupts = <3>;
  20. resets = <&rst 5>;
  21. reset-names = "usb-host";
  22. has-transaction-translator;
  23. caps-offset = <0x100>;
  24. phy-names = "usb-phy";
  25. phys = <&usb_phy>;
  26. status = "disabled";
  27. };
  28. };
  29. &mdio0 {
  30. resets = <&rst 22>;
  31. reset-names = "mdio";
  32. };
  33. &eth0 {
  34. compatible = "qca,ar7242-eth", "syscon";
  35. pll-data = <0x16000000 0x00000101 0x00001616>;
  36. pll-reg = <0x4 0x2c 17>;
  37. pll-handle = <&pll>;
  38. resets = <&rst 9>;
  39. reset-names = "mac";
  40. };
  41. &mdio1 {
  42. resets = <&rst 23>;
  43. reset-names = "mdio";
  44. builtin-switch;
  45. builtin_switch: switch0@1f {
  46. compatible = "qca,ar7240sw";
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. reg = <0x1f>;
  50. resets = <&rst 8>;
  51. reset-names = "switch";
  52. qca,mib-poll-interval = <500>;
  53. };
  54. };
  55. &eth1 {
  56. compatible = "qca,ar7242-eth", "syscon";
  57. resets = <&rst 13>;
  58. reset-names = "mac";
  59. phy-mode = "gmii";
  60. fixed-link {
  61. speed = <1000>;
  62. full-duplex;
  63. };
  64. };