ramips: remove RAM size from device name for UniElec devices
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_skylab_skw92a.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 = "skylab,skw92a", "mediatek,mt7628an-soc";
11         model = "SKYLAB SKW92A";
12
13         aliases {
14                 led-boot = &led_power;
15                 led-failsafe = &led_power;
16         };
17
18         chosen {
19                 bootargs = "console=ttyS0,57600";
20         };
21
22         leds {
23                 compatible = "gpio-leds";
24
25                 led_power: wps {
26                         label = "skw92a:green:wps";
27                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
28                 };
29
30                 wlan {
31                         label = "skw92a:green:wlan";
32                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
33                 };
34         };
35
36         keys {
37                 compatible = "gpio-keys";
38
39                 reset {
40                         label = "reset";
41                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
42                         linux,code = <KEY_RESTART>;
43                 };
44         };
45 };
46
47 &pinctrl {
48         state_default: pinctrl0 {
49                 gpio {
50                         ralink,group = "wdt", "refclk", "wled_an";
51                         ralink,function = "gpio";
52                 };
53         };
54 };
55
56 &ethernet {
57         mtd-mac-address = <&factory 0x28>;
58 };
59
60 &wmac {
61         status = "okay";
62         ralink,mtd-eeprom = <&factory 0x0>;
63 };
64
65 &spi0 {
66         status = "okay";
67
68         flash@0 {
69                 compatible = "jedec,spi-nor";
70                 reg = <0>;
71                 spi-max-frequency = <10000000>;
72
73                 partitions {
74                         compatible = "fixed-partitions";
75                         #address-cells = <1>;
76                         #size-cells = <1>;
77
78                         partition@0 {
79                                 label = "u-boot";
80                                 reg = <0x0 0x30000>;
81                                 read-only;
82                         };
83
84                         partition@30000 {
85                                 label = "u-boot-env";
86                                 reg = <0x30000 0x10000>;
87                                 read-only;
88                         };
89
90                         factory: partition@40000 {
91                                 label = "factory";
92                                 reg = <0x40000 0x10000>;
93                                 read-only;
94                         };
95
96                         partition@50000 {
97                                 label = "firmware";
98                                 reg = <0x50000 0xfb0000>;
99                                 compatible = "denx,uimage";
100                         };
101                 };
102         };
103 };
104
105 &uart1 {
106         status = "okay";
107 };
108
109 &ehci {
110         status = "okay";
111 };
112
113 &ohci {
114         status = "okay";
115 };