ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9556_avm_fritz450e.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9556_avm_fritz-repeater.dtsi"
6
7 #include <dt-bindings/gpio/gpio.h>
8
9 / {
10 compatible = "avm,fritz450e", "qca,qca9556";
11 model = "AVM FRITZ!WLAN Repeater 450E";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_power: power {
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
27 };
28
29 wlan {
30 function = LED_FUNCTION_WLAN;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35
36 lan {
37 function = LED_FUNCTION_LAN;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
40 };
41
42 rssi2 {
43 label = "green:rssi2";
44 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
45 };
46
47 rssi3 {
48 label = "green:rssi3";
49 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
50 };
51
52 rssi4 {
53 label = "green:rssi4";
54 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
55 };
56 };
57 };
58
59 &gpio {
60 /*
61 * Wondered why rssi0 and rssi1 are missing?
62 *
63 * AVM seems to have run low on usable GPIO pins, so
64 * instead of adding a shift register like they did for
65 * the 1750E they figured out "Why not use the LEDs on
66 * the AR8033?".
67 *
68 * EVA configures the PHY in a way it does not display
69 * the link-state using it's LEDs. When we reset the PHY
70 * using the reset-mechanism of the PHY subsystem, this
71 * setting is cleared.
72 *
73 * We avoid this by keeping the reset line high.
74 */
75 phy-reset {
76 gpio-hog;
77 gpios = <11 GPIO_ACTIVE_HIGH>;
78 output-high;
79 line-name = "phy-reset";
80 };
81 };