ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3883_belkin_f9k1109v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "rt3883_belkin_f9k110x.dtsi"
6
7 / {
8 compatible = "belkin,f9k1109v1", "ralink,rt3883-soc";
9 model = "Belkin F9K1109 Version 1.0";
10
11 aliases {
12 led-boot = &led_status_amber;
13 led-failsafe = &led_status_amber;
14 led-running = &led_status_blue;
15 led-upgrade = &led_status_amber;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_status_amber: internet_amber {
22 label = "amber:internet";
23 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
24 };
25
26 led_status_blue: internet_blue {
27 label = "blue:internet";
28 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
29 };
30
31 usb1 {
32 label = "green:usb1";
33 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
34 trigger-sources = <&ohci_port1>, <&ehci_port1>;
35 linux,default-trigger = "usbport";
36 };
37
38 usb2 {
39 label = "green:usb2";
40 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
41 trigger-sources = <&ohci_port2>, <&ehci_port2>;
42 linux,default-trigger = "usbport";
43 };
44
45 wps_amber {
46 function = LED_FUNCTION_WPS;
47 color = <LED_COLOR_ID_AMBER>;
48 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
49 };
50
51 wps_blue {
52 function = LED_FUNCTION_WPS;
53 color = <LED_COLOR_ID_BLUE>;
54 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
55 };
56 };
57
58 keys {
59 compatible = "gpio-keys-polled";
60 poll-interval = <100>;
61
62 reset {
63 label = "reset";
64 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
66 };
67
68 wps {
69 label = "wps";
70 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_WPS_BUTTON>;
72 };
73 };
74 };
75
76 &ehci {
77 ehci_port2: port@2 {
78 reg = <2>;
79 #trigger-source-cells = <0>;
80 };
81 };
82
83 &ohci {
84 ohci_port2: port@2 {
85 reg = <2>;
86 #trigger-source-cells = <0>;
87 };
88 };