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 device_type = "memory";
27 reg = <0x0 0x8000000>;
31 compatible = "gpio-poweroff";
32 gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
36 compatible = "gpio-keys-polled";
39 poll-interval = <100>;
43 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
44 linux,code = <KEY_POWER>;
49 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
50 linux,code = <KEY_WLAN>;
55 compatible = "gpio-leds";
58 label = "fritz3370:green:power";
59 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
60 default-state = "keep";
64 label = "fritz3370:red:power";
65 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
69 label = "fritz3370:red:info";
70 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
74 label = "fritz3370:green:wlan";
75 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
79 label = "fritz3370:green:dsl";
80 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
84 label = "fritz3370:green:lan";
85 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
88 info_green: info_green {
89 label = "fritz3370:green:info";
90 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
94 usb0_vbus: regulator-usb0-vbus {
95 compatible = "regulator-fixed";
97 regulator-name = "USB0_VBUS";
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
102 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
106 usb1_vbus: regulator-usb1-vbus {
107 compatible = "regulator-fixed";
109 regulator-name = "USB1_VBUS";
111 regulator-min-microvolt = <5000000>;
112 regulator-max-microvolt = <5000000>;
114 gpio = <&gpio 5 GPIO_ACTIVE_HIGH>;
121 compatible = "lantiq,xrx200-pdi";
122 #address-cells = <1>;
128 compatible = "lantiq,xrx200-pdi-port";
131 phy-handle = <&phy0>;
132 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
136 compatible = "lantiq,xrx200-pdi-port";
139 phy-handle = <&phy1>;
140 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
144 compatible = "lantiq,xrx200-pdi-port";
147 phy-handle = <&phy11>;
151 compatible = "lantiq,xrx200-pdi-port";
154 phy-handle = <&phy13>;
159 #address-cells = <1>;
161 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 compatible = "jedec,spi-nor";
266 spi-max-frequency = <1000000>;
269 compatible = "fixed-partitions";
270 #address-cells = <1>;
273 urlader: partition@0 {
280 reg = <0x20000 0x10000>;
286 reg = <0x30000 0x10000>;
304 vbus-supply = <&usb0_vbus>;
309 vbus-supply = <&usb1_vbus>;