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