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";
56 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
62 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_WPS_BUTTON>;
68 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
74 compatible = "gpio-export";
78 gpio-export,name = "usb";
79 gpio-export,output = <1>;
80 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
85 compatible = "realtek,rtl8367b";
87 realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <10000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
112 label = "u-boot-env";
113 reg = <0x30000 0x10000>;
117 factory: partition@40000 {
119 reg = <0x40000 0x10000>;
124 compatible = "denx,uimage";
126 reg = <0x50000 0xfb0000>;
133 state_default: pinctrl0 {
135 ralink,group = "i2c", "uartf";
136 ralink,function = "gpio";
143 pinctrl-names = "default";
144 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
145 mtd-mac-address = <&factory 0x00004>;
149 mediatek,fixed-link = <1000 1 1 1>;
151 phy-handle = <&phy4>;
157 phy4: ethernet-phy@4 {
165 mediatek,port4 = "gmac";
169 ralink,mtd-eeprom = <&factory 0>;