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 WLAN 3370 Rev. 2";
11 bootargs = "console=ttyLTQ0,115200";
15 led-boot = &power_green;
16 led-failsafe = &power_red;
17 led-running = &power_green;
20 led-internet = &info_green;
25 reg = <0x0 0x8000000>;
29 compatible = "gpio-poweroff";
30 gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
34 compatible = "gpio-keys-polled";
37 poll-interval = <100>;
41 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
42 linux,code = <KEY_POWER>;
47 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
48 linux,code = <KEY_WLAN>;
53 compatible = "gpio-leds";
56 label = "fritz3370:green:power";
57 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
58 default-state = "keep";
62 label = "fritz3370:red:power";
63 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
67 label = "fritz3370:red:info";
68 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
72 label = "fritz3370:green:wlan";
73 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
77 label = "fritz3370:green:dsl";
78 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
82 label = "fritz3370:green:lan";
83 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
86 info_green: info_green {
87 label = "fritz3370:green:info";
88 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
92 usb0_vbus: regulator-usb0-vbus {
93 compatible = "regulator-fixed";
95 regulator-name = "USB0_VBUS";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
100 gpio = <&gpio 14 GPIO_ACTIVE_HIGH>;
104 usb1_vbus: regulator-usb1-vbus {
105 compatible = "regulator-fixed";
107 regulator-name = "USB1_VBUS";
109 regulator-min-microvolt = <5000000>;
110 regulator-max-microvolt = <5000000>;
112 gpio = <&gpio 5 GPIO_ACTIVE_HIGH>;
119 compatible = "lantiq,xrx200-pdi";
120 #address-cells = <1>;
126 compatible = "lantiq,xrx200-pdi-port";
129 phy-handle = <&phy0>;
130 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
134 compatible = "lantiq,xrx200-pdi-port";
137 phy-handle = <&phy1>;
138 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
142 compatible = "lantiq,xrx200-pdi-port";
145 phy-handle = <&phy11>;
149 compatible = "lantiq,xrx200-pdi-port";
152 phy-handle = <&phy13>;
157 #address-cells = <1>;
159 compatible = "lantiq,xrx200-mdio";
162 phy0: ethernet-phy@0 {
164 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
167 phy1: ethernet-phy@1 {
169 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
172 phy11: ethernet-phy@11 {
174 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
177 phy13: ethernet-phy@13 {
179 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
185 lantiq,gphy-mode = <GPHY_MODE_GE>;
189 lantiq,gphy-mode = <GPHY_MODE_GE>;
193 pinctrl-names = "default";
194 pinctrl-0 = <&state_default>;
196 state_default: pinmux {
198 lantiq,groups = "mdio";
199 lantiq,function = "mdio";
203 lantiq,groups = "nand cle", "nand ale",
204 "nand rd", "nand cs1", "nand rdy";
205 lantiq,function = "ebu";
210 lantiq,pins = "io37", "io44";
212 lantiq,open-drain = <0>;
217 lantiq,pins = "io21";
223 pins_spi_default: pins_spi_default {
225 lantiq,groups = "spi_di";
226 lantiq,function = "spi";
230 lantiq,groups = "spi_do", "spi_clk",
232 lantiq,function = "spi";
239 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
243 #interrupt-cells = <1>;
245 #address-cells = <3>;
249 compatible = "pci0,0";
251 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
259 pinctrl-names = "default";
260 pinctrl-0 = <&pins_spi_default>;
263 #address-cells = <1>;
265 compatible = "jedec,spi-nor";
267 spi-max-frequency = <1000000>;
269 urlader: partition@0 {
276 reg = <0x20000 0x10000>;
282 reg = <0x30000 0x10000>;
299 vbus-supply = <&usb0_vbus>;
304 vbus-supply = <&usb1_vbus>;