ramips: dts: rt5350: reset FE and ESW cores together
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_dlink_dap-1325-a1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dap-1325-a1", "mediatek,mt7628an-soc";
10 model = "D-Link DAP-1325 A1";
11
12 aliases {
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_green;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_red;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_status_red: status_red {
23 label = "red:status";
24 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
25 };
26
27 led_status_green: status_green {
28 label = "green:status";
29 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
30 };
31
32 wifi-high {
33 label = "green:wifi-high";
34 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
35 };
36
37 wifi-mid {
38 label = "green:wifi-mid";
39 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
40 };
41
42 wifi-low {
43 label = "green:wifi-low";
44 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
45 };
46
47 wifi-verylow {
48 label = "red:wifi-verylow";
49 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
50 };
51 };
52
53 keys {
54 compatible = "gpio-keys";
55
56 wps {
57 label = "wps";
58 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
60 };
61
62 reset {
63 label = "reset";
64 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
66 };
67 };
68 };
69
70 &state_default {
71 gpio {
72 groups = "refclk", "gpio", "wled_an", "i2s", "uart1", "wdt";
73 function = "gpio";
74 };
75 };
76
77 &ethernet {
78 nvmem-cells = <&macaddr_factory_28>;
79 nvmem-cell-names = "mac-address";
80 };
81
82 &wmac {
83 status = "okay";
84
85 nvmem-cells = <&eeprom_factory_0>;
86 nvmem-cell-names = "eeprom";
87
88 nvmem-cells = <&macaddr_factory_28>;
89 nvmem-cell-names = "mac-address";
90 };
91
92 &spi0 {
93 status = "okay";
94
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 reg = <0>;
98 spi-max-frequency = <50000000>;
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 partition@0 {
106 label = "u-boot";
107 reg = <0x0 0x30000>;
108 read-only;
109 };
110
111 partition@30000 {
112 label = "u-boot-env";
113 reg = <0x30000 0x10000>;
114 read-only;
115 };
116
117 factory: partition@40000 {
118 label = "factory";
119 reg = <0x40000 0x10000>;
120 read-only;
121
122 nvmem-layout {
123 compatible = "fixed-layout";
124 #address-cells = <1>;
125 #size-cells = <1>;
126
127 eeprom_factory_0: eeprom@0 {
128 reg = <0x0 0x400>;
129 };
130
131 macaddr_factory_28: macaddr@28 {
132 reg = <0x28 0x6>;
133 };
134 };
135 };
136
137 partition@50000 {
138 compatible = "denx,uimage";
139 label = "firmware";
140 reg = <0x50000 0x7b0000>;
141 };
142 };
143 };
144 };