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>;
27 trigger-sources = <&ohci_port1>, <&ehci_port1>;
28 linux,default-trigger = "usbport";
32 label = "kng_rc:red:power";
33 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
37 label = "kng_rc:green:wifi";
38 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
41 led_power_green: power {
42 label = "kng_rc:green:power";
43 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-keys";
53 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
59 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
65 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
71 compatible = "gpio-export";
75 gpio-export,name = "usb";
76 gpio-export,output = <1>;
77 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
82 compatible = "realtek,rtl8367b";
84 realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <10000000>;
98 compatible = "fixed-partitions";
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
114 factory: partition@40000 {
116 reg = <0x40000 0x10000>;
122 reg = <0x50000 0xfb0000>;
129 state_default: pinctrl0 {
131 ralink,group = "i2c", "uartf";
132 ralink,function = "gpio";
139 pinctrl-names = "default";
140 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
141 mtd-mac-address = <&factory 0x00004>;
145 mediatek,fixed-link = <1000 1 1 1>;
147 phy-handle = <&phy4>;
153 phy4: ethernet-phy@4 {
161 mediatek,port4 = "gmac";
165 ralink,mtd-eeprom = <&factory 0>;