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";
64 default-state = "off";
68 label = "fritz4020:green:lan";
69 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
70 default-state = "off";
74 label = "fritz4020:green:wan";
75 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
76 default-state = "off";
80 label = "fritz4020:green:info";
81 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
82 default-state = "off";
86 label = "fritz4020:red:info";
87 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
88 default-state = "off";
93 compatible = "gpio-keys-polled";
94 poll-interval = <100>;
98 linux,code = <KEY_WPS_BUTTON>;
99 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
103 label = "WLAN button";
104 linux,code = <KEY_RFKILL>;
105 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
123 compatible = "jedec,spi-nor";
125 spi-max-frequency = <25000000>;
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
134 reg = <0x000000 0x020000>;
140 reg = <0x020000 0xee0000>;
145 reg = <0xf00000 0x080000>;
151 reg = <0xf80000 0x080000>;
162 phy-handle = <&swphy0>;
167 switch-phy-addr-swap = <1>;
168 switch-phy-swap = <1>;