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 gpio-sck = <&gpio 20 GPIO_ACTIVE_HIGH>;
30 gpio-mosi = <&gpio 19 GPIO_ACTIVE_HIGH>;
31 num-chipselects = <0>;
33 led_gpio: led_gpio@0 {
34 compatible = "fairchild,74hc595";
38 registers-number = <1>;
39 lines-initial-states = /bits/ 8 <0xff>;
40 spi-max-frequency = <10000000>;
44 gpios = <7 GPIO_ACTIVE_HIGH>;
46 line-name = "gpio-latch-bit";
52 compatible = "gpio-leds";
55 label = "fritz4020:green:power";
56 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
61 label = "fritz4020:green:wlan";
62 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
67 label = "fritz4020:green:lan";
68 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
72 label = "fritz4020:green:wan";
73 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
77 label = "fritz4020:green:info";
78 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
82 label = "fritz4020:red:info";
83 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
88 compatible = "gpio-keys-polled";
89 poll-interval = <100>;
93 linux,code = <KEY_WPS_BUTTON>;
94 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
98 label = "WLAN button";
99 linux,code = <KEY_RFKILL>;
100 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <25000000>;
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
129 reg = <0x000000 0x020000>;
134 compatible = "avm,eva-firmware";
136 reg = <0x020000 0xee0000>;
141 reg = <0xf00000 0x080000>;
147 reg = <0xf80000 0x080000>;
158 phy-handle = <&swphy0>;
163 switch-phy-addr-swap = <1>;
164 switch-phy-swap = <1>;