MIWIFI-NANO.dts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. / {
  4. compatible = "xiaomi,MiWifi Nano", "mediatek,mt7628an-soc";
  5. model = "MiWiFi Nano";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. memory@0 {
  10. device_type = "memory";
  11. reg = <0x0 0x4000000>;
  12. };
  13. gpio-leds {
  14. compatible = "gpio-leds";
  15. wifi {
  16. label = "miwifi-nano:blue:wifi";
  17. gpios = <&gpio0 11 1>;
  18. default-state = "1";
  19. };
  20. status {
  21. label = "miwifi-nano:red:status";
  22. gpios = <&gpio1 5 1>;
  23. default-state = "on";
  24. };
  25. radio {
  26. label = "miwifi-nano:amber:radio";
  27. gpios = <&gpio1 12 1>;
  28. default-state = "1";
  29. };
  30. };
  31. };
  32. &pinctrl {
  33. state_default: pinctrl0 {
  34. gpio {
  35. ralink,group = "refclk", "wled_an", "gpio";
  36. ralink,function = "gpio";
  37. };
  38. };
  39. };
  40. &wmac {
  41. status = "okay";
  42. };
  43. &spi0 {
  44. status = "okay";
  45. m25p80@0 {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. compatible = "jedec,spi-nor";
  49. reg = <0>;
  50. linux,modalias = "m25p80";
  51. spi-max-frequency = <10000000>;
  52. m25p,chunked-io = <32>;
  53. partition@0 {
  54. label = "u-boot";
  55. reg = <0x0 0x30000>;
  56. read-only;
  57. };
  58. partition@30000 {
  59. label = "u-boot-env";
  60. reg = <0x30000 0x10000>;
  61. read-only;
  62. };
  63. factory: partition@40000 {
  64. label = "factory";
  65. reg = <0x40000 0x10000>;
  66. read-only;
  67. };
  68. partition@50000 {
  69. label = "firmware";
  70. reg = <0x50000 0x7b0000>;
  71. };
  72. };
  73. };