ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_bdcom_wap2100-sk.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "bdcom,wap2100-sk", "ralink,mt7620a-soc";
11 model = "BDCOM WAP2100-SK";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 usb {
26 function = LED_FUNCTION_USB;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&ohci_port1>, <&ehci_port1>;
30 linux,default-trigger = "usbport";
31 };
32
33 led_power: wps {
34 function = LED_FUNCTION_WPS;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
37 };
38
39 wlan2g {
40 label = "green:wlan2g";
41 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys";
47
48 wps {
49 label = "wps";
50 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 };
53
54 reset {
55 label = "reset";
56 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
58 };
59 };
60 };
61
62 &spi0 {
63 status = "okay";
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <10000000>;
69
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x30000>;
78 read-only;
79 };
80
81 partition@30000 {
82 label = "u-boot-env";
83 reg = <0x30000 0x10000>;
84 read-only;
85 };
86
87 factory: partition@40000 {
88 label = "factory";
89 reg = <0x40000 0x10000>;
90 read-only;
91
92 nvmem-layout {
93 compatible = "fixed-layout";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 eeprom_factory_0: eeprom@0 {
98 reg = <0x0 0x200>;
99 };
100
101 eeprom_factory_8000: eeprom@8000 {
102 reg = <0x8000 0x200>;
103 };
104
105 macaddr_factory_4: macaddr@4 {
106 reg = <0x4 0x6>;
107 };
108 };
109 };
110
111 partition@50000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x50000 0xf70000>;
115 };
116 };
117 };
118 };
119
120 &gpio1 {
121 status = "okay";
122 };
123
124 &gpio3 {
125 status = "okay";
126 };
127
128 &sdhci {
129 status = "okay";
130 };
131
132 &ehci {
133 status = "okay";
134 };
135
136 &ohci {
137 status = "okay";
138 };
139
140 &ethernet {
141 nvmem-cells = <&macaddr_factory_4>;
142 nvmem-cell-names = "mac-address";
143
144 mediatek,portmap = "wllll";
145 };
146
147 &wmac {
148 nvmem-cells = <&eeprom_factory_0>;
149 nvmem-cell-names = "eeprom";
150 };
151
152 &pcie {
153 status = "okay";
154 };
155
156 &pcie0 {
157 wifi@0,0 {
158 reg = <0x0000 0 0 0 0>;
159 nvmem-cells = <&eeprom_factory_8000>;
160 nvmem-cell-names = "eeprom";
161 ieee80211-freq-limit = <5000000 6000000>;
162 };
163 };
164
165 &state_default {
166 default {
167 groups = "spi refclk", "uartf", "wled";
168 function = "gpio";
169 };
170 };