lantiq: fritz736x: Move GPIO resets to the inidvidual board.dts files
[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_LOW>;
37 linux,code = <KEY_PHONE>;
38 };
39
40 wifi {
41 label = "wifi";
42 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
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 &gphy0 {
84 lantiq,gphy-mode = <GPHY_MODE_GE>;
85 };
86
87 &gphy1 {
88 lantiq,gphy-mode = <GPHY_MODE_GE>;
89 };
90
91 &gswip {
92 pinctrl-0 = <&mdio_pins>;
93 pinctrl-names = "default";
94 };
95
96 &gswip_mdio {
97 phy0: ethernet-phy@0 {
98 reg = <0x00>;
99 };
100
101 phy1: ethernet-phy@1 {
102 reg = <0x01>;
103 };
104
105 phy11: ethernet-phy@11 {
106 reg = <0x11>;
107 };
108
109 phy13: ethernet-phy@13 {
110 reg = <0x13>;
111 };
112 };
113
114 &gswip_ports {
115 port@0 {
116 reg = <0>;
117 label = "lan3";
118 phy-mode = "rmii";
119 phy-handle = <&phy0>;
120 };
121
122 port@1 {
123 reg = <1>;
124 label = "lan4";
125 phy-mode = "rmii";
126 phy-handle = <&phy1>;
127 };
128
129 port@2 {
130 reg = <2>;
131 label = "lan2";
132 phy-mode = "internal";
133 phy-handle = <&phy11>;
134 };
135
136 port@4 {
137 reg = <4>;
138 label = "lan1";
139 phy-mode = "internal";
140 phy-handle = <&phy13>;
141 };
142 };
143
144 &pcie0 {
145 status = "okay";
146
147 pcie@0 {
148 reg = <0 0 0 0 0>;
149 #interrupt-cells = <1>;
150 #size-cells = <1>;
151 #address-cells = <2>;
152 device_type = "pci";
153
154 wifi@168c,002e {
155 compatible = "pci168c,002e";
156 reg = <0 0 0 0 0>;
157 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
158 };
159 };
160 };
161
162 &usb_phy0 {
163 status = "okay";
164 };
165
166 &usb_phy1 {
167 status = "okay";
168 };
169
170 &usb0 {
171 status = "okay";
172 };
173
174 &usb1 {
175 status = "okay";
176 };