HC5962.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
  7. model = "HiWiFi HC5962";
  8. aliases {
  9. led-boot = &led_status;
  10. led-failsafe = &led_status;
  11. led-running = &led_status;
  12. led-upgrade = &led_status;
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x10000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,115200";
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. led_status: status {
  24. label = "hc5962:white:status";
  25. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  26. };
  27. system {
  28. label = "hc5962:red:system";
  29. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  30. };
  31. };
  32. gpio-keys-polled {
  33. compatible = "gpio-keys-polled";
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
  38. linux,code = <KEY_RESTART>;
  39. };
  40. };
  41. };
  42. &nand {
  43. status = "okay";
  44. partitions {
  45. compatible = "fixed-partitions";
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. partition@0 {
  49. label = "u-boot";
  50. reg = <0x0 0x80000>;
  51. read-only;
  52. };
  53. partition@80000 {
  54. label = "debug";
  55. reg = <0x80000 0x80000>;
  56. read-only;
  57. };
  58. factory: partition@100000 {
  59. label = "factory";
  60. reg = <0x100000 0x40000>;
  61. read-only;
  62. };
  63. partition@140000 {
  64. label = "kernel";
  65. reg = <0x140000 0x200000>;
  66. };
  67. partition@340000 {
  68. label = "ubi";
  69. reg = <0x340000 0x1E00000>;
  70. };
  71. partition@2140000 {
  72. label = "hw_panic";
  73. reg = <0x2140000 0x80000>;
  74. read-only;
  75. };
  76. partition@21c0000 {
  77. label = "bdinfo";
  78. reg = <0x21c0000 0x80000>;
  79. read-only;
  80. };
  81. partition@2240000 {
  82. label = "backup";
  83. reg = <0x2240000 0x80000>;
  84. read-only;
  85. };
  86. partition@22c0000 {
  87. label = "overly";
  88. reg = <0x22c0000 0x1000000>;
  89. };
  90. partition@32c0000 {
  91. label = "firmware_backup";
  92. reg = <0x32c0000 0x2000000>;
  93. };
  94. partition@52c0000 {
  95. label = "oem";
  96. reg = <0x52c0000 0x200000>;
  97. };
  98. partition@54c0000 {
  99. label = "opt";
  100. reg = <0x54c0000 0x2ac0000>;
  101. };
  102. };
  103. };
  104. &pcie {
  105. status = "okay";
  106. };
  107. &pcie0 {
  108. mt76@0,0 {
  109. reg = <0x0000 0 0 0 0>;
  110. mediatek,mtd-eeprom = <&factory 0x0000>;
  111. ieee80211-freq-limit = <2400000 2500000>;
  112. };
  113. };
  114. &pcie1 {
  115. mt76@0,0 {
  116. reg = <0x0000 0 0 0 0>;
  117. mediatek,mtd-eeprom = <&factory 0x8000>;
  118. ieee80211-freq-limit = <5000000 6000000>;
  119. };
  120. };
  121. &pinctrl {
  122. state_default: pinctrl0 {
  123. gpio {
  124. ralink,group = "uart3", "jtag";
  125. ralink,function = "gpio";
  126. };
  127. };
  128. };