d91dc74e2f0a556ef730105d2062daa2f15fc286
[openwrt/staging/mkresin.git] / target / linux / lantiq / files / 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 = &led_power_green;
17 led-failsafe = &led_power_red;
18 led-running = &led_power_green;
19 led-upgrade = &led_power_red;
20
21 led-dsl = &led_info_green;
22 led-wifi = &led_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 led_power_green: power_green {
51 label = "green:power";
52 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
53 default-state = "keep";
54 };
55
56 led_power_red: power_red {
57 label = "red:power";
58 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
59 };
60
61 led_info_green: info_green {
62 label = "green:info";
63 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
64 };
65
66 led_wifi: wifi {
67 label = "green:wlan";
68 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
69 };
70
71 info_red {
72 label = "red:info";
73 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
74 };
75
76 dect {
77 label = "green:dect";
78 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
79 };
80 };
81 };
82
83 &eth0 {
84 mtd-mac-address = <&urlader 0xa91>;
85 mac-address-increment = <(-2)>;
86 };
87
88 &gphy0 {
89 lantiq,gphy-mode = <GPHY_MODE_GE>;
90 };
91
92 &gphy1 {
93 lantiq,gphy-mode = <GPHY_MODE_GE>;
94 };
95
96 &gpio {
97 pinctrl-names = "default";
98 pinctrl-0 = <&state_default>;
99
100 state_default: pinmux {
101 phy-rst {
102 lantiq,pins = "io37", "io44";
103 lantiq,pull = <0>;
104 lantiq,open-drain;
105 lantiq,output = <1>;
106 };
107 };
108
109 };
110
111 &gswip {
112 pinctrl-0 = <&mdio_pins>;
113 pinctrl-names = "default";
114 };
115
116 &gswip_mdio {
117 phy0: ethernet-phy@0 {
118 reg = <0x00>;
119 reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
120 };
121
122 phy1: ethernet-phy@1 {
123 reg = <0x01>;
124 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
125 };
126
127 phy11: ethernet-phy@11 {
128 reg = <0x11>;
129 };
130
131 phy13: ethernet-phy@13 {
132 reg = <0x13>;
133 };
134 };
135
136 &gswip_ports {
137 port@0 {
138 reg = <0>;
139 label = "lan3";
140 phy-mode = "rmii";
141 phy-handle = <&phy0>;
142 };
143
144 port@1 {
145 reg = <1>;
146 label = "lan4";
147 phy-mode = "rmii";
148 phy-handle = <&phy1>;
149 };
150
151 port@2 {
152 reg = <2>;
153 label = "lan2";
154 phy-mode = "internal";
155 phy-handle = <&phy11>;
156 };
157
158 port@4 {
159 reg = <4>;
160 label = "lan1";
161 phy-mode = "internal";
162 phy-handle = <&phy13>;
163 };
164 };
165
166 &pcie0 {
167 status = "okay";
168
169 pcie@0 {
170 reg = <0 0 0 0 0>;
171 #interrupt-cells = <1>;
172 #size-cells = <1>;
173 #address-cells = <2>;
174 device_type = "pci";
175
176 wifi@168c,002e {
177 compatible = "pci168c,002e";
178 reg = <0 0 0 0 0>;
179 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
180 };
181 };
182 };
183
184 &usb_phy0 {
185 status = "okay";
186 };
187
188 &usb_phy1 {
189 status = "okay";
190 };
191
192 &usb0 {
193 status = "okay";
194 };
195
196 &usb1 {
197 status = "okay";
198 };