1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
17 compatible = "gpio-keys";
21 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
27 compatible = "gpio-leds";
30 label = "green:power";
31 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
36 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
42 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
56 compatible = "jedec,spi-nor";
58 spi-max-frequency = <40000000>;
61 compatible = "fixed-partitions";
73 reg = <0x30000 0x10000>;
77 factory: partition@40000 {
79 reg = <0x40000 0x10000>;
83 compatible = "fixed-layout";
87 eeprom_factory_0: eeprom@0 {
91 macaddr_factory_4: macaddr@4 {
98 compatible = "denx,uimage";
100 reg = <0x50000 0x7b0000>;
107 nvmem-cells = <&macaddr_factory_4>;
108 nvmem-cell-names = "mac-address";
112 mediatek,portmap = <0x2f>;
118 nvmem-cells = <&eeprom_factory_0>;
119 nvmem-cell-names = "eeprom";
124 groups = "i2c", "p0led_an", "p1led_an", "refclk", "wled_an";