lantiq: add support for AVM Fritzbox 5490/5491
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_avm_fritz5490.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "vr9_avm_fritzxx90.dtsi"
4
5 / {
6 compatible = "avm,fritz5490", "lantiq,xway", "lantiq,vr9";
7 model = "AVM FRITZ!Box 5490/5491";
8 };
9
10 &aliases {
11 led-dsl = &led_info_green;
12 led-internet = &led_internet;
13 led-wifi = &led_wifi;
14 };
15
16 &leds {
17 led_fiber: fiber {
18 label = "green:fiber";
19 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
20 };
21
22 led_wifi: wifi {
23 label = "green:wlan";
24 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
25 };
26
27 led_internet: internet {
28 label = "green:internet";
29 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 &gswip_mdio {
34 phy5: ethernet-phy@5 {
35 reg = <0x05>;
36 };
37
38 phy6: ethernet-phy@6 {
39 reg = <0x06>;
40 reset-gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
41 };
42
43 phy9: ethernet-phy@9 {
44 reg = <0x09>;
45 };
46 };
47
48 &gswip_ports {
49 port@0 {
50 reg = <0>;
51 label = "wan";
52 phy-mode = "rgmii";
53 phy-handle = <&phy6>;
54 };
55
56 port@2 {
57 reg = <2>;
58 label = "lan2";
59 phy-mode = "internal";
60 phy-handle = <&phy5>;
61 };
62
63 port@4 {
64 reg = <4>;
65 label = "lan1";
66 phy-mode = "internal";
67 phy-handle = <&phy9>;
68 };
69 };