ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_dlink_dir-806a-b1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620a.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 = "dlink,dir-806a-b1", "ralink,mt7620a-soc";
11 model = "D-Link DIR-806A B1";
12
13 aliases {
14 led-boot = &wps_led;
15 led-failsafe = &wps_led;
16 led-running = &wps_led;
17 led-upgrade = &wps_led;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; // #12
26 linux,code = <KEY_RESTART>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 wifi_led: 2.4g {
34 color = <LED_COLOR_ID_GREEN>;
35 function = LED_FUNCTION_WLAN;
36 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; // #72
37 };
38
39 wps_led: wps {
40 color = <LED_COLOR_ID_GREEN>;
41 function = LED_FUNCTION_WPS;
42 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; // #39
43 };
44
45 };
46
47 };
48
49 &gpio0 {
50 status = "okay";
51 };
52
53 &gpio1 {
54 status = "okay";
55 };
56
57 &gpio3 {
58 status = "okay";
59 };
60
61 &spi0 {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <48000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "ALL";
76 reg = <0x0 0x800000>;
77 read-only;
78 };
79
80 partition@0_1 {
81 label = "u-boot";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "u-boot-env";
88 reg = <0x30000 0x10000>;
89 };
90
91 partition@40000 {
92 label = "Factory";
93 reg = <0x40000 0x10000>;
94 read-only;
95
96 nvmem-layout {
97 compatible = "fixed-layout";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 eeprom_factory_0: eeprom@0 {
102 reg = <0x0 0x200>;
103 };
104
105 eeprom_factory_8000: eeprom@8000 {
106 reg = <0x8000 0x200>;
107 };
108
109 macaddr_factory_4: macaddr@4 {
110 compatible = "mac-base";
111 reg = <0x4 0x6>;
112 #nvmem-cell-cells = <1>;
113 };
114
115 macaddr_factory_8004: macaddr@8004 {
116 compatible = "mac-base";
117 reg = <0x8004 0x6>;
118 #nvmem-cell-cells = <1>;
119 };
120 };
121 };
122
123 partition@50000 {
124 compatible = "denx,uimage";
125 label = "firmware";
126 reg = <0x50000 0x7b0000>;
127 };
128
129 };
130 };
131 };
132
133 &state_default {
134 gpio {
135 groups = "i2c", "uartf", "ephy";
136 function = "gpio";
137 };
138 };
139
140 &ethernet {
141 nvmem-cells = <&macaddr_factory_4 (-2)>;
142 nvmem-cell-names = "mac-address";
143 };
144
145 &wmac {
146 pinctrl-names = "default", "pa_gpio";
147 pinctrl-0 = <&pa_pins>;
148 pinctrl-1 = <&pa_gpio_pins>;
149
150 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 (-1)>;
151 nvmem-cell-names = "eeprom", "mac-address";
152 };
153
154 &pcie {
155 status = "okay";
156 };
157
158 &pcie0 {
159 wifi@0,0 {
160 reg = <0x0000 0 0 0 0>;
161 ieee80211-freq-limit = <5000000 6000000>;
162 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_8004 (-3)>;
163 nvmem-cell-names = "eeprom", "mac-address";
164
165 led {
166 led-active-low;
167 };
168 };
169 };