ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_usw-flex.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 model = "Ubiquiti UniFi Switch Flex";
9 compatible = "ubnt,usw-flex", "mediatek,mt7621-soc";
10
11 aliases {
12 led-boot = &led_white;
13 led-failsafe = &led_white;
14 led-running = &led_blue;
15 led-upgrade = &led_blue;
16 label-mac-device = &gmac0;
17 };
18
19 chosen {
20 bootargs-override = "console=ttyS0,115200";
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 led_blue: status_blue {
37 function = LED_FUNCTION_STATUS;
38 color = <LED_COLOR_ID_BLUE>;
39 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
40 };
41
42 led_white: status_white {
43 function = LED_FUNCTION_STATUS;
44 color = <LED_COLOR_ID_WHITE>;
45 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
46 };
47 };
48
49 i2c-gpio {
50 compatible = "i2c-gpio";
51
52 sda-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
53 scl-gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
54
55 i2c-gpio,delay-us = <50>;
56
57 /* Microsemi PD69104B1 PSE controller */
58 };
59 };
60
61 &gmac0 {
62 nvmem-cells = <&macaddr_eeprom>;
63 nvmem-cell-names = "mac-address";
64 label = "dsa";
65 };
66
67 &gmac1 {
68 status = "okay";
69 label = "lan1";
70 phy-handle = <&ethphy4>;
71
72 nvmem-cells = <&macaddr_eeprom>;
73 nvmem-cell-names = "mac-address";
74 };
75
76 &mdio {
77 ethphy4: ethernet-phy@4 {
78 reg = <4>;
79 };
80 };
81
82 &switch0 {
83 ports {
84 port@0 {
85 status = "okay";
86 label = "lan5";
87 };
88
89 port@1 {
90 status = "okay";
91 label = "lan4";
92 };
93
94 port@2 {
95 status = "okay";
96 label = "lan3";
97 };
98
99 port@3 {
100 status = "okay";
101 label = "lan2";
102 };
103 };
104 };
105
106 &state_default {
107 gpio {
108 groups = "i2c", "uart2", "uart3", "jtag";
109 function = "gpio";
110 };
111 };
112
113 &spi0 {
114 status = "okay";
115
116 flash@0 {
117 compatible = "jedec,spi-nor";
118 reg = <0>;
119 spi-max-frequency = <30000000>;
120
121 partitions {
122 compatible = "fixed-partitions";
123 #address-cells = <1>;
124 #size-cells = <1>;
125
126 partition@0 {
127 label = "u-boot";
128 reg = <0x0 0x60000>;
129 read-only;
130 };
131
132 partition@60000 {
133 label = "u-boot-env";
134 reg = <0x60000 0x10000>;
135 };
136
137 partition@70000 {
138 label = "factory";
139 reg = <0x70000 0x10000>;
140 read-only;
141 };
142
143 partition@80000 {
144 label = "eeprom";
145 reg = <0x80000 0x10000>;
146 read-only;
147
148 nvmem-layout {
149 compatible = "fixed-layout";
150 #address-cells = <1>;
151 #size-cells = <1>;
152
153 macaddr_eeprom: macaddr@0 {
154 reg = <0x0 0x6>;
155 };
156 };
157 };
158
159 partition@90000 {
160 label = "bs";
161 reg = <0x90000 0x10000>;
162 };
163
164 partition@a0000 {
165 label = "cfg";
166 reg = <0xa0000 0x100000>;
167 read-only;
168 };
169
170 partition@1a0000 {
171 /* Combine kernel0 / kernel1 */
172 compatible = "denx,fit";
173 label = "firmware";
174 reg = <0x1a0000 0xe60000>;
175 };
176 };
177 };
178 };
179
180 &xhci {
181 status = "disabled";
182 };