lantiq: dts: move memory node to board dts
[openwrt/staging/lynxis.git] / target / linux / lantiq / files / arch / mips / boot / dts / FRITZ736X.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "vr9.dtsi"
5
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
8
9 / {
10 compatible = "avm,fritz736x", "lantiq,xway", "lantiq,vr9";
11
12 chosen {
13 bootargs = "console=ttyLTQ0,115200";
14 };
15
16 aliases {
17 led-boot = &power_green;
18 led-failsafe = &power_red;
19 led-running = &power_green;
20 led-upgrade = &power_green;
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_WLAN>;
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 lan: interface@0 {
79 compatible = "lantiq,xrx200-pdi";
80 #address-cells = <1>;
81 #size-cells = <0>;
82 reg = <0>;
83 mtd-mac-address = <&urlader 0xa91>;
84 mtd-mac-address-increment = <(-2)>;
85 lantiq,switch;
86
87 ethernet@0 {
88 compatible = "lantiq,xrx200-pdi-port";
89 reg = <0>;
90 phy-mode = "rmii";
91 phy-handle = <&phy0>;
92 };
93
94 ethernet@1 {
95 compatible = "lantiq,xrx200-pdi-port";
96 reg = <1>;
97 phy-mode = "rmii";
98 phy-handle = <&phy1>;
99 };
100
101 ethernet@2 {
102 compatible = "lantiq,xrx200-pdi-port";
103 reg = <2>;
104 phy-mode = "gmii";
105 phy-handle = <&phy11>;
106 };
107
108 ethernet@3 {
109 compatible = "lantiq,xrx200-pdi-port";
110 reg = <4>;
111 phy-mode = "gmii";
112 phy-handle = <&phy13>;
113 };
114 };
115
116 mdio@0 {
117 #address-cells = <1>;
118 #size-cells = <0>;
119 compatible = "lantiq,xrx200-mdio";
120 reg = <0>;
121
122 phy0: ethernet-phy@0 {
123 reg = <0x00>;
124 compatible = "ethernet-phy-ieee802.3-c22";
125 reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
126 };
127
128 phy1: ethernet-phy@1 {
129 reg = <0x01>;
130 compatible = "ethernet-phy-ieee802.3-c22";
131 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
132 };
133
134 phy11: ethernet-phy@11 {
135 reg = <0x11>;
136 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
137 };
138
139 phy13: ethernet-phy@13 {
140 reg = <0x13>;
141 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
142 };
143 };
144 };
145
146 &gphy0 {
147 lantiq,gphy-mode = <GPHY_MODE_GE>;
148 };
149
150 &gphy1 {
151 lantiq,gphy-mode = <GPHY_MODE_GE>;
152 };
153
154 &gpio {
155 pinctrl-names = "default";
156 pinctrl-0 = <&state_default>;
157
158 state_default: pinmux {
159 mdio {
160 lantiq,groups = "mdio";
161 lantiq,function = "mdio";
162 };
163
164 phy-rst {
165 lantiq,pins = "io37", "io44";
166 lantiq,pull = <0>;
167 lantiq,open-drain;
168 lantiq,output = <1>;
169 };
170 };
171
172 };
173
174 &pcie0 {
175 status = "okay";
176
177 pcie@0 {
178 reg = <0 0 0 0 0>;
179 #interrupt-cells = <1>;
180 #size-cells = <1>;
181 #address-cells = <2>;
182 device_type = "pci";
183
184 wifi@168c,002e {
185 compatible = "pci168c,002e";
186 reg = <0 0 0 0 0>;
187 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
188 };
189 };
190 };
191
192 &usb_phy0 {
193 status = "okay";
194 };
195
196 &usb_phy1 {
197 status = "okay";
198 };
199
200 &usb0 {
201 status = "okay";
202 };
203
204 &usb1 {
205 status = "okay";
206 };