mediatek: add missing ';;' in shell switch case block
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_h3c_tx180x.dtsi
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 aliases {
11 led-boot = &led_status_amber;
12 led-failsafe = &led_status_green;
13 led-running = &led_status_green;
14 led-upgrade = &led_status_amber;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 bootargs-override = "console=ttyS0,115200";
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 reset {
26 label = "reset";
27 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 };
30
31 wps {
32 label = "wps";
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
35 };
36 };
37
38 leds {
39 compatible = "gpio-leds";
40
41 led_status_amber: led-0 {
42 color = <LED_COLOR_ID_AMBER>;
43 function = LED_FUNCTION_STATUS;
44 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
45 };
46
47 led_status_green: led-1 {
48 color = <LED_COLOR_ID_GREEN>;
49 function = LED_FUNCTION_STATUS;
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
51 };
52 };
53 };
54
55 &gmac1 {
56 status = "okay";
57 label = "wan";
58 phy-handle = <&ethphy4>;
59 };
60
61 &ethphy4 {
62 /delete-property/ interrupts;
63 };
64
65 &nand {
66 status = "okay";
67
68 mediatek,nmbm;
69 mediatek,bmt-max-ratio = <1>;
70 mediatek,bmt-max-reserved-blocks = <64>;
71 mediatek,bmt-remap-range = <0x0000000 0x0a00000>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x0000000 0x0080000>;
81 read-only;
82 };
83
84 partition@80000 {
85 label = "u-boot-env";
86 reg = <0x0080000 0x0080000>;
87 };
88
89 partition@100000 {
90 label = "exp";
91 reg = <0x0100000 0x0080000>;
92 read-only;
93 };
94
95 partition@180000 {
96 label = "factory";
97 reg = <0x0180000 0x0080000>;
98 read-only;
99
100 nvmem-layout {
101 compatible = "fixed-layout";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 eeprom_factory_0: eeprom@0 {
106 reg = <0x0 0xe00>;
107 };
108 };
109 };
110
111 partition@200000 {
112 label = "firmware";
113 reg = <0x0200000 0x7600000>;
114
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 partition@0 {
120 label = "kernel";
121 reg = <0x0000000 0x0800000>;
122 };
123
124 partition@800000 {
125 label = "ubi";
126 reg = <0x0800000 0x6e00000>;
127 };
128 };
129
130 /* last 8 MiB is reserved for NMBM bad block table */
131 };
132 };
133
134 &pcie {
135 status = "okay";
136 };
137
138 &pcie1 {
139 wifi@0,0 {
140 compatible = "mediatek,mt76";
141 reg = <0x0000 0 0 0 0>;
142 nvmem-cells = <&eeprom_factory_0>;
143 nvmem-cell-names = "eeprom";
144 mediatek,disable-radar-background;
145 };
146 };
147
148 &state_default {
149 gpio {
150 groups = "jtag";
151 function = "gpio";
152 };
153 };
154
155 &switch0 {
156 ports {
157 port@1 {
158 status = "okay";
159 label = "lan1";
160 };
161
162 port@2 {
163 status = "okay";
164 label = "lan2";
165 };
166
167 port@3 {
168 status = "okay";
169 label = "lan3";
170 };
171 };
172 };
173
174 &xhci {
175 status = "disabled";
176 };