3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "zyxel,keenetic-viva", "ralink,mt7620a-soc";
10 model = "ZyXEL Keenetic Viva";
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
20 compatible = "gpio-leds";
23 label = "keenetic-viva:green:wan";
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
28 label = "keenetic-viva:green:usb";
29 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&ohci_port1>, <&ehci_port1>;
31 linux,default-trigger = "usbport";
35 label = "keenetic-viva:red:power";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 label = "keenetic-viva:green:wifi";
41 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
44 led_power_green: power {
45 label = "keenetic-viva:green:power";
46 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-keys";
55 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
61 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
67 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
73 compatible = "gpio-export";
77 gpio-export,name = "usb";
78 gpio-export,output = <1>;
79 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
84 compatible = "realtek,rtl8367b";
86 realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <10000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
116 factory: partition@40000 {
118 reg = <0x40000 0x10000>;
123 compatible = "denx,uimage";
125 reg = <0x50000 0xfb0000>;
132 state_default: pinctrl0 {
134 ralink,group = "i2c", "uartf";
135 ralink,function = "gpio";
142 pinctrl-names = "default";
143 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
144 mtd-mac-address = <&factory 0x00004>;
148 mediatek,fixed-link = <1000 1 1 1>;
150 phy-handle = <&phy4>;
156 phy4: ethernet-phy@4 {
164 mediatek,port4 = "gmac";
168 ralink,mtd-eeprom = <&factory 0>;