4 * Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>.
5 * Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * * Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in
16 * the documentation and/or other materials provided with the
18 * * Neither the name of Broadcom Corporation nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 #include "mt7628an.dtsi"
37 #include <dt-bindings/gpio/gpio.h>
38 #include <dt-bindings/input/input.h>
41 compatible = "unielec,u7628-01", "mediatek,mt7628an-soc";
44 led-boot = &led_power;
45 led-failsafe = &led_power;
46 led-running = &led_power;
47 led-upgrade = &led_power;
51 bootargs = "console=ttyS0,115200";
55 compatible = "gpio-keys";
59 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
65 compatible = "gpio-leds";
68 label = "u7628-01:green:power";
69 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
73 label = "u7628-01:green:wlan";
74 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
78 label = "u7628-01:green:wan";
79 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
83 label = "u7628-01:green:lan1";
84 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
88 label = "u7628-01:green:lan2";
89 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
93 label = "u7628-01:green:lan3";
94 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
98 label = "u7628-01:green:lan4";
99 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
103 label = "u7628-01:green:usb";
104 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
105 trigger-sources = <&ohci_port1>, <&ehci_port1>;
106 linux,default-trigger = "usbport";
124 mtd-mac-address = <&factory 0x28>;
132 state_default: pinctrl0 {
134 ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "wdt", "wled_an";
135 ralink,function = "gpio";