ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_oraybox_x3a.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.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 = "oraybox,x3a", "mediatek,mt7621-soc";
11 model = "OrayBox X3A";
12
13 aliases {
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_green;
18 label-mac-device = &gmac0;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 led_status_red: status-red {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_RED>;
31 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
32 };
33
34 led_status_blue: status-blue {
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
38 };
39
40 led_status_green: status-green {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
44 };
45 };
46
47 keys {
48 compatible = "gpio-keys";
49
50 reset {
51 label = "reset";
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 };
55 };
56 };
57
58 &spi0 {
59 status = "okay";
60
61 flash@0 {
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <30000000>;
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 partition@40000 {
84 label = "factory";
85 reg = <0x40000 0x10000>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 eeprom_factory_0: eeprom@0 {
94 reg = <0x0 0x4da8>;
95 };
96 };
97 };
98
99 partition@50000 {
100 compatible = "denx,uimage";
101 label = "firmware";
102 reg = <0x50000 0xf00000>;
103 };
104
105 partition@fe0000 {
106 label = "bdinfo";
107 reg = <0xfe0000 0x10000>;
108 read-only;
109
110 nvmem-layout {
111 compatible = "fixed-layout";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 macaddr_bdinfo_9: macaddr@9 {
116 compatible = "mac-base";
117 reg = <0x9 0x6>;
118 #nvmem-cell-cells = <1>;
119 };
120 };
121 };
122
123 partition@ff0000 {
124 label = "reserve";
125 reg = <0xff0000 0x10000>;
126 read-only;
127 };
128 };
129 };
130 };
131
132 &pcie {
133 status = "okay";
134 };
135
136 &pcie0 {
137 wifi@0,0 {
138 compatible = "mediatek,mt76";
139 reg = <0x0000 0 0 0 0>;
140 nvmem-cells = <&eeprom_factory_0>;
141 nvmem-cell-names = "eeprom";
142 };
143 };
144
145 &gmac0 {
146 nvmem-cells = <&macaddr_bdinfo_9 0>;
147 nvmem-cell-names = "mac-address";
148 };
149
150 &gmac1 {
151 status = "okay";
152 label = "wan";
153 phy-handle = <&ethphy4>;
154
155 nvmem-cells = <&macaddr_bdinfo_9 1>;
156 nvmem-cell-names = "mac-address";
157 };
158
159 &mdio {
160 ethphy4: ethernet-phy@4 {
161 reg = <4>;
162 };
163 };
164
165 &switch0 {
166 ports {
167 port@2 {
168 status = "okay";
169 label = "lan2";
170 };
171
172 port@3 {
173 status = "okay";
174 label = "lan1";
175 };
176 };
177 };
178
179 &state_default {
180 gpio {
181 groups = "jtag", "wdt";
182 function = "gpio";
183 };
184 };