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