2570eb7cea2209fb690945bb021afe9be7685508
[librecmc/librecmc.git] / target / linux / ath79 / dts / qca9558_devolo_dvl1750e.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca9558_devolo_dvl1xxx.dtsi"
8
9 / {
10         compatible = "devolo,dvl1750e", "qca,qca9557";
11         model = "devolo WiFi pro 1750e";
12
13         aliases {
14                 led-boot = &status_blue;
15                 led-failsafe = &status_red;
16                 led-running = &status_blue;
17                 led-upgrade = &status_red;
18         };
19
20         keys {
21                 wps {
22                         label = "WPS Button";
23                         linux,code = <KEY_WPS_BUTTON>;
24                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
25                         debounce-interval = <60>;
26                 };
27
28                 usb_eject {
29                         label = "USB Eject Button";
30                         linux,code = <BTN_0>;
31                         linux,input-type = <EV_SW>;
32                         gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
33                         debounce-interval = <60>;
34                 };
35         };
36
37         leds {
38                 compatible = "gpio-leds";
39
40                 status_blue: status_blue {
41                         label = "dvl1750e:blue:status";
42                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
43                         default-state = "on";
44                 };
45
46                 status_red: status_red {
47                         label = "dvl1750e:red:status";
48                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
49                 };
50         };
51
52         beeper {
53                 compatible = "gpio-beeper";
54                 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
55         };
56
57
58         gpio_export {
59                 compatible = "gpio-export";
60
61                 gpio_usb_power {
62                         gpio-export,name = "devolo:power:usb";
63                         gpio-export,output = <1>;
64                         gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
65                 };
66         };
67 };
68
69 &usb_phy0 {
70         status = "okay";
71 };
72
73 &usb0 {
74         status = "okay";
75 };
76
77 &mdio1 {
78         status = "okay";
79 };
80
81 &eth1 {
82         status = "okay";
83 };