aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi
blob: d91dc74e2f0a556ef730105d2062daa2f15fc286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "vr9.dtsi"

#include <dt-bindings/input/input.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>

/ {
	compatible = "avm,fritz736x", "lantiq,xway", "lantiq,vr9";

	chosen {
		bootargs = "console=ttyLTQ0,115200";
	};

	aliases {
		led-boot = &led_power_green;
		led-failsafe = &led_power_red;
		led-running = &led_power_green;
		led-upgrade = &led_power_red;

		led-dsl = &led_info_green;
		led-wifi = &led_wifi;
	};

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x8000000>;
	};

	keys {
		compatible = "gpio-keys-polled";
		poll-interval = <100>;

		dect {
			label = "dect";
			gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
			linux,code = <KEY_PHONE>;
		};

		wifi {
			label = "wifi";
			gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
			linux,code = <KEY_RFKILL>;
		};
	};

	leds: leds {
		compatible = "gpio-leds";

		led_power_green: power_green {
			label = "green:power";
			gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
			default-state = "keep";
		};

		led_power_red: power_red {
			label = "red:power";
			gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
		};

		led_info_green: info_green {
			label = "green:info";
			gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
		};

		led_wifi: wifi {
			label = "green:wlan";
			gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
		};

		info_red {
			label = "red:info";
			gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
		};

		dect {
			label = "green:dect";
			gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
		};
	};
};

&eth0 {
	mtd-mac-address = <&urlader 0xa91>;
	mac-address-increment = <(-2)>;
};

&gphy0 {
	lantiq,gphy-mode = <GPHY_MODE_GE>;
};

&gphy1 {
	lantiq,gphy-mode = <GPHY_MODE_GE>;
};

&gpio {
	pinctrl-names = "default";
	pinctrl-0 = <&state_default>;

	state_default: pinmux {
		phy-rst {
			lantiq,pins = "io37", "io44";
			lantiq,pull = <0>;
			lantiq,open-drain;
			lantiq,output = <1>;
		};
	};

};

&gswip {
	pinctrl-0 = <&mdio_pins>;
	pinctrl-names = "default";
};

&gswip_mdio {
	phy0: ethernet-phy@0 {
		reg = <0x00>;
		reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
	};

	phy1: ethernet-phy@1 {
		reg = <0x01>;
		reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
	};

	phy11: ethernet-phy@11 {
		reg = <0x11>;
	};

	phy13: ethernet-phy@13 {
		reg = <0x13>;
	};
};

&gswip_ports {
	port@0 {
		reg = <0>;
		label = "lan3";
		phy-mode = "rmii";
		phy-handle = <&phy0>;
	};

	port@1 {
		reg = <1>;
		label = "lan4";
		phy-mode = "rmii";
		phy-handle = <&phy1>;
	};

	port@2 {
		reg = <2>;
		label = "lan2";
		phy-mode = "internal";
		phy-handle = <&phy11>;
	};

	port@4 {
		reg = <4>;
		label = "lan1";
		phy-mode = "internal";
		phy-handle = <&phy13>;
	};
};

&pcie0 {
	status = "okay";

	pcie@0 {
		reg = <0 0 0 0 0>;
		#interrupt-cells = <1>;
		#size-cells = <1>;
		#address-cells = <2>;
		device_type = "pci";

		wifi@168c,002e {
			compatible = "pci168c,002e";
			reg = <0 0 0 0 0>;
			qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
		};
	};
};

&usb_phy0 {
	status = "okay";
};

&usb_phy1 {
	status = "okay";
};

&usb0 {
	status = "okay";
};

&usb1 {
	status = "okay";
};