2
0

MIWIFI-NANO.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. linux,modalias = "m25p80";
  65. spi-max-frequency = <10000000>;
  66. m25p,chunked-io = <32>;
  67. partition@0 {
  68. label = "u-boot";
  69. reg = <0x0 0x30000>;
  70. read-only;
  71. };
  72. partition@30000 {
  73. label = "u-boot-env";
  74. reg = <0x30000 0x10000>;
  75. read-only;
  76. };
  77. factory: partition@40000 {
  78. label = "factory";
  79. reg = <0x40000 0x10000>;
  80. read-only;
  81. };
  82. partition@50000 {
  83. label = "firmware";
  84. reg = <0x50000 0x7b0000>;
  85. };
  86. };
  87. };