1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tenbay,t-mb5eu-v01", "mediatek,mt7621-soc";
10 model = "Tenbay T-MB5EU-V01";
13 led-boot = &led_green;
14 led-failsafe = &led_red;
15 led-running = &led_blue;
16 led-upgrade = &led_red;
17 label-mac-device = &gmac1;
21 bootargs = "console=ttyS0,115200";
22 bootargs-override = "console=ttyS0,115200";
26 compatible = "gpio-leds";
27 pinctrl-names = "default";
28 pinctrl-0 = <&led_pins>;
32 gpios = <&aw9523 0 GPIO_ACTIVE_LOW>;
37 gpios = <&aw9523 1 GPIO_ACTIVE_LOW>;
42 gpios = <&aw9523 11 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-keys-polled";
49 pinctrl-names = "default";
50 pinctrl-0 = <&button_pins>;
54 gpios = <&aw9523 9 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
60 gpios = <&aw9523 8 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_WPS_BUTTON>;
69 compatible = "i2c-gpio";
70 gpios = <&gpio 7 GPIO_ACTIVE_HIGH &gpio 8 GPIO_ACTIVE_HIGH>;
71 i2c-gpio,delay-us = <10>;
73 aw9523: gpio-expander@5b {
74 compatible = "awinic,aw9523-pinctrl";
78 gpio-ranges = <&aw9523 0 0 16>;
80 reset-gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
82 button_pins: button-pins {
83 pins = "gpio8", "gpio9";
91 pins = "gpio0", "gpio1", "gpio11";
106 compatible = "mediatek,mt76";
108 mediatek,mtd-eeprom = <&factory 0x0>;
109 mediatek,disable-radar-background;
114 nvmem-cells = <&macaddr_factory_4>;
115 nvmem-cell-names = "mac-address";
121 phy-handle = <ðphy0>;
123 nvmem-cells = <&macaddr_factory_4>;
124 nvmem-cell-names = "mac-address";
125 mac-address-increment = <(-2)>;
129 ethphy0: ethernet-phy@0 {
169 compatible = "jedec,spi-nor";
171 spi-max-frequency = <50000000>;
174 compatible = "fixed-partitions";
175 #address-cells = <1>;
185 label = "u-boot-env";
186 reg = <0x30000 0x10000>;
192 reg = <0x40000 0x10000>;
196 factory: partition@50000 {
198 reg = <0x50000 0x40000>;
203 compatible = "denx,fit";
205 reg = <0x90000 0xf70000>;
212 compatible = "nvmem-cells";
213 #address-cells = <1>;
216 macaddr_factory_4: macaddr@4 {