1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "youku,yk-l2", "mediatek,mt7621-soc";
11 model = "Youku YK-L2";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_wps;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
28 label = "yk-l2:blue:power";
29 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
34 label = "yk-l2:blue:wps";
35 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
39 label = "yk-l2:blue:usb";
40 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
41 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
42 linux,default-trigger = "usbport";
47 compatible = "gpio-keys-polled";
52 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
76 compatible = "jedec,spi-nor";
78 spi-max-frequency = <10000000>;
81 compatible = "fixed-partitions";
93 reg = <0x30000 0x10000>;
97 factory: partition@40000 {
99 reg = <0x40000 0x10000>;
104 compatible = "denx,uimage";
106 reg = <0x50000 0xfb0000>;
118 compatible = "pci14c3,7603";
119 reg = <0x0000 0 0 0 0>;
120 mediatek,mtd-eeprom = <&factory 0x0000>;
121 ieee80211-freq-limit = <2400000 2500000>;
130 compatible = "pci14c3,7662";
131 reg = <0x0000 0 0 0 0>;
132 mediatek,mtd-eeprom = <&factory 0x8000>;
133 ieee80211-freq-limit = <5000000 6000000>;
142 mtd-mac-address = <&factory 0xe000>;
146 state_default: pinctrl0 {
148 ralink,group = "jtag", "wdt";
149 ralink,function = "gpio";