HC5661A.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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-status = &led_system;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS0,115200";
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x8000000>;
  17. };
  18. sdhci@10130000 {
  19. status = "okay";
  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. &spi0 {
  55. status = "okay";
  56. m25p80@0 {
  57. compatible = "jedec,spi-nor";
  58. reg = <0>;
  59. linux,modalias = "m25p80", "w25q128";
  60. spi-max-frequency = <10000000>;
  61. m25p,chunked-io = <32>;
  62. partitions {
  63. compatible = "fixed-partitions";
  64. #address-cells = <1>;
  65. #size-cells = <1>;
  66. partition@0 {
  67. label = "u-boot";
  68. reg = <0x0 0x30000>;
  69. read-only;
  70. };
  71. partition@30000 {
  72. label = "hw_panic";
  73. reg = <0x30000 0x10000>;
  74. read-only;
  75. };
  76. factory: partition@40000 {
  77. label = "factory";
  78. reg = <0x40000 0x10000>;
  79. read-only;
  80. };
  81. partition@50000 {
  82. label = "firmware";
  83. reg = <0x50000 0xf70000>;
  84. };
  85. partition@fc0000 {
  86. label = "oem";
  87. reg = <0xfc0000 0x20000>;
  88. read-only;
  89. };
  90. bdinfo: partition@fe0000 {
  91. label = "bdinfo";
  92. reg = <0xfe0000 0x10000>;
  93. read-only;
  94. };
  95. partition@ff0000 {
  96. label = "backup";
  97. reg = <0xff0000 0x10000>;
  98. read-only;
  99. };
  100. };
  101. };
  102. };
  103. &ethernet {
  104. mtd-mac-address = <&factory 0x4>;
  105. mediatek,portmap = "wllll";
  106. };
  107. &wmac {
  108. status = "okay";
  109. };