ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_wiznet_wizfi630s.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 #include <dt-bindings/leds/common.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 = "green:run";
31 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
32 };
33
34 ledwps {
35 function = LED_FUNCTION_WPS;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
38 };
39
40 leduart1 {
41 label = "green:uart1";
42 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
43 };
44
45 leduart2 {
46 label = "green:uart2";
47 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
48 };
49 };
50
51 keys {
52 compatible = "gpio-keys";
53
54 reset {
55 label = "reset";
56 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
58 };
59
60 wps {
61 label = "wps";
62 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_WPS_BUTTON>;
64 };
65
66 scm1 {
67 label = "SCM1";
68 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
69 linux,code = <BTN_1>;
70 linux,input-type = <EV_SW>;
71 };
72
73 scm2 {
74 label = "SCM2";
75 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
76 linux,code = <BTN_2>;
77 linux,input-type = <EV_SW>;
78 };
79 };
80 };
81
82 &state_default {
83 gpio {
84 groups = "gpio", "i2s", "i2c", "wdt", "refclk", "p1led_an", "p2led_an";
85 function = "gpio";
86 };
87 };
88
89 &spi0 {
90 status = "okay";
91
92 pinctrl-names = "default";
93 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
94
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 reg = <0>;
98 spi-max-frequency = <40000000>;
99 broken-flash-reset;
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 partition@0 {
107 label = "u-boot";
108 reg = <0x0 0x30000>;
109 read-only;
110 };
111
112 partition@30000 {
113 label = "u-boot-env";
114 reg = <0x30000 0x10000>;
115 read-only;
116 };
117
118 partition@40000 {
119 label = "factory";
120 reg = <0x40000 0x10000>;
121 read-only;
122
123 nvmem-layout {
124 compatible = "fixed-layout";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 eeprom_factory_0: eeprom@0 {
129 reg = <0x0 0x400>;
130 };
131
132 macaddr_factory_2e: macaddr@2e {
133 reg = <0x2e 0x6>;
134 };
135 };
136 };
137
138 partition@50000 {
139 compatible = "denx,uimage";
140 label = "firmware";
141 reg = <0x50000 0x1fb0000>;
142 };
143 };
144 };
145 };
146
147 &uart1 {
148 status = "okay";
149 };
150
151 &uart2 {
152 status = "okay";
153 };
154
155 &pwm {
156 status = "okay";
157 };
158
159 &ethernet {
160 nvmem-cells = <&macaddr_factory_2e>;
161 nvmem-cell-names = "mac-address";
162 };
163
164 &esw {
165 mediatek,portmap = <0x3e>;
166 mediatek,portdisable = <0x26>;
167 };
168
169 &sdhci {
170 status = "okay";
171 mediatek,cd-high;
172 };
173
174 &wmac {
175 status = "okay";
176
177 nvmem-cells = <&eeprom_factory_0>;
178 nvmem-cell-names = "eeprom";
179 };