1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca955x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_amber;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_amber;
14 label-mac-device = ð0;
18 compatible = "spi-gpio";
22 sck-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
23 mosi-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
24 num-chipselects = <0>;
26 led_gpio: led_gpio@0 {
27 compatible = "nxp,74lvc594";
31 registers-number = <1>;
32 spi-max-frequency = <500000>;
36 gpios = <4 GPIO_ACTIVE_HIGH>;
38 line-name = "gpio-latch-bit";
44 compatible = "gpio-leds";
46 led_power_green: power_green {
47 label = "green:power";
48 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
51 led_power_amber: power_amber {
52 label = "amber:power";
53 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
58 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
63 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
68 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
73 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
77 label = "green:client";
78 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
83 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
87 label = "green:router";
88 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
93 compatible = "gpio-keys";
96 label = "Reset button";
97 linux,code = <KEY_RESTART>;
98 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
99 debounce-interval = <60>;
103 label = "WPS button";
104 linux,code = <KEY_WPS_BUTTON>;
105 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
106 debounce-interval = <60>;
110 label = "EXTENDER/APMODE switch";
111 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
112 linux,code = <BTN_0>;
113 linux,input-type = <EV_SW>;
114 debounce-interval = <60>;
131 compatible = "jedec,spi-nor";
133 spi-max-frequency = <25000000>;
136 compatible = "fixed-partitions";
137 #address-cells = <1>;
142 reg = <0x000000 0x040000>;
147 label = "u-boot-env";
148 reg = <0x040000 0x010000>;
151 caldata: partition@50000 {
153 reg = <0x050000 0x010000>;
158 label = "caldata-backup";
159 reg = <0x060000 0x010000>;
165 reg = <0x070000 0x010000>;
170 reg = <0x080000 0x010000>;
175 reg = <0x090000 0xf30000>;
176 compatible = "denx,uimage";
181 reg = <0xfc0000 0x040000>;
190 mtd-cal-data = <&caldata 0x1000>;
191 mtd-mac-address = <&caldata 0x06>;
197 phy4: ethernet-phy@4 {
206 mtd-mac-address = <&caldata 0x00>;
208 phy-handle = <&phy4>;
209 phy-mode = "rgmii-rxid";
211 pll-data = <0x86000000 0x80000101 0x80001313>;