ramips: fix WiFi MAC addresses for D-Link DIR-810L
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_asus_rt-ac85p.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7621.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10         compatible = "asus,rt-ac85p", "mediatek,mt7621-soc";
11         model = "ASUS RT-AC85P";
12
13         aliases {
14                 led-boot = &led_power;
15                 led-failsafe = &led_power;
16                 led-running = &led_power;
17                 led-upgrade = &led_power;
18         };
19
20         chosen {
21                 bootargs = "console=ttyS0,57600";
22         };
23
24         palmbus: palmbus@1E000000 {
25                 i2c@900 {
26                         status = "okay";
27                 };
28         };
29
30         keys {
31                 compatible = "gpio-keys";
32
33                 reset {
34                         label = "reset";
35                         gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
36                         linux,code = <KEY_RESTART>;
37                 };
38
39                 wps {
40                         label = "wps";
41                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
42                         linux,code = <KEY_WPS_BUTTON>;
43                 };
44         };
45
46         leds {
47                 compatible = "gpio-leds";
48
49                 led_power: power {
50                         label = "rt-ac85p:blue:power";
51                         gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
52                         linux,default-trigger = "phy0tpt";
53                 };
54                 wlan2g {
55                         label = "rt-ac85p:blue:wlan2g";
56                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
57                         linux,default-trigger = "phy0radio";
58                 };
59
60                 wlan5g {
61                         label = "rt-ac85p:blue:wlan5g";
62                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
63                         linux,default-trigger = "phy1radio";
64                 };
65         };
66 };
67
68 &sdhci {
69         status = "okay";
70 };
71
72 &nand {
73         status = "okay";
74
75         partitions {
76                 compatible = "fixed-partitions";
77                 #address-cells = <1>;
78                 #size-cells = <1>;
79
80                 partition@0 {
81                         label = "u-boot";
82                         reg = <0x0 0xe0000>;
83                         read-only;
84                 };
85
86                 partition@e0000 {
87                         label = "u-boot-env";
88                         reg = <0xe0000 0x100000>;
89                         read-only;
90                 };
91
92                 factory: partition@1e0000 {
93                         label = "factory";
94                         reg = <0x1e0000 0x100000>;
95                         read-only;
96                 };
97
98                 factory2: partition@2e0000 {
99                         label = "factory2";
100                         reg = <0x2e0000 0x100000>;
101                         read-only;
102                 };
103
104                 partition@3e0000 {
105                         label = "kernel";
106                         reg = <0x3e0000 0x400000>;
107                 };
108
109                 partition@7e0000 {
110                         label = "ubi";
111                         reg = <0x7e0000 0x2e00000>;
112                 };
113
114                 partition@35e0000 {
115                         label = "firmware2";
116                         reg = <0x35e0000 0x3200000>;
117                 };
118         };
119 };
120
121 &pcie {
122         status = "okay";
123 };
124
125 &pcie0 {
126         wifi0: wifi@0,0 {
127                 compatible = "pci14c3,7615";
128                 reg = <0x0000 0 0 0 0>;
129                 mediatek,mtd-eeprom = <&factory 0x0000>;
130                 ieee80211-freq-limit = <2400000 2500000>;
131         };
132 };
133
134 &pcie1 {
135         wifi1: wifi@0,0 {
136                 compatible = "pci14c3,7615";
137                 reg = <0x0000 0 0 0 0>;
138                 mediatek,mtd-eeprom = <&factory 0x8000>;
139                 ieee80211-freq-limit = <5000000 6000000>;
140         };
141 };
142
143 &ethernet {
144         mtd-mac-address = <&factory 0xe000>;
145         mediatek,portmap = "wllll";
146         port@5 {
147                 status = "disabled";
148         };
149 };
150
151 &i2c {
152         status = "disabled";
153 };
154
155 &pinctrl {
156         state_default: pinctrl0 {
157                 gpio {
158                         ralink,group = "uart2", "uart3", "i2c";
159                         ralink,function = "gpio";
160                 };
161         };
162 };