1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
11 label-mac-device = &wmac;
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
19 compatible = "gpio-leds";
22 function = LED_FUNCTION_LAN;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
28 label = "red:security";
29 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
33 function = LED_FUNCTION_WLAN;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
40 label = "green:system";
41 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45 label = "green:security";
46 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
51 compatible = "gpio-keys";
54 label = "Reset button";
55 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
62 linux,code = <KEY_WPS_BUTTON>;
63 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
64 debounce-interval = <60>;
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <25000000>;
78 compatible = "fixed-partitions";
84 reg = <0x000000 0x020000>;
88 compatible = "fixed-layout";
92 macaddr_uboot_1fc00: macaddr@1fc00 {
99 compatible = "tplink,firmware";
101 reg = <0x020000 0x3d0000>;
104 art: partition@3f0000 {
106 reg = <0x3f0000 0x010000>;
116 phy-handle = <&swphy4>;
118 nvmem-cells = <&macaddr_uboot_1fc00>;
119 nvmem-cell-names = "mac-address";
123 compatible = "syscon", "simple-mfd";
129 mtd-cal-data = <&art 0x1000>;
130 nvmem-cells = <&macaddr_uboot_1fc00>;
131 nvmem-cell-names = "mac-address";