Revert "kernel: backport MT7530 IRQ support"
[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
78 partition@50000 {
79 compatible = "denx,uimage";
80 label = "firmware";
81 reg = <0x50000 0xfb0000>;
82 };
83 };
84 };
85 };
86
87 &pcie {
88 status = "okay";
89 };
90
91 &pcie0 {
92 mt76@0,0 {
93 reg = <0x0000 0 0 0 0>;
94 mediatek,mtd-eeprom = <&factory 0x8000>;
95 ieee80211-freq-limit = <5000000 6000000>;
96 };
97 };
98
99 &pcie1 {
100 mt76@0,0 {
101 reg = <0x0000 0 0 0 0>;
102 mediatek,mtd-eeprom = <&factory 0x0000>;
103 ieee80211-freq-limit = <2400000 2500000>;
104 };
105 };
106
107 &gmac0 {
108 nvmem-cells = <&macaddr_factory_e000>;
109 nvmem-cell-names = "mac-address";
110 };
111
112 &switch0 {
113 ports {
114 port@0 {
115 status = "okay";
116 label = "lan1";
117 };
118
119 port@1 {
120 status = "okay";
121 label = "lan2";
122 };
123
124 port@2 {
125 status = "okay";
126 label = "lan3";
127 };
128
129 port@3 {
130 status = "okay";
131 label = "lan4";
132 };
133
134 port@4 {
135 status = "okay";
136 label = "wan";
137 nvmem-cells = <&macaddr_factory_e000>;
138 nvmem-cell-names = "mac-address";
139 mac-address-increment = <1>;
140 };
141 };
142 };
143
144 &state_default {
145 gpio {
146 groups = "wdt", "rgmii2";
147 function = "gpio";
148 };
149 };
150
151 &factory {
152 compatible = "nvmem-cells";
153 #address-cells = <1>;
154 #size-cells = <1>;
155
156 macaddr_factory_e000: macaddr@e000 {
157 reg = <0xe000 0x6>;
158 };
159 };