1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "avm,fritz4020", "qca,qca9560";
10 model = "AVM FRITZ!Box 4020";
13 led-boot = &led_power;
14 led-failsafe = &led_info_red;
15 led-running = &led_power;
16 led-upgrade = &led_info_red;
20 compatible = "spi-gpio";
24 sck-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
25 mosi-gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
26 num-chipselects = <0>;
28 led_gpio: led_gpio@0 {
29 compatible = "fairchild,74hc595";
33 registers-number = <1>;
34 spi-max-frequency = <10000000>;
38 gpios = <7 GPIO_ACTIVE_HIGH>;
40 line-name = "gpio-latch-bit";
46 compatible = "gpio-leds";
49 label = "fritz4020:green:power";
50 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
55 label = "fritz4020:green:wlan";
56 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy0tpt";
61 label = "fritz4020:green:lan";
62 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
66 label = "fritz4020:green:wan";
67 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
71 label = "fritz4020:green:info";
72 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
75 led_info_red: info_red {
76 label = "fritz4020:red:info";
77 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-keys";
86 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
91 label = "WLAN button";
92 linux,code = <KEY_RFKILL>;
93 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
108 compatible = "jedec,spi-nor";
110 spi-max-frequency = <25000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
119 reg = <0x000000 0x020000>;
124 compatible = "avm,eva-firmware";
126 reg = <0x020000 0xee0000>;
131 reg = <0xf00000 0x080000>;
137 reg = <0xf80000 0x080000>;
147 phy-handle = <&swphy0>;
152 switch-phy-addr-swap = <1>;
153 switch-phy-swap = <1>;