3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 model = "ZyXEL Keenetic Viva";
12 compatible = "gpio-leds";
15 label = "kng_rc:green:wan";
16 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
20 label = "kng_rc:green:usb";
21 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
25 label = "kng_rc:red:power";
26 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
30 label = "kng_rc:green:wifi";
31 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
35 label = "kng_rc:green:power";
36 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys";
48 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
54 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
60 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
66 compatible = "gpio-export";
70 gpio-export,name = "usb";
71 gpio-export,output = <1>;
72 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
77 compatible = "realtek,rtl8367b";
79 realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <10000000>;
101 label = "u-boot-env";
102 reg = <0x30000 0x10000>;
106 factory: partition@40000 {
108 reg = <0x40000 0x10000>;
114 reg = <0x50000 0xfb0000>;
120 state_default: pinctrl0 {
122 ralink,group = "i2c", "uartf";
123 ralink,function = "gpio";
130 pinctrl-names = "default";
131 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
132 mtd-mac-address = <&factory 0x00004>;
136 mediatek,fixed-link = <1000 1 1 1>;
138 phy-handle = <&phy4>;
144 phy4: ethernet-phy@4 {
152 mediatek,port4 = "gmac";
156 ralink,mtd-eeprom = <&factory 0>;