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>;
90 compatible = "denx,uimage";
92 reg = <0x50000 0x1fb0000>;
100 compatible = "linux,spidev";
102 spi-max-frequency = <40000000>;
107 nvmem-cells = <&macaddr_factory_28>;
108 nvmem-cell-names = "mac-address";
112 mediatek,portmap = <0x3e>;
118 mediatek,mtd-eeprom = <&factory 0x0>;
122 compatible = "nvmem-cells";
123 #address-cells = <1>;
126 macaddr_factory_28: macaddr@28 {