HC5661A.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc";
  7. model = "HiWiFi HC5661A";
  8. aliases {
  9. led-boot = &led_system;
  10. led-failsafe = &led_system;
  11. led-running = &led_system;
  12. led-upgrade = &led_system;
  13. };
  14. chosen {
  15. bootargs = "console=ttyS0,115200";
  16. };
  17. memory@0 {
  18. device_type = "memory";
  19. reg = <0x0 0x8000000>;
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. led_system: system {
  24. label = "hc5661a:blue:system";
  25. gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
  26. };
  27. internet {
  28. label = "hc5661a:blue:internet";
  29. gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  30. };
  31. wlan2g {
  32. label = "hc5661a:blue:wlan2g";
  33. gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  34. };
  35. };
  36. gpio-keys {
  37. compatible = "gpio-keys-polled";
  38. poll-interval = <20>;
  39. reset {
  40. label = "reset";
  41. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  42. linux,code = <KEY_RESTART>;
  43. };
  44. };
  45. };
  46. &pinctrl {
  47. state_default: pinctrl0 {
  48. gpio {
  49. ralink,group = "i2c", "refclk", "wled_an";
  50. ralink,function = "gpio";
  51. };
  52. };
  53. };
  54. &sdhci {
  55. status = "okay";
  56. };
  57. &spi0 {
  58. status = "okay";
  59. m25p80@0 {
  60. compatible = "jedec,spi-nor";
  61. reg = <0>;
  62. linux,modalias = "m25p80", "w25q128";
  63. spi-max-frequency = <10000000>;
  64. m25p,chunked-io = <32>;
  65. partitions {
  66. compatible = "fixed-partitions";
  67. #address-cells = <1>;
  68. #size-cells = <1>;
  69. partition@0 {
  70. label = "u-boot";
  71. reg = <0x0 0x30000>;
  72. read-only;
  73. };
  74. partition@30000 {
  75. label = "hw_panic";
  76. reg = <0x30000 0x10000>;
  77. read-only;
  78. };
  79. factory: partition@40000 {
  80. label = "factory";
  81. reg = <0x40000 0x10000>;
  82. read-only;
  83. };
  84. partition@50000 {
  85. label = "firmware";
  86. reg = <0x50000 0xf70000>;
  87. };
  88. partition@fc0000 {
  89. label = "oem";
  90. reg = <0xfc0000 0x20000>;
  91. read-only;
  92. };
  93. bdinfo: partition@fe0000 {
  94. label = "bdinfo";
  95. reg = <0xfe0000 0x10000>;
  96. read-only;
  97. };
  98. partition@ff0000 {
  99. label = "backup";
  100. reg = <0xff0000 0x10000>;
  101. read-only;
  102. };
  103. };
  104. };
  105. };
  106. &ethernet {
  107. mtd-mac-address = <&factory 0x4>;
  108. mediatek,portmap = "wllll";
  109. };
  110. &wmac {
  111. status = "okay";
  112. };