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>
8 compatible = "keenetic,kn-1613", "mediatek,mt7628an-soc";
9 model = "Keenetic KN-1613";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 label = "green:power";
27 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
31 label = "green:internet";
32 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
36 label = "green:wifi2";
37 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
42 label = "green:wifi5";
43 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy1tpt";
49 compatible = "gpio-keys";
53 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_WPS_BUTTON>;
71 compatible = "mtd-concat";
72 devices = <&firmware1 &firmware2>;
75 compatible = "fixed-partitions";
80 compatible = "denx,uimage";
82 reg = <0x0 0x1ec0000>;
90 groups = "i2s", "i2c", "gpio", "refclk", "wdt", "wled_an";
111 compatible = "jedec,spi-nor";
113 spi-max-frequency = <32000000>;
115 partitions: partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
128 reg = <0x30000 0x10000>;
132 factory: partition@40000 {
133 compatible = "nvmem-cells";
135 reg = <0x40000 0x10000>;
136 #address-cells = <1>;
140 eeprom_factory_0: eeprom@0 {
144 eeprom_factory_400: eeprom@400 {
145 reg = <0x400 0x4da8>;
148 macaddr_factory_4: macaddr@4 {
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 nvmem-cells = <&macaddr_factory_4>;
204 nvmem-cell-names = "mac-address";
208 mediatek,portmap = <0x3e>;
214 nvmem-cells = <&eeprom_factory_0>;
215 nvmem-cell-names = "eeprom";
224 compatible = "mediatek,mt76";
225 reg = <0x0000 0 0 0 0>;
226 nvmem-cells = <&eeprom_factory_400>;
227 nvmem-cell-names = "eeprom";
228 ieee80211-freq-limit = <5000000 6000000>;