1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "hilink,hlk-7688a", "mediatek,mt7628an-soc";
11 model = "Hi-Link HLK-7688A";
15 led-failsafe = &led_wlan;
16 led-upgrade = &led_wlan;
20 compatible = "gpio-keys";
24 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
30 compatible = "gpio-leds";
33 function = LED_FUNCTION_WLAN;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
43 groups = "wdt", "wled_an";
59 pinctrl-names = "default";
60 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
63 compatible = "jedec,spi-nor";
65 spi-max-frequency = <40000000>;
69 compatible = "fixed-partitions";
81 reg = <0x30000 0x10000>;
87 reg = <0x40000 0x10000>;
91 compatible = "fixed-layout";
95 eeprom_factory_0: eeprom@0 {
99 macaddr_factory_28: macaddr@28 {
106 compatible = "denx,uimage";
108 reg = <0x50000 0x1fb0000>;
114 #address-cells = <1>;
116 compatible = "linux,spidev";
118 spi-max-frequency = <40000000>;
123 nvmem-cells = <&macaddr_factory_28>;
124 nvmem-cell-names = "mac-address";
128 mediatek,portmap = <0x3e>;
134 nvmem-cells = <&eeprom_factory_0>;
135 nvmem-cell-names = "eeprom";