ath79: add support for D-Link DIR-859 A1
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9344_dlink_dir-825-c1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "ar9344_dlink_dir-8x5.dtsi"
5
6 / {
7         model = "D-LINK DIR-825 C1";
8         compatible = "dlink,dir-825-c1", "qca,ar9344";
9
10         aliases {
11                 led-boot = &orange_power;
12                 led-failsafe = &orange_power;
13                 led-running = &blue_power;
14                 led-upgrade = &orange_power;
15                 serial0 = &uart;
16         };
17
18         leds {
19                 compatible = "gpio-leds";
20
21                 pinctrl-names = "default";
22                 pinctrl-0 = <&enable_gpio_11>;
23
24                 blue_power: blue_power {
25                         label = "d-link:blue:power";
26                         gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
27                 };
28
29                 blue_usb {
30                         label = "d-link:blue:usb";
31                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32                         linux,default-trigger = "usbport";
33                         trigger-sources = <&hub_port1>;
34                 };
35
36                 blue_wan {
37                         label = "d-link:blue:wan";
38                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
39                 };
40
41                 blue_wlan2g {
42                         label = "d-link:blue:wlan2g";
43                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
44                         linux,default-trigger = "phy0tpt";
45                 };
46
47                 blue_wps {
48                         label = "d-link:blue:wps";
49                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
50                 };
51
52                 orange_power: orange_power {
53                         label = "d-link:orange:power";
54                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
55                 };
56
57                 orange_wan {
58                         label = "d-link:orange:wan";
59                         gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
60                 };
61         };
62
63         leds-ath9k {
64                 compatible = "gpio-leds";
65
66                 blue_wlan5g {
67                         label = "d-link:blue:wlan5g";
68                         gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
69                         linux,default-trigger = "phy1tpt";
70                 };
71         };
72 };
73
74 &pinmux {
75         enable_gpio_11: pinmux_enable_gpio_11 {
76                 pinctrl-single,bits = <0x8 0x0 0xff000000>;
77         };
78 };
79