1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include "mt7628an.dtsi"
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-1613", "mediatek,mt7628an-soc";
10 model = "Keenetic KN-1613";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 function = LED_FUNCTION_POWER;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
33 label = "green:internet";
34 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
38 label = "green:wifi2";
39 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy0tpt";
44 label = "green:wifi5";
45 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy1tpt";
51 compatible = "gpio-keys";
55 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
67 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_WPS_BUTTON>;
73 compatible = "mtd-concat";
74 devices = <&firmware1 &firmware2>;
77 compatible = "fixed-partitions";
82 compatible = "denx,uimage";
84 reg = <0x0 0x1ec0000>;
92 groups = "i2s", "i2c", "gpio", "refclk", "wdt", "wled_an";
113 compatible = "jedec,spi-nor";
115 spi-max-frequency = <32000000>;
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
130 reg = <0x30000 0x10000>;
136 reg = <0x40000 0x10000>;
140 compatible = "fixed-layout";
141 #address-cells = <1>;
144 eeprom_factory_0: eeprom@0 {
148 eeprom_factory_400: eeprom@400 {
149 reg = <0x400 0x4da8>;
152 macaddr_factory_4: macaddr@4 {
158 firmware1: partition@50000 {
159 label = "firmware_1";
160 reg = <0x50000 0xf60000>;
165 reg = <0xfb0000 0x40000>;
171 reg = <0xff0000 0x10000>;
177 reg = <0x1000000 0x30000>;
182 label = "u-config_res";
183 reg = <0x1030000 0x10000>;
188 label = "rf-eeprom_res";
189 reg = <0x1040000 0x10000>;
193 firmware2: partition@1050000 {
194 label = "firmware_2";
195 reg = <0x1050000 0xf60000>;
200 reg = <0x1fb0000 0x40000>;
208 nvmem-cells = <&macaddr_factory_4>;
209 nvmem-cell-names = "mac-address";
213 mediatek,portmap = <0x3e>;
219 nvmem-cells = <&eeprom_factory_0>;
220 nvmem-cell-names = "eeprom";
229 compatible = "mediatek,mt76";
230 reg = <0x0000 0 0 0 0>;
231 nvmem-cells = <&eeprom_factory_400>;
232 nvmem-cell-names = "eeprom";
233 ieee80211-freq-limit = <5000000 6000000>;