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>
11 led-boot = &led_power_blue;
12 led-failsafe = &led_power_blue;
13 led-running = &led_power_blue;
14 led-upgrade = &led_power_blue;
16 label-mac-device = ðernet;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
26 led_power_blue: power {
27 function = LED_FUNCTION_POWER;
28 color = <LED_COLOR_ID_BLUE>;
29 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
33 function = LED_FUNCTION_WLAN;
34 color = <LED_COLOR_ID_WHITE>;
35 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
41 compatible = "gpio-keys";
45 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
53 groups = "wdt", "wled_an", "p1led_an";
59 nvmem-cells = <&macaddr_factory_4>;
60 nvmem-cell-names = "mac-address";
66 nvmem-cells = <&eeprom_factory_0>;
67 nvmem-cell-names = "eeprom";
74 compatible = "jedec,spi-nor";
76 spi-max-frequency = <10000000>;
78 partitions: partitions {
79 compatible = "fixed-partitions";
91 reg = <0x30000 0x10000>;
95 factory: partition@40000 {
97 reg = <0x40000 0x10000>;
101 compatible = "fixed-layout";
102 #address-cells = <1>;
105 eeprom_factory_0: eeprom@0 {
109 macaddr_factory_4: macaddr@4 {
116 * Firmware-partition size is model-specific
117 * due to different flash sizes.
119 firmware_part: partition@50000 {
120 compatible = "denx,uimage";