ramips: fix whitespace issues in DTS files
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_wiznet_wizfi630s.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 = "wiznet,wizfi630s", "mediatek,mt7628an-soc";
11 model = "WIZnet WizFi630S";
12
13 chosen {
14 bootargs = "console=ttyS1,115200";
15 };
16
17 aliases {
18 led-boot = &led_run;
19 led-failsafe = &led_run;
20 led-running = &led_run;
21 led-upgrade = &led_run;
22 serial0 = &uart1;
23 serial1 = &uartlite;
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 led_run: run {
30 label = "wizfi630s:green:run";
31 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
32 };
33
34 ledwps {
35 label = "wizfi630s:green:wps";
36 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
37 };
38
39 leduart1 {
40 label = "wizfi630s:green:uart1";
41 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
42 };
43
44 leduart2 {
45 label = "wizfi630s:green:uart2";
46 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
47 };
48 };
49
50 keys {
51 compatible = "gpio-keys-polled";
52 #address-cells = <1>;
53 #size-cells = <0>;
54 poll-interval = <20>;
55
56 reset {
57 label = "reset";
58 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
60 };
61
62 wps {
63 label = "wps";
64 gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
65 linux,code = <KEY_WPS_BUTTON>;
66 };
67
68 scm1 {
69 label = "SCM1";
70 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
71 linux,code = <BTN_1>;
72 };
73
74 scm2 {
75 label = "SCM2";
76 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
77 linux,code = <BTN_2>;
78 };
79
80 };
81 };
82
83 &pinctrl {
84 state_default: pinctrl0 {
85 gpio {
86 ralink,group = "gpio";
87 ralink,function = "gpio";
88 };
89
90 i2s {
91 ralink,group = "i2s";
92 ralink,function = "gpio";
93 };
94
95 wdt {
96 ralink,group = "wdt";
97 ralink,function = "gpio";
98 };
99
100 i2c {
101 ralink,group = "i2c";
102 ralink,function = "gpio";
103 };
104
105 refclk {
106 ralink,group = "refclk";
107 ralink,function = "gpio";
108 };
109 };
110 };
111
112 &wmac {
113 status = "okay";
114 };
115
116 &spi0 {
117 status = "okay";
118
119 pinctrl-names = "default";
120 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
121
122 flash@0 {
123 compatible = "jedec,spi-nor";
124 reg = <0>;
125 spi-max-frequency = <40000000>;
126 m25p,chunked-io = <31>;
127
128 partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 partition@0 {
134 label = "u-boot";
135 reg = <0x0 0x30000>;
136 read-only;
137 };
138
139 partition@30000 {
140 label = "u-boot-env";
141 reg = <0x30000 0x10000>;
142 read-only;
143 };
144
145 factory: partition@40000 {
146 label = "factory";
147 reg = <0x40000 0x10000>;
148 read-only;
149 };
150
151 partition@50000 {
152 compatible = "denx,uimage";
153 label = "firmware";
154 reg = <0x50000 0x1fb0000>;
155 };
156 };
157 };
158 };
159
160 &i2c {
161 status = "okay";
162 };
163
164 &uart1 {
165 status = "okay";
166 };
167
168 &pwm {
169 status = "okay";
170 };
171
172 &ethernet {
173 mtd-mac-address = <&factory 0x28>;
174 };
175
176 &esw {
177 mediatek,portmap = <0x3e>;
178 };
179
180 &sdhci {
181 status = "okay";
182 mediatek,cd-high;
183 };
184
185 &wmac {
186 status = "okay";
187 };