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