1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc";
8 model = "GL-MT300N-V2";
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 label-mac-device = ðernet;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 label = "green:power";
28 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
33 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
38 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
43 compatible = "gpio-keys";
47 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
53 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
59 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
65 compatible = "gpio-export";
69 gpio-export,name = "usb";
70 gpio-export,output = <1>;
71 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
78 groups = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s", "i2c";
84 nvmem-cells = <&macaddr_factory_4>;
85 nvmem-cell-names = "mac-address";
91 nvmem-cells = <&eeprom_factory_0>;
92 nvmem-cell-names = "eeprom";
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <10000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
115 label = "u-boot-env";
116 reg = <0x30000 0x10000>;
120 factory: partition@40000 {
121 compatible = "nvmem-cells";
123 reg = <0x40000 0x10000>;
124 #address-cells = <1>;
128 eeprom_factory_0: eeprom@0 {
132 macaddr_factory_4: macaddr@4 {
138 compatible = "denx,uimage";
140 reg = <0x50000 0xfb0000>;