ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_yuncore_fap690.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 = "yuncore,fap690", "mediatek,mt7621-soc";
11 model = "YunCore FAP690";
12
13 aliases {
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
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_green: status_green {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_GREEN>;
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 };
33
34 led_status_red: status_red {
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_RED>;
37 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
38 };
39
40 led_status_blue: status_blue {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_BLUE>;
43 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
44 };
45 };
46
47 watchdog {
48 compatible = "linux,wdt-gpio";
49 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
50 hw_algo = "toggle";
51 hw_margin_ms = <200>;
52 always-running;
53 };
54
55 keys {
56 compatible = "gpio-keys";
57
58 reset {
59 label = "reset";
60 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
62 };
63 };
64 };
65
66 &spi0 {
67 status = "okay";
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <80000000>;
73 m25p,fast-read;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "Bootloader";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "Config";
88 reg = <0x30000 0x10000>;
89 read-only;
90 };
91
92 /* range 0x40000 to 0x50000 is empty in vendor
93 * firmware, so we do not use it either
94 */
95
96 partition@50000 {
97 label = "Factory";
98 reg = <0x50000 0x40000>;
99 read-only;
100
101 nvmem-layout {
102 compatible = "fixed-layout";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 eeprom_factory_0: eeprom@0 {
107 reg = <0x0 0xe00>;
108 };
109
110 macaddr_factory_4: macaddr@4 {
111 reg = <0x4 0x6>;
112 };
113
114 precal_factory_e10: precal@e10 {
115 reg = <0xe10 0x19c10>;
116 };
117 };
118 };
119
120 partition@90000 {
121 compatible = "denx,uimage";
122 label = "firmware";
123 reg = <0x90000 0xf70000>;
124 };
125 };
126 };
127 };
128
129 &pcie {
130 status = "okay";
131 };
132
133 &pcie1 {
134 wifi@0,0 {
135 compatible = "mediatek,mt76";
136 reg = <0x0000 0 0 0 0>;
137 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
138 nvmem-cell-names = "eeprom", "precal";
139 mediatek,disable-radar-background;
140 };
141 };
142
143 &gmac0 {
144 nvmem-cells = <&macaddr_factory_4>;
145 nvmem-cell-names = "mac-address";
146 };
147
148 &switch0 {
149 ports {
150 port@4 {
151 status = "okay";
152 label = "lan";
153 };
154 };
155 };
156
157 &state_default {
158 gpio {
159 groups = "jtag", "wdt";
160 function = "gpio";
161 };
162 };