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 = &wan_port;
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";
107 mediatek,mtd-eeprom = <&factory 0x0>;
112 nvmem-cells = <&macaddr_factory_4>;
113 nvmem-cell-names = "mac-address";
121 nvmem-cells = <&macaddr_factory_28>;
122 nvmem-cell-names = "mac-address";
158 compatible = "jedec,spi-nor";
160 spi-max-frequency = <50000000>;
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
174 label = "u-boot-env";
175 reg = <0x30000 0x10000>;
181 reg = <0x40000 0x10000>;
185 factory: partition@50000 {
187 reg = <0x50000 0x40000>;
192 compatible = "denx,fit";
194 reg = <0x90000 0xf70000>;
201 compatible = "nvmem-cells";
202 #address-cells = <1>;
205 macaddr_factory_4: macaddr@4 {
209 macaddr_factory_28: macaddr@28 {