ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_asus_rt-ac1200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2022 Ray Wang
3 // Copyright (c) 2022 Ivan Pavlov
4
5 #include <dt-bindings/leds/common.h>
6
7 #include "mt7628an_asus_rt-ac1200.dtsi"
8
9 / {
10 compatible = "asus,rt-ac1200", "mediatek,mt7628an-soc";
11 model = "Asus RT-AC1200";
12
13 leds {
14 compatible = "gpio-leds";
15
16 usb {
17 function = LED_FUNCTION_USB;
18 color = <LED_COLOR_ID_BLUE>;
19 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
20 trigger-sources = <&ohci_port1>, <&ehci_port1>;
21 linux,default-trigger = "usbport";
22 };
23 };
24 };
25
26 &state_default {
27 gpio {
28 groups = "i2c", "spi cs1", "refclk", "wled_an";
29 function = "gpio";
30 };
31 };