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-status = &led_power_green;
17 compatible = "gpio-leds";
20 label = "kng_rc:green:wan";
21 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
25 label = "kng_rc:green:usb";
26 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
30 label = "kng_rc:red:power";
31 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
35 label = "kng_rc:green:wifi";
36 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
39 led_power_green: power {
40 label = "kng_rc:green:power";
41 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys";
51 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
63 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
69 compatible = "gpio-export";
73 gpio-export,name = "usb";
74 gpio-export,output = <1>;
75 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
80 compatible = "realtek,rtl8367b";
82 realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <10000000>;
96 compatible = "fixed-partitions";
107 label = "u-boot-env";
108 reg = <0x30000 0x10000>;
112 factory: partition@40000 {
114 reg = <0x40000 0x10000>;
120 reg = <0x50000 0xfb0000>;
127 state_default: pinctrl0 {
129 ralink,group = "i2c", "uartf";
130 ralink,function = "gpio";
137 pinctrl-names = "default";
138 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
139 mtd-mac-address = <&factory 0x00004>;
143 mediatek,fixed-link = <1000 1 1 1>;
145 phy-handle = <&phy4>;
151 phy4: ethernet-phy@4 {
159 mediatek,port4 = "gmac";
163 ralink,mtd-eeprom = <&factory 0>;