HC5661A.dts 1.9 KB

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