1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>.
4 * Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>.
8 #include "mt7628an.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
14 compatible = "unielec,u7628-01", "mediatek,mt7628an-soc";
17 led-boot = &led_power;
18 led-failsafe = &led_power;
19 led-running = &led_power;
20 led-upgrade = &led_power;
24 bootargs = "console=ttyS0,115200";
28 compatible = "gpio-keys";
32 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_RESTART>;
38 compatible = "gpio-leds";
41 label = "green:power";
42 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
77 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
78 trigger-sources = <&ohci_port1>, <&ehci_port1>;
79 linux,default-trigger = "usbport";
91 mediatek,mtd-eeprom = <&factory 0x0>;
96 groups = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "wdt", "wled_an";