VIXMINI.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "mt7628an.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. /{
  7. compatible = "glinet,vixmini", "mediatek,mt7628an-soc";
  8. model = "GL.iNet VIXMINI";
  9. aliases {
  10. led-boot = &led_power;
  11. led-failsafe = &led_power;
  12. led-running = &led_power;
  13. led-upgrade = &led_power;
  14. };
  15. chosen {
  16. bootargs = "console=ttyS0,115200";
  17. };
  18. memory@0 {
  19. device_type = "memory";
  20. reg = <0x0 0x4000000>;
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. led_power: power {
  25. label = "vixmini:blue:power";
  26. default-state = "on";
  27. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  28. };
  29. wlan {
  30. label = "vixmini:white:wlan";
  31. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  32. linux,default-trigger = "phy0tpt";
  33. };
  34. };
  35. keys {
  36. compatible = "gpio-keys-polled";
  37. poll-interval = <20>;
  38. reset {
  39. label = "reset";
  40. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  41. linux,code = <KEY_RESTART>;
  42. };
  43. };
  44. };
  45. &pinctrl {
  46. state_default: pinctrl0 {
  47. gpio {
  48. ralink,group = "wdt", "wled_an", "p1led_an";
  49. ralink,function = "gpio";
  50. };
  51. };
  52. };
  53. &ethernet {
  54. mtd-mac-address = <&factory 0x4>;
  55. };
  56. &wmac {
  57. status = "okay";
  58. ralink,mtd-eeprom = <&factory 0x0>;
  59. };
  60. &spi0 {
  61. status = "okay";
  62. flash@0 {
  63. compatible = "jedec,spi-nor";
  64. reg = <0>;
  65. spi-max-frequency = <10000000>;
  66. partitions {
  67. compatible = "fixed-partitions";
  68. #address-cells = <1>;
  69. #size-cells = <1>;
  70. partition@0 {
  71. label = "u-boot";
  72. reg = <0x0 0x30000>;
  73. read-only;
  74. };
  75. partition@30000 {
  76. label = "u-boot-env";
  77. reg = <0x30000 0x10000>;
  78. read-only;
  79. };
  80. factory: partition@40000 {
  81. label = "factory";
  82. reg = <0x40000 0x10000>;
  83. read-only;
  84. };
  85. partition@50000 {
  86. compatible = "denx,uimage";
  87. label = "firmware";
  88. reg = <0x50000 0x7b0000>;
  89. };
  90. };
  91. };
  92. };