ramips: add proper system clock and reset driver support for legacy SoCs
[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 "rt3883_belkin_f9k110x.dtsi"
4
5 / {
6 compatible = "belkin,f9k1109v1", "ralink,rt3883-soc";
7 model = "Belkin F9K1109 Version 1.0";
8
9 aliases {
10 led-boot = &led_status_amber;
11 led-failsafe = &led_status_amber;
12 led-running = &led_status_blue;
13 led-upgrade = &led_status_amber;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_status_amber: internet_amber {
20 label = "amber:internet";
21 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
22 };
23
24 led_status_blue: internet_blue {
25 label = "blue:internet";
26 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
27 };
28
29 usb1 {
30 label = "green:usb1";
31 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&ohci_port1>, <&ehci_port1>;
33 linux,default-trigger = "usbport";
34 };
35
36 usb2 {
37 label = "green:usb2";
38 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
39 trigger-sources = <&ohci_port2>, <&ehci_port2>;
40 linux,default-trigger = "usbport";
41 };
42
43 wps_amber {
44 label = "amber:wps";
45 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
46 };
47
48 wps_blue {
49 label = "blue:wps";
50 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
51 };
52 };
53
54 keys {
55 compatible = "gpio-keys-polled";
56 poll-interval = <100>;
57
58 reset {
59 label = "reset";
60 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
62 };
63
64 wps {
65 label = "wps";
66 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_WPS_BUTTON>;
68 };
69 };
70 };
71
72 &ehci {
73 ehci_port2: port@2 {
74 reg = <2>;
75 #trigger-source-cells = <0>;
76 };
77 };
78
79 &ohci {
80 ohci_port2: port@2 {
81 reg = <2>;
82 #trigger-source-cells = <0>;
83 };
84 };