1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (C) 2018 Piotr Dymacz <pepe2k@gmail.com>
7 #include "mt7628an.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
14 compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc";
15 model = "ALFA Network AWUSFREE1";
18 led-boot = &led_system;
19 led-failsafe = &led_system;
20 led-running = &led_system;
21 led-upgrade = &led_system;
25 bootargs = "console=ttyS0,115200";
29 compatible = "gpio-keys";
33 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
39 compatible = "gpio-leds";
42 label = "orange:system";
43 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
47 function = LED_FUNCTION_WLAN;
48 color = <LED_COLOR_ID_BLUE>;
49 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
59 mediatek,portdisable = <0x1e>;
63 nvmem-cells = <&macaddr_factory_2e>;
64 nvmem-cell-names = "mac-address";
73 groups = "p0led_an", "wdt", "wled_an";
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <10000000>;
97 compatible = "fixed-partitions";
108 label = "u-boot-env";
109 reg = <0x30000 0x1000>;
114 reg = <0x31000 0xf000>;
120 reg = <0x40000 0x10000>;
124 compatible = "fixed-layout";
125 #address-cells = <1>;
128 eeprom_factory_0: eeprom@0 {
132 macaddr_factory_2e: macaddr@2e {
139 compatible = "denx,uimage";
141 reg = <0x50000 0x7b0000>;
150 nvmem-cells = <&eeprom_factory_0>;
151 nvmem-cell-names = "eeprom";