lantiq: xrx200: switch the subtarget to the mainline DSA driver
[openwrt/staging/hauke.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / vr9_avm_fritz736x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
7
8 / {
9 compatible = "avm,fritz736x", "lantiq,xway", "lantiq,vr9";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_red;
18 led-running = &power_green;
19 led-upgrade = &power_red;
20
21 led-dsl = &info_green;
22 led-wifi = &wifi;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x8000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
33
34 dect {
35 label = "dect";
36 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
37 linux,code = <KEY_PHONE>;
38 };
39
40 wifi {
41 label = "wifi";
42 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
43 linux,code = <KEY_RFKILL>;
44 };
45 };
46
47 leds: leds {
48 compatible = "gpio-leds";
49
50 power_green: power {
51 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
52 default-state = "keep";
53 };
54
55 power_red: power2 {
56 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
57 };
58
59 info_green: info_green {
60 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
61 };
62
63 wifi: wifi {
64 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
65 };
66
67 info_red: info_red {
68 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
69 };
70
71 dect: dect {
72 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
73 };
74 };
75 };
76
77 &eth0 {
78 mtd-mac-address = <&urlader 0xa91>;
79 mtd-mac-address-increment = <(-2)>;
80 };
81
82 &gphy0 {
83 lantiq,gphy-mode = <GPHY_MODE_GE>;
84 };
85
86 &gphy1 {
87 lantiq,gphy-mode = <GPHY_MODE_GE>;
88 };
89
90 &gpio {
91 pinctrl-names = "default";
92 pinctrl-0 = <&state_default>;
93
94 state_default: pinmux {
95 phy-rst {
96 lantiq,pins = "io37", "io44";
97 lantiq,pull = <0>;
98 lantiq,open-drain;
99 lantiq,output = <1>;
100 };
101 };
102
103 };
104
105 &gswip_mdio {
106 phy0: ethernet-phy@0 {
107 reg = <0x00>;
108 reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
109 };
110
111 phy1: ethernet-phy@1 {
112 reg = <0x01>;
113 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
114 };
115
116 phy11: ethernet-phy@11 {
117 reg = <0x11>;
118 };
119
120 phy13: ethernet-phy@13 {
121 reg = <0x13>;
122 };
123 };
124
125 &gswip_ports {
126 port@0 {
127 reg = <0>;
128 label = "lan3";
129 phy-mode = "rgmii";
130 phy-handle = <&phy0>;
131 };
132
133 port@1 {
134 reg = <1>;
135 label = "lan4";
136 phy-mode = "rgmii";
137 phy-handle = <&phy1>;
138 };
139
140 port@2 {
141 reg = <2>;
142 label = "lan2";
143 phy-mode = "internal";
144 phy-handle = <&phy11>;
145 };
146
147 port@4 {
148 reg = <4>;
149 label = "lan1";
150 phy-mode = "internal";
151 phy-handle = <&phy13>;
152 };
153 };
154
155 &pcie0 {
156 status = "okay";
157
158 pcie@0 {
159 reg = <0 0 0 0 0>;
160 #interrupt-cells = <1>;
161 #size-cells = <1>;
162 #address-cells = <2>;
163 device_type = "pci";
164
165 wifi@168c,002e {
166 compatible = "pci168c,002e";
167 reg = <0 0 0 0 0>;
168 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
169 };
170 };
171 };
172
173 &usb_phy0 {
174 status = "okay";
175 };
176
177 &usb_phy1 {
178 status = "okay";
179 };
180
181 &usb0 {
182 status = "okay";
183 };
184
185 &usb1 {
186 status = "okay";
187 };