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 device_type = "memory";
22 reg = <0x0 0x10000000>;
26 bootargs = "console=ttyS0,115200";
30 compatible = "gpio-leds";
33 label = "yk-l2:blue:power";
34 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
39 label = "yk-l2:blue:wps";
40 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
44 label = "yk-l2:blue:usb";
45 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
46 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
47 linux,default-trigger = "usbport";
52 compatible = "gpio-keys-polled";
57 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
63 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_WPS_BUTTON>;
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <10000000>;
86 compatible = "fixed-partitions";
98 reg = <0x30000 0x10000>;
102 factory: partition@40000 {
104 reg = <0x40000 0x10000>;
109 compatible = "denx,uimage";
111 reg = <0x50000 0xfb0000>;
123 compatible = "pci14c3,7603";
124 reg = <0x0000 0 0 0 0>;
125 mediatek,mtd-eeprom = <&factory 0x0000>;
126 ieee80211-freq-limit = <2400000 2500000>;
135 compatible = "pci14c3,7662";
136 reg = <0x0000 0 0 0 0>;
137 mediatek,mtd-eeprom = <&factory 0x8000>;
138 ieee80211-freq-limit = <5000000 6000000>;
147 mtd-mac-address = <&factory 0xe000>;
151 state_default: pinctrl0 {
153 ralink,group = "jtag", "wdt";
154 ralink,function = "gpio";