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>
9 compatible = "hilink,hlk-7688a", "mediatek,mt7628an-soc";
10 model = "Hi-Link HLK-7688A";
14 led-failsafe = &led_wlan;
15 led-upgrade = &led_wlan;
19 compatible = "gpio-keys";
23 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
29 compatible = "gpio-leds";
33 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy0tpt";
41 groups = "wdt", "wled_an";
57 pinctrl-names = "default";
58 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
61 compatible = "jedec,spi-nor";
63 spi-max-frequency = <40000000>;
67 compatible = "fixed-partitions";
79 reg = <0x30000 0x10000>;
83 factory: partition@40000 {
85 reg = <0x40000 0x10000>;
89 compatible = "fixed-layout";
93 eeprom_factory_0: eeprom@0 {
97 macaddr_factory_28: macaddr@28 {
104 compatible = "denx,uimage";
106 reg = <0x50000 0x1fb0000>;
112 #address-cells = <1>;
114 compatible = "linux,spidev";
116 spi-max-frequency = <40000000>;
121 nvmem-cells = <&macaddr_factory_28>;
122 nvmem-cell-names = "mac-address";
126 mediatek,portmap = <0x3e>;
132 nvmem-cells = <&eeprom_factory_0>;
133 nvmem-cell-names = "eeprom";