ramips: fix WiFi MAC addresses for D-Link DIR-810L
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620n_dlink_dwr-922-e2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7620n.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10         compatible = "dlink,dwr-922-e2", "ralink,mt7620n-soc";
11         model = "D-Link DWR-922 E2";
12
13         aliases {
14                 led-boot = &sstrengthg;
15                 led-failsafe = &sstrengthg;
16         };
17
18         keys {
19                 compatible = "gpio-keys-polled";
20                 poll-interval = <20>;
21
22                 wps {
23                         label = "wps";
24                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
25                         linux,code = <KEY_WPS_BUTTON>;
26                 };
27
28                 reset {
29                         label = "reset";
30                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
31                         linux,code = <KEY_RESTART>;
32                 };
33         };
34
35         leds {
36                 compatible = "gpio-leds";
37                 led-boot = &sstrengthg;
38
39                 sms {
40                         label = "dwr-922-e2:green:sms";
41                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
42                 };
43
44                 lan {
45                         label = "dwr-922-e2:green:lan";
46                         gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
47                 };
48
49                 sstrengthg: sstrengthg {
50                         label = "dwr-922-e2:green:sigstrength";
51                         gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
52                 };
53
54                 sstrengthr {
55                         label = "dwr-922-e2:red:sigstrength";
56                         gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
57                 };
58
59                 4g {
60                         label = "dwr-922-e2:green:4g";
61                         gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
62                 };
63
64                 3g {
65                         label = "dwr-922-e2:green:3g";
66                         gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
67                 };
68
69                 wifi {
70                         label = "dwr-922-e2:green:wifi";
71                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
72                 };
73         };
74
75         gpio_export {
76                 compatible = "gpio-export";
77                 #size-cells = <0>;
78
79                 lte_modem_enable {
80                         gpio-export,name = "lte_modem_enable";
81                         gpio-export,output = <1>;
82                         gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
83                 };
84         };
85 };
86
87 &gpio1 {
88         status = "okay";
89 };
90
91 &gpio2 {
92         status = "okay";
93 };
94
95 &gpio3 {
96         status = "okay";
97 };
98
99 &spi0 {
100         status = "okay";
101
102         flash@0 {
103                 compatible = "jedec,spi-nor";
104                 reg = <0>;
105                 spi-max-frequency = <10000000>;
106
107                 partitions {
108                         compatible = "fixed-partitions";
109                         #address-cells = <1>;
110                         #size-cells = <1>;
111
112                         partition@0 {
113                                 label = "jboot";
114                                 reg = <0x0 0x10000>;
115                                 read-only;
116                         };
117
118                         partition@10000 {
119                                 compatible = "amit,jimage";
120                                 label = "firmware";
121                                 reg = <0x10000 0xfe0000>;
122                         };
123
124                         config: partition@ff0000 {
125                                 label = "config";
126                                 reg = <0xff0000 0x10000>;
127                                 read-only;
128                         };
129                 };
130         };
131 };
132
133 &ehci {
134         status = "okay";
135 };
136
137 &ohci {
138         status = "okay";
139 };
140
141 &ethernet {
142         port@4 {
143                 status = "okay";
144         };
145 };
146
147 &pinctrl {
148         state_default: pinctrl0 {
149                 default {
150                         ralink,group = "spi refclk", "i2c", "ephy", "wled";
151                         ralink,function = "gpio";
152                 };
153         };
154 };