mt7621_hiwifi_hc5962.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. #include "mt7621.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
  6. model = "HiWiFi HC5962";
  7. aliases {
  8. led-boot = &led_system;
  9. led-failsafe = &led_system;
  10. led-running = &led_status;
  11. led-upgrade = &led_status;
  12. };
  13. chosen {
  14. bootargs = "console=ttyS0,115200";
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. led_status: status {
  19. label = "white:status";
  20. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  21. };
  22. led_system: system {
  23. label = "red:system";
  24. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  25. panic-indicator;
  26. };
  27. };
  28. keys {
  29. compatible = "gpio-keys";
  30. reset {
  31. label = "reset";
  32. gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
  33. linux,code = <KEY_RESTART>;
  34. };
  35. };
  36. ubi-concat {
  37. compatible = "mtd-concat";
  38. devices = <&ubiconcat0 &ubiconcat1>;
  39. partitions {
  40. compatible = "fixed-partitions";
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. partition@0 {
  44. label = "ubi";
  45. reg = <0x0 0x79c0000>;
  46. };
  47. };
  48. };
  49. };
  50. &nand {
  51. status = "okay";
  52. partitions {
  53. compatible = "fixed-partitions";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x0 0x80000>;
  59. read-only;
  60. };
  61. partition@80000 {
  62. label = "debug";
  63. reg = <0x80000 0x80000>;
  64. read-only;
  65. };
  66. factory: partition@100000 {
  67. label = "factory";
  68. reg = <0x100000 0x40000>;
  69. read-only;
  70. };
  71. partition@140000 {
  72. label = "kernel";
  73. reg = <0x140000 0x400000>;
  74. };
  75. ubiconcat0: partition@540000 {
  76. label = "ubiconcat0";
  77. reg = <0x540000 0x1c80000>;
  78. };
  79. partition@21c0000 {
  80. label = "bdinfo";
  81. reg = <0x21c0000 0x80000>;
  82. read-only;
  83. };
  84. ubiconcat1: partition@2240000 {
  85. label = "ubiconcat1";
  86. reg = <0x2240000 0x5d40000>;
  87. };
  88. };
  89. };
  90. &pcie {
  91. status = "okay";
  92. };
  93. &pcie0 {
  94. mt76@0,0 {
  95. reg = <0x0000 0 0 0 0>;
  96. mediatek,mtd-eeprom = <&factory 0x0000>;
  97. ieee80211-freq-limit = <2400000 2500000>;
  98. };
  99. };
  100. &pcie1 {
  101. mt76@0,0 {
  102. reg = <0x0000 0 0 0 0>;
  103. mediatek,mtd-eeprom = <&factory 0x8000>;
  104. ieee80211-freq-limit = <5000000 6000000>;
  105. };
  106. };
  107. &gmac1 {
  108. status = "okay";
  109. label = "wan";
  110. phy-handle = <&ethphy4>;
  111. };
  112. &mdio {
  113. ethphy4: ethernet-phy@4 {
  114. reg = <4>;
  115. };
  116. };
  117. &switch0 {
  118. ports {
  119. port@1 {
  120. status = "okay";
  121. label = "lan1";
  122. };
  123. port@2 {
  124. status = "okay";
  125. label = "lan2";
  126. };
  127. port@3 {
  128. status = "okay";
  129. label = "lan3";
  130. };
  131. };
  132. };
  133. &state_default {
  134. gpio {
  135. groups = "uart3", "jtag";
  136. function = "gpio";
  137. };
  138. };