1
0

HC5861.dts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /dts-v1/;
  2. #include "HC5XXX.dtsi"
  3. / {
  4. compatible = "HC5861", "ralink,mt7620a-soc";
  5. model = "HiWiFi HC5861";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. system {
  9. label = "hc5861:blue:system";
  10. gpios = <&gpio0 9 1>;
  11. };
  12. wlan2g {
  13. label = "hc5861:blue:wlan2g";
  14. gpios = <&gpio0 11 1>;
  15. };
  16. internet {
  17. label = "hc5861:blue:internet";
  18. gpios = <&gpio3 0 1>;
  19. };
  20. wlan5g {
  21. label = "hc5861:blue:wlan5g";
  22. gpios = <&gpio0 7 1>;
  23. };
  24. turbo {
  25. label = "hc5861:blue:turbo";
  26. gpios = <&gpio0 10 1>;
  27. };
  28. };
  29. gpio_export {
  30. compatible = "gpio-export";
  31. #size-cells = <0>;
  32. usbpower {
  33. gpio-export,name = "usbpower";
  34. gpio-export,output = <0>;
  35. gpios = <&gpio0 13 0>;
  36. };
  37. sdpower {
  38. gpio-export,name = "sdpower";
  39. gpio-export,output = <0>;
  40. gpios = <&gpio0 8 0>;
  41. };
  42. };
  43. };
  44. &ethernet {
  45. status = "okay";
  46. mtd-mac-address = <&factory 0x4>;
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  49. mediatek,portmap = "wllll";
  50. port@4 {
  51. status = "okay";
  52. phy-handle = <&phy4>;
  53. phy-mode = "rgmii";
  54. };
  55. port@5 {
  56. status = "okay";
  57. phy-handle = <&phy5>;
  58. phy-mode = "rgmii";
  59. };
  60. mdio-bus {
  61. status = "okay";
  62. phy4: ethernet-phy@4 {
  63. reg = <4>;
  64. phy-mode = "rgmii";
  65. };
  66. phy5: ethernet-phy@5 {
  67. reg = <5>;
  68. phy-mode = "rgmii";
  69. };
  70. };
  71. };
  72. &gsw {
  73. mediatek,port4 = "gmac";
  74. };