ramips: dts: rt5350: reset FE and ESW cores together
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_firefly_firewrt.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "firefly,firewrt", "mediatek,mt7621-soc";
8 model = "Firefly FireWRT";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power: power {
21 label = "green:power";
22 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 wps {
30 label = "wps";
31 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
33 };
34
35 power {
36 label = "power";
37 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_POWER>;
39 };
40 };
41 };
42
43 &sdhci {
44 status = "okay";
45 };
46
47 &spi0 {
48 status = "okay";
49
50 flash@0 {
51 compatible = "jedec,spi-nor";
52 reg = <0>;
53 spi-max-frequency = <10000000>;
54
55 partitions {
56 compatible = "fixed-partitions";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 partition@0 {
61 label = "u-boot";
62 reg = <0x0 0x30000>;
63 read-only;
64 };
65
66 partition@30000 {
67 label = "u-boot-env";
68 reg = <0x30000 0x10000>;
69 read-only;
70 };
71
72 factory: partition@40000 {
73 label = "factory";
74 reg = <0x40000 0x10000>;
75 read-only;
76
77 nvmem-layout {
78 compatible = "fixed-layout";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 eeprom_factory_0: eeprom@0 {
83 reg = <0x0 0x200>;
84 };
85
86 eeprom_factory_8000: eeprom@8000 {
87 reg = <0x8000 0x200>;
88 };
89
90 macaddr_factory_e000: macaddr@e000 {
91 compatible = "mac-base";
92 reg = <0xe000 0x6>;
93 #nvmem-cell-cells = <1>;
94 };
95 };
96 };
97
98 partition@50000 {
99 compatible = "denx,uimage";
100 label = "firmware";
101 reg = <0x50000 0xfb0000>;
102 };
103 };
104 };
105 };
106
107 &pcie {
108 status = "okay";
109 };
110
111 &pcie0 {
112 mt76@0,0 {
113 reg = <0x0000 0 0 0 0>;
114 nvmem-cells = <&eeprom_factory_8000>;
115 nvmem-cell-names = "eeprom";
116 ieee80211-freq-limit = <5000000 6000000>;
117 };
118 };
119
120 &pcie1 {
121 mt76@0,0 {
122 reg = <0x0000 0 0 0 0>;
123 nvmem-cells = <&eeprom_factory_0>;
124 nvmem-cell-names = "eeprom";
125 ieee80211-freq-limit = <2400000 2500000>;
126 };
127 };
128
129 &ethernet {
130 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
131 };
132
133 &gmac0 {
134 nvmem-cells = <&macaddr_factory_e000 0>;
135 nvmem-cell-names = "mac-address";
136 };
137
138 &switch0 {
139 ports {
140 port@0 {
141 status = "okay";
142 label = "lan1";
143 };
144
145 port@1 {
146 status = "okay";
147 label = "lan2";
148 };
149
150 port@2 {
151 status = "okay";
152 label = "lan3";
153 };
154
155 port@3 {
156 status = "okay";
157 label = "lan4";
158 };
159
160 port@4 {
161 status = "okay";
162 label = "wan";
163 nvmem-cells = <&macaddr_factory_e000 1>;
164 nvmem-cell-names = "mac-address";
165 };
166 };
167 };
168
169 &state_default {
170 gpio {
171 groups = "wdt", "rgmii2";
172 function = "gpio";
173 };
174 };