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 compatible = "gpio-leds";
16 label = "kng_rc:green:wan";
17 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
21 label = "kng_rc:green:usb";
22 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
26 label = "kng_rc:red:power";
27 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
31 label = "kng_rc:green:wifi";
32 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
36 label = "kng_rc:green:power";
37 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-keys";
49 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
55 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_WPS_BUTTON>;
61 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
67 compatible = "gpio-export";
71 gpio-export,name = "usb";
72 gpio-export,output = <1>;
73 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
78 compatible = "realtek,rtl8367b";
80 realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <10000000>;
102 label = "u-boot-env";
103 reg = <0x30000 0x10000>;
107 factory: partition@40000 {
109 reg = <0x40000 0x10000>;
115 reg = <0x50000 0xfb0000>;
121 state_default: pinctrl0 {
123 ralink,group = "i2c", "uartf";
124 ralink,function = "gpio";
131 pinctrl-names = "default";
132 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
133 mtd-mac-address = <&factory 0x00004>;
137 mediatek,fixed-link = <1000 1 1 1>;
139 phy-handle = <&phy4>;
145 phy4: ethernet-phy@4 {
153 mediatek,port4 = "gmac";
157 ralink,mtd-eeprom = <&factory 0>;