ramips: remove RAM size from device name for UniElec devices
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_glinet_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         leds {
25                 compatible = "gpio-leds";
26
27                 led_power: power {
28                         label = "vixmini:blue:power";
29                         default-state = "on";
30                         gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
31                 };
32
33                 wlan {
34                         label = "vixmini:white:wlan";
35                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
36                         linux,default-trigger = "phy0tpt";
37                 };
38         };
39
40         keys {
41                 compatible = "gpio-keys";
42
43                 reset {
44                         label = "reset";
45                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
46                         linux,code = <KEY_RESTART>;
47                 };
48         };
49 };
50
51 &pinctrl {
52         state_default: pinctrl0 {
53                 gpio {
54                         ralink,group = "wdt", "wled_an", "p1led_an";
55                         ralink,function = "gpio";
56                 };
57         };
58 };
59
60 &ethernet {
61         mtd-mac-address = <&factory 0x4>;
62 };
63
64 &wmac {
65         status = "okay";
66
67         ralink,mtd-eeprom = <&factory 0x0>;
68 };
69
70 &spi0 {
71         status = "okay";
72
73         flash@0 {
74                 compatible = "jedec,spi-nor";
75                 reg = <0>;
76                 spi-max-frequency = <10000000>;
77
78                 partitions {
79                         compatible = "fixed-partitions";
80                         #address-cells = <1>;
81                         #size-cells = <1>;
82
83                         partition@0 {
84                                 label = "u-boot";
85                                 reg = <0x0 0x30000>;
86                                 read-only;
87                         };
88
89                         partition@30000 {
90                                 label = "u-boot-env";
91                                 reg = <0x30000 0x10000>;
92                                 read-only;
93                         };
94
95                         factory: partition@40000 {
96                                 label = "factory";
97                                 reg = <0x40000 0x10000>;
98                                 read-only;
99                         };
100
101                         partition@50000 {
102                                 compatible = "denx,uimage";
103                                 label = "firmware";
104                                 reg = <0x50000 0x7b0000>;
105                         };
106                 };
107         };
108 };