HC5861.dts 1.6 KB

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