111f70a8d52789f9f85841430be6cd9c71cabfc7
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_skylab_skw92a.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "skylab,skw92a", "mediatek,mt7628an-soc";
10 model = "SKYLAB SKW92A";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power: wps {
21 label = "green:wps";
22 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
23 };
24
25 wlan {
26 label = "green:wlan";
27 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40 };
41
42 &state_default {
43 gpio {
44 groups = "wdt", "refclk", "wled_an";
45 function = "gpio";
46 };
47 };
48
49 &ethernet {
50 mtd-mac-address = <&factory 0x28>;
51 };
52
53 &wmac {
54 status = "okay";
55 };
56
57 &spi0 {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <10000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x0 0x30000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "u-boot-env";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86 };
87
88 partition@50000 {
89 label = "firmware";
90 reg = <0x50000 0xfb0000>;
91 compatible = "denx,uimage";
92 };
93 };
94 };
95 };
96
97 &uart1 {
98 status = "okay";
99 };
100
101 &ehci {
102 status = "okay";
103 };
104
105 &ohci {
106 status = "okay";
107 };