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";
15 led-failsafe = &info_red;
17 led-upgrade = &info_red;
21 bootargs = "console=ttyS0,115200n8";
25 compatible = "spi-gpio";
29 sck-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
30 mosi-gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
31 num-chipselects = <0>;
33 led_gpio: led_gpio@0 {
34 compatible = "fairchild,74hc595";
38 registers-number = <1>;
39 spi-max-frequency = <10000000>;
43 gpios = <7 GPIO_ACTIVE_HIGH>;
45 line-name = "gpio-latch-bit";
51 compatible = "gpio-leds";
54 label = "fritz4020:green:power";
55 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
60 label = "fritz4020:green:wlan";
61 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy0tpt";
66 label = "fritz4020:green:lan";
67 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
71 label = "fritz4020:green:wan";
72 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
76 label = "fritz4020:green:info";
77 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
81 label = "fritz4020:red:info";
82 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
87 compatible = "gpio-keys-polled";
88 poll-interval = <100>;
92 linux,code = <KEY_WPS_BUTTON>;
93 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
97 label = "WLAN button";
98 linux,code = <KEY_RFKILL>;
99 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
117 compatible = "jedec,spi-nor";
119 spi-max-frequency = <25000000>;
122 compatible = "fixed-partitions";
123 #address-cells = <1>;
128 reg = <0x000000 0x020000>;
133 compatible = "avm,eva-firmware";
135 reg = <0x020000 0xee0000>;
140 reg = <0xf00000 0x080000>;
146 reg = <0xf80000 0x080000>;
157 phy-handle = <&swphy0>;
162 switch-phy-addr-swap = <1>;
163 switch-phy-swap = <1>;