2
0

MIWIFI-NANO.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "xiaomi,MiWifi Nano", "mediatek,mt7628an-soc";
  7. model = "MiWiFi Nano";
  8. chosen {
  9. bootargs = "console=ttyS0,115200";
  10. };
  11. memory@0 {
  12. device_type = "memory";
  13. reg = <0x0 0x4000000>;
  14. };
  15. gpio-leds {
  16. compatible = "gpio-leds";
  17. status_blue {
  18. label = "miwifi-nano:blue:status";
  19. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  20. };
  21. status_red {
  22. label = "miwifi-nano:red:status";
  23. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  24. };
  25. status_amber {
  26. label = "miwifi-nano:amber:status";
  27. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  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 = "refclk", "wled_an", "gpio";
  46. ralink,function = "gpio";
  47. };
  48. };
  49. };
  50. &wmac {
  51. status = "okay";
  52. ralink,mtd-eeprom = <&factory 0x4>;
  53. };
  54. &ethernet {
  55. mtd-mac-address = <&factory 0x28>;
  56. };
  57. &spi0 {
  58. status = "okay";
  59. m25p80@0 {
  60. #address-cells = <1>;
  61. #size-cells = <1>;
  62. compatible = "jedec,spi-nor";
  63. reg = <0>;
  64. spi-max-frequency = <10000000>;
  65. m25p,chunked-io = <32>;
  66. partition@0 {
  67. label = "u-boot";
  68. reg = <0x0 0x30000>;
  69. read-only;
  70. };
  71. partition@30000 {
  72. label = "u-boot-env";
  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 0xfb0000>;
  84. };
  85. };
  86. };