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>
10 compatible = "minew,g1-c", "mediatek,mt7628an-soc";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
20 compatible = "gpio-keys-polled";
25 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 compatible = "gpio-leds";
35 gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
41 compatible = "gpio-export";
45 gpio-export,name = "ws2812";
46 gpio-export,output = <1>;
47 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
51 gpio-export,name = "nrf_power";
52 gpio-export,output = <1>;
53 gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <40000000>;
92 compatible = "fixed-partitions";
103 label = "u-boot-env";
104 reg = <0x30000 0x10000>;
107 factory: partition@40000 {
108 compatible = "nvmem-cells";
110 reg = <0x40000 0x10000>;
111 #address-cells = <1>;
115 eeprom_factory_0: eeprom@0 {
119 macaddr_factory_28: macaddr@28 {
125 compatible = "denx,uimage";
127 reg = <0x50000 0xfb0000>;
134 nvmem-cells = <&macaddr_factory_28>;
135 nvmem-cell-names = "mac-address";
139 mediatek,portmap = <0x3e>;
145 nvmem-cells = <&eeprom_factory_0>;
146 nvmem-cell-names = "eeprom";