1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
8 compatible = "keenetic,kn-3010", "mediatek,mt7621-soc";
9 model = "Keenetic KN-3010";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = &gmac0;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 label = "green:power";
28 gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
32 label = "green:internet";
33 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
37 label = "green:wifi2";
38 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
43 label = "green:wifi5";
44 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy1tpt";
50 compatible = "gpio-keys";
54 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
60 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
66 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_WPS_BUTTON>;
72 compatible = "mtd-concat";
73 devices = <&firmware1 &firmware2>;
76 compatible = "fixed-partitions";
81 compatible = "denx,uimage";
83 reg = <0x0 0x1ec0000>;
91 groups = "uart3", "sdhci";
104 compatible = "jedec,spi-nor";
106 spi-max-frequency = <31000000>;
108 partitions: partitions {
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
121 reg = <0x30000 0x10000>;
125 factory: partition@40000 {
127 reg = <0x40000 0x10000>;
131 compatible = "fixed-layout";
132 #address-cells = <1>;
135 eeprom_factory_0: eeprom@0 {
139 eeprom_factory_400: eeprom@400 {
140 reg = <0x400 0x4da8>;
143 macaddr_factory_4: macaddr@4 {
147 macaddr_factory_28: macaddr@28 {
153 firmware1: partition@50000 {
154 label = "firmware_1";
155 reg = <0x50000 0xf60000>;
160 reg = <0xfb0000 0x40000>;
166 reg = <0xff0000 0x10000>;
172 reg = <0x1000000 0x30000>;
177 label = "u-config_res";
178 reg = <0x1030000 0x10000>;
183 label = "rf-eeprom_res";
184 reg = <0x1040000 0x10000>;
188 firmware2: partition@1050000 {
189 label = "firmware_2";
190 reg = <0x1050000 0xf60000>;
195 reg = <0x1fb0000 0x40000>;
203 ethphy0: ethernet-phy@0 {
209 nvmem-cells = <&macaddr_factory_4>;
210 nvmem-cell-names = "mac-address";
216 phy-handle = <ðphy0>;
218 nvmem-cells = <&macaddr_factory_28>;
219 nvmem-cell-names = "mac-address";
252 compatible = "mediatek,mt76";
253 reg = <0x0000 0 0 0 0>;
254 nvmem-cells = <&eeprom_factory_0>;
255 nvmem-cell-names = "eeprom";
256 ieee80211-freq-limit = <2400000 2500000>;
262 compatible = "mediatek,mt76";
263 reg = <0x0000 0 0 0 0>;
264 nvmem-cells = <&eeprom_factory_400>;
265 nvmem-cell-names = "eeprom";
266 ieee80211-freq-limit = <5000000 6000000>;