ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/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 = <&gpio 37 GPIO_ACTIVE_LOW>;
28 };
29
30 wlan {
31 label = "skw92a:green:wlan";
32 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
33 };
34 };
35
36 keys {
37 compatible = "gpio-keys";
38
39 reset {
40 label = "reset";
41 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44 };
45 };
46
47 &state_default {
48 gpio {
49 groups = "wdt", "refclk", "wled_an";
50 function = "gpio";
51 };
52 };
53
54 &ethernet {
55 mtd-mac-address = <&factory 0x28>;
56 };
57
58 &wmac {
59 status = "okay";
60 };
61
62 &spi0 {
63 status = "okay";
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <10000000>;
69
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x30000>;
78 read-only;
79 };
80
81 partition@30000 {
82 label = "u-boot-env";
83 reg = <0x30000 0x10000>;
84 read-only;
85 };
86
87 factory: partition@40000 {
88 label = "factory";
89 reg = <0x40000 0x10000>;
90 read-only;
91 };
92
93 partition@50000 {
94 label = "firmware";
95 reg = <0x50000 0xfb0000>;
96 compatible = "denx,uimage";
97 };
98 };
99 };
100 };
101
102 &uart1 {
103 status = "okay";
104 };
105
106 &ehci {
107 status = "okay";
108 };
109
110 &ohci {
111 status = "okay";
112 };