3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
7 compatible = "avm,fritz3370-rev2", "lantiq,xway", "lantiq,vr9";
8 model = "AVM FRITZ!Box 3370 Rev. 2";
11 bootargs = "console=ttyLTQ0,115200";
15 led-boot = &power_green;
16 led-failsafe = &power_red;
17 led-running = &power_green;
18 led-upgrade = &power_green;
21 led-internet = &info_green;
26 reg = <0x0 0x8000000>;
30 compatible = "gpio-poweroff";
31 gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
35 compatible = "gpio-keys-polled";
38 poll-interval = <100>;
42 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
43 linux,code = <KEY_POWER>;
48 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
49 linux,code = <KEY_WLAN>;
54 compatible = "gpio-leds";
57 label = "fritz3370:green:power";
58 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
59 default-state = "keep";
63 label = "fritz3370:red:power";
64 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
68 label = "fritz3370:red:info";
69 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
73 label = "fritz3370:green:wlan";
74 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
78 label = "fritz3370:green:dsl";
79 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
83 label = "fritz3370:green:lan";
84 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
87 info_green: info_green {
88 label = "fritz3370:green:info";
89 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
93 usb0_vbus: regulator-usb0-vbus {
94 compatible = "regulator-fixed";
96 regulator-name = "USB0_VBUS";
98 regulator-min-microvolt = <5000000>;
99 regulator-max-microvolt = <5000000>;
101 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
105 usb1_vbus: regulator-usb1-vbus {
106 compatible = "regulator-fixed";
108 regulator-name = "USB1_VBUS";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
113 gpio = <&gpio 5 GPIO_ACTIVE_HIGH>;
120 compatible = "lantiq,xrx200-pdi";
121 #address-cells = <1>;
127 compatible = "lantiq,xrx200-pdi-port";
130 phy-handle = <&phy0>;
131 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
135 compatible = "lantiq,xrx200-pdi-port";
138 phy-handle = <&phy1>;
139 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
143 compatible = "lantiq,xrx200-pdi-port";
146 phy-handle = <&phy11>;
150 compatible = "lantiq,xrx200-pdi-port";
153 phy-handle = <&phy13>;
158 #address-cells = <1>;
160 compatible = "lantiq,xrx200-mdio";
163 phy0: ethernet-phy@0 {
165 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
168 phy1: ethernet-phy@1 {
170 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
173 phy11: ethernet-phy@11 {
175 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
178 phy13: ethernet-phy@13 {
180 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
186 lantiq,gphy-mode = <GPHY_MODE_GE>;
190 lantiq,gphy-mode = <GPHY_MODE_GE>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&state_default>;
197 state_default: pinmux {
199 lantiq,groups = "mdio";
200 lantiq,function = "mdio";
204 lantiq,groups = "nand cle", "nand ale",
205 "nand rd", "nand cs1", "nand rdy";
206 lantiq,function = "ebu";
211 lantiq,pins = "io37", "io44";
213 lantiq,open-drain = <0>;
218 lantiq,pins = "io21";
224 pins_spi_default: pins_spi_default {
226 lantiq,groups = "spi_di";
227 lantiq,function = "spi";
231 lantiq,groups = "spi_do", "spi_clk",
233 lantiq,function = "spi";
240 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
244 #interrupt-cells = <1>;
246 #address-cells = <3>;
250 compatible = "pci0,0";
252 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
260 pinctrl-names = "default";
261 pinctrl-0 = <&pins_spi_default>;
264 #address-cells = <1>;
266 compatible = "jedec,spi-nor";
268 spi-max-frequency = <1000000>;
270 urlader: partition@0 {
277 reg = <0x20000 0x10000>;
283 reg = <0x30000 0x10000>;
300 vbus-supply = <&usb0_vbus>;
305 vbus-supply = <&usb1_vbus>;