1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 bootargs = "console=ttyS0,115200";
22 compatible = "gpio-leds";
25 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
31 function = LED_FUNCTION_USB;
32 color = <LED_COLOR_ID_GREEN>;
33 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
34 trigger-sources = <&ohci_port1>, <&ehci_port1>;
35 linux,default-trigger = "usbport";
40 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys";
49 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
59 compatible = "jedec,spi-nor";
61 spi-max-frequency = <10000000>;
64 compatible = "fixed-partitions";
76 reg = <0x30000 0x10000>;
82 reg = <0x40000 0x10000>;
86 compatible = "fixed-layout";
90 eeprom_factory_0: eeprom@0 {
94 macaddr_factory_4: macaddr@4 {
100 firmware: partition@50000 {
101 compatible = "denx,uimage";
103 /* reg property is set based on flash size in DTS files */
130 nvmem-cells = <&macaddr_factory_4>;
131 nvmem-cell-names = "mac-address";
133 mediatek,portmap = "llllw";
137 nvmem-cells = <&eeprom_factory_0>;
138 nvmem-cell-names = "eeprom";
143 groups = "i2c", "uartf", "wled", "spi refclk", "pa";