5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
9 compatible = "avm,fritz3370", "lantiq,xway", "lantiq,vr9";
10 model = "Fritz!Box WLAN 3370";
13 bootargs = "console=ttyLTQ0,115200 ubi.mtd=1,512 root=/dev/mtdblock9";
17 led-boot = &power_green;
18 led-failsafe = &power_red;
19 led-running = &power_green;
22 led-internet = &info_green;
27 reg = <0x0 0x8000000>;
31 compatible = "gpio-keys-polled";
34 poll-interval = <100>;
37 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
38 linux,code = <KEY_POWER>;
42 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
48 compatible = "gpio-leds";
51 label = "fritz3370:green:power";
52 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
53 default-state = "keep";
56 label = "fritz3370:red:power";
57 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
60 label = "fritz3370:red:info";
61 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
64 label = "fritz3370:green:wlan";
65 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
68 label = "fritz3370:green:dsl";
69 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
72 label = "fritz3370:green:lan";
73 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
75 info_green: info_green {
76 label = "fritz3370:green:info";
77 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
84 compatible = "lantiq,xrx200-pdi";
88 mtd-mac-address = <&urlader 0x987>;
89 mtd-mac-address-increment = <(-2)>;
93 compatible = "lantiq,xrx200-pdi-port";
97 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
100 compatible = "lantiq,xrx200-pdi-port";
103 phy-handle = <&phy1>;
104 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
107 compatible = "lantiq,xrx200-pdi-port";
110 phy-handle = <&phy11>;
113 compatible = "lantiq,xrx200-pdi-port";
116 phy-handle = <&phy13>;
121 #address-cells = <1>;
123 compatible = "lantiq,xrx200-mdio";
126 phy0: ethernet-phy@0 {
128 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
130 phy1: ethernet-phy@1 {
132 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
134 phy11: ethernet-phy@11 {
136 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
138 phy13: ethernet-phy@13 {
140 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
146 lantiq,gphy-mode = <GPHY_MODE_GE>;
150 lantiq,gphy-mode = <GPHY_MODE_GE>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&state_default>;
157 state_default: pinmux {
159 lantiq,groups = "mdio";
160 lantiq,function = "mdio";
163 lantiq,groups = "nand cle", "nand ale",
164 "nand rd", "nand cs1", "nand rdy";
165 lantiq,function = "ebu";
169 lantiq,pins = "io37", "io44";
171 lantiq,open-drain = <0>;
175 lantiq,pins = "io38";
180 pins_spi_default: pins_spi_default {
182 lantiq,groups = "spi_di";
183 lantiq,function = "spi";
186 lantiq,groups = "spi_do", "spi_clk",
188 lantiq,function = "spi";
196 compatible = "lantiq,nand-xway";
198 reg = <1 0x0 0x2000000>;
199 #address-cells = <1>;
203 compatible = "fixed-partitions";
204 #address-cells = <1>;
209 reg = <0x0 0x400000>;
213 label = "rootfs_ubi";
214 reg = <0x400000 0x3000000>;
218 label = "vr9_firmware";
219 reg = <0x3400000 0x400000>;
223 reg = <0x3800000 0x3000000>;
227 reg = <0x6800000 0x200000>;
230 label = "nand-filesystem";
231 reg = <0x6a00000 0x1600000>;
240 #interrupt-cells = <1>;
242 #address-cells = <3>;
246 compatible = "pci0,0";
248 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
256 pinctrl-names = "default";
257 pinctrl-0 = <&pins_spi_default>;
260 #address-cells = <1>;
262 compatible = "jedec,spi-nor";
264 spi-max-frequency = <1000000>;
266 urlader: partition@0 {
273 reg = <0x20000 0x10000>;
279 reg = <0x30000 0x10000>;
287 * TODO: add phy-supply, gpio 5 GPIO_ACTIVE_HIGH and gpio 14 GPIO_ACTIVE_HIGH are