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>
6 #include <dt-bindings/leds/common.h>
9 compatible = "keenetic,kn-3010", "mediatek,mt7621-soc";
10 model = "Keenetic KN-3010";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
28 function = LED_FUNCTION_POWER;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
34 label = "green:internet";
35 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
39 label = "green:wifi2";
40 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy0tpt";
45 label = "green:wifi5";
46 gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy1tpt";
52 compatible = "gpio-keys";
56 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
68 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_WPS_BUTTON>;
74 compatible = "mtd-concat";
75 devices = <&firmware1 &firmware2>;
78 compatible = "fixed-partitions";
83 compatible = "denx,uimage";
85 reg = <0x0 0x1ec0000>;
93 groups = "uart3", "sdhci";
106 compatible = "jedec,spi-nor";
108 spi-max-frequency = <31000000>;
110 partitions: partitions {
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
123 reg = <0x30000 0x10000>;
127 factory: partition@40000 {
129 reg = <0x40000 0x10000>;
133 compatible = "fixed-layout";
134 #address-cells = <1>;
137 eeprom_factory_0: eeprom@0 {
141 eeprom_factory_400: eeprom@400 {
142 reg = <0x400 0x4da8>;
145 macaddr_factory_4: macaddr@4 {
149 macaddr_factory_28: macaddr@28 {
155 firmware1: partition@50000 {
156 label = "firmware_1";
157 reg = <0x50000 0xf60000>;
162 reg = <0xfb0000 0x40000>;
168 reg = <0xff0000 0x10000>;
174 reg = <0x1000000 0x30000>;
179 label = "u-config_res";
180 reg = <0x1030000 0x10000>;
185 label = "rf-eeprom_res";
186 reg = <0x1040000 0x10000>;
190 firmware2: partition@1050000 {
191 label = "firmware_2";
192 reg = <0x1050000 0xf60000>;
197 reg = <0x1fb0000 0x40000>;
205 ethphy0: ethernet-phy@0 {
211 nvmem-cells = <&macaddr_factory_4>;
212 nvmem-cell-names = "mac-address";
218 phy-handle = <ðphy0>;
220 nvmem-cells = <&macaddr_factory_28>;
221 nvmem-cell-names = "mac-address";
254 compatible = "mediatek,mt76";
255 reg = <0x0000 0 0 0 0>;
256 nvmem-cells = <&eeprom_factory_0>;
257 nvmem-cell-names = "eeprom";
258 ieee80211-freq-limit = <2400000 2500000>;
264 compatible = "mediatek,mt76";
265 reg = <0x0000 0 0 0 0>;
266 nvmem-cells = <&eeprom_factory_400>;
267 nvmem-cell-names = "eeprom";
268 ieee80211-freq-limit = <5000000 6000000>;