ramips: dts: rt3050: reset FE and ESW cores together
[openwrt/openwrt.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 label = "green:wlan";
35 color = <LED_COLOR_ID_GREEN>;
36 function = LED_FUNCTION_WLAN;
37 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; // #72
38 };
39
40 wps_led: wps {
41 label = "green:wps";
42 color = <LED_COLOR_ID_GREEN>;
43 function = LED_FUNCTION_WPS;
44 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; // #39
45 };
46
47 };
48
49 };
50
51 &gpio0 {
52 status = "okay";
53 };
54
55 &gpio1 {
56 status = "okay";
57 };
58
59 &gpio3 {
60 status = "okay";
61 };
62
63 &spi0 {
64 status = "okay";
65
66 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <48000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "ALL";
78 reg = <0x0 0x800000>;
79 read-only;
80 };
81
82 partition@0_1 {
83 label = "u-boot";
84 reg = <0x0 0x30000>;
85 read-only;
86 };
87
88 partition@30000 {
89 label = "u-boot-env";
90 reg = <0x30000 0x10000>;
91 };
92
93 factory: partition@40000 {
94 label = "Factory";
95 reg = <0x40000 0x10000>;
96 read-only;
97
98 nvmem-layout {
99 compatible = "fixed-layout";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 eeprom_factory_0: eeprom@0 {
104 reg = <0x0 0x200>;
105 };
106
107 eeprom_factory_8000: eeprom@8000 {
108 reg = <0x8000 0x200>;
109 };
110
111 macaddr_factory_4: macaddr@4 {
112 compatible = "mac-base";
113 reg = <0x4 0x6>;
114 #nvmem-cell-cells = <1>;
115 };
116
117 macaddr_factory_8004: macaddr@8004 {
118 compatible = "mac-base";
119 reg = <0x8004 0x6>;
120 #nvmem-cell-cells = <1>;
121 };
122 };
123 };
124
125 partition@50000 {
126 compatible = "denx,uimage";
127 label = "firmware";
128 reg = <0x50000 0x7b0000>;
129 };
130
131 };
132 };
133 };
134
135 &state_default {
136 gpio {
137 groups = "i2c", "uartf", "ephy";
138 function = "gpio";
139 };
140 };
141
142 &ethernet {
143 nvmem-cells = <&macaddr_factory_4 (-2)>;
144 nvmem-cell-names = "mac-address";
145 };
146
147 &wmac {
148 pinctrl-names = "default", "pa_gpio";
149 pinctrl-0 = <&pa_pins>;
150 pinctrl-1 = <&pa_gpio_pins>;
151
152 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4 (-1)>;
153 nvmem-cell-names = "eeprom", "mac-address";
154 };
155
156 &pcie {
157 status = "okay";
158 };
159
160 &pcie0 {
161 wifi@0,0 {
162 reg = <0x0000 0 0 0 0>;
163 ieee80211-freq-limit = <5000000 6000000>;
164 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_8004 (-3)>;
165 nvmem-cell-names = "eeprom", "mac-address";
166
167 led {
168 led-active-low;
169 };
170 };
171 };