1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "zyxel,keenetic-viva", "ralink,mt7620a-soc";
9 model = "ZyXEL Keenetic Viva";
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
19 compatible = "gpio-leds";
22 function = LED_FUNCTION_WAN;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
28 function = LED_FUNCTION_USB;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
31 trigger-sources = <&ohci_port1>, <&ehci_port1>;
32 linux,default-trigger = "usbport";
36 function = LED_FUNCTION_POWER;
37 color = <LED_COLOR_ID_RED>;
38 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
46 led_power_green: power {
47 function = LED_FUNCTION_POWER;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
54 compatible = "gpio-keys";
58 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
64 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_WPS_BUTTON>;
70 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
76 compatible = "gpio-export";
80 gpio-export,name = "usb";
81 gpio-export,output = <1>;
82 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
87 compatible = "realtek,rtl8367b";
89 realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <10000000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
114 label = "u-boot-env";
115 reg = <0x30000 0x10000>;
121 reg = <0x40000 0x10000>;
125 compatible = "fixed-layout";
126 #address-cells = <1>;
129 eeprom_factory_0: eeprom@0 {
133 macaddr_factory_4: macaddr@4 {
140 compatible = "denx,uimage";
142 reg = <0x50000 0xfb0000>;
150 groups = "i2c", "uartf";
156 pinctrl-names = "default";
157 pinctrl-0 = <&rgmii2_pins &mdio_pins>;
159 nvmem-cells = <&macaddr_factory_4>;
160 nvmem-cell-names = "mac-address";
164 mediatek,fixed-link = <1000 1 1 1>;
166 phy-handle = <&phy4>;
172 phy4: ethernet-phy@4 {
181 mediatek,ephy-base = /bits/ 8 <8>;
185 nvmem-cells = <&eeprom_factory_0>;
186 nvmem-cell-names = "eeprom";