c43f9e53ea9f58fdf82002f65d12fc8558a5dada
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / 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 = "SKW92A";
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,57600";
22 };
23
24 memory@0 {
25 device_type = "memory";
26 reg = <0x0 0x4000000>;
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 led_power: wps {
33 label = "skw92:green:wps";
34 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 gpio-keys {
39 compatible = "gpio-keys-polled";
40 poll-interval = <20>;
41
42 reset {
43 label = "reset";
44 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
46 };
47
48 };
49 };
50
51 &pinctrl {
52 state_default: pinctrl0 {
53 gpio {
54 ralink,group = "wdt", "refclk", "gpio";
55 ralink,function = "gpio";
56 };
57 };
58 };
59
60 &ethernet {
61 mtd-mac-address = <&factory 0x28>;
62 };
63
64 &wmac {
65 status = "okay";
66 ralink,mtd-eeprom = <&factory 0x0>;
67 };
68
69 &spi0 {
70 status = "okay";
71
72 m25p80@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <10000000>;
76 m25p,chunked-io = <32>;
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 label = "firmware";
103 reg = <0x50000 0xfb0000>;
104 compatible = "denx,uimage";
105 };
106 };
107 };
108 };
109
110 &uart1 {
111 status = "okay";
112 };
113
114 &ehci {
115 status = "okay";
116 };
117
118 &ohci {
119 status = "okay";
120 };