1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca956x.dtsi"
10 compatible = "avm,fritz4020", "qca,qca9560";
11 model = "AVM FRITZ!Box 4020";
14 led-boot = &led_power;
15 led-failsafe = &led_info_red;
16 led-running = &led_power;
17 led-upgrade = &led_info_red;
21 compatible = "spi-gpio";
25 sck-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
26 mosi-gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
27 num-chipselects = <0>;
29 led_gpio: led_gpio@0 {
30 compatible = "fairchild,74hc595";
34 registers-number = <1>;
35 spi-max-frequency = <10000000>;
39 gpios = <7 GPIO_ACTIVE_HIGH>;
41 line-name = "gpio-latch-bit";
47 compatible = "gpio-leds";
50 label = "fritz4020:green:power";
51 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
56 label = "fritz4020:green:wlan";
57 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0tpt";
62 label = "fritz4020:green:lan";
63 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
67 label = "fritz4020:green:wan";
68 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
72 label = "fritz4020:green:info";
73 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
76 led_info_red: info_red {
77 label = "fritz4020:red:info";
78 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
83 compatible = "gpio-keys";
87 linux,code = <KEY_WPS_BUTTON>;
88 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
92 label = "WLAN button";
93 linux,code = <KEY_RFKILL>;
94 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
113 compatible = "jedec,spi-nor";
115 spi-max-frequency = <25000000>;
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
124 reg = <0x000000 0x020000>;
129 compatible = "avm,eva-firmware";
131 reg = <0x020000 0xee0000>;
136 reg = <0xf00000 0x080000>;
142 reg = <0xf80000 0x080000>;
152 phy-handle = <&swphy0>;
157 switch-phy-addr-swap = <1>;
158 switch-phy-swap = <1>;