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;
15 compatible = "gpio-leds";
18 function = LED_FUNCTION_WLAN;
19 color = <LED_COLOR_ID_GREEN>;
20 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
21 linux,default-trigger = "phy0tpt";
26 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
30 function = LED_FUNCTION_WAN;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
37 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-keys";
60 label = "Reset button";
61 linux,code = <KEY_RESTART>;
62 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
63 debounce-interval = <60>;
67 label = "RFKILL button";
68 linux,code = <KEY_RFKILL>;
69 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
70 debounce-interval = <60>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <25000000>;
84 compatible = "fixed-partitions";
90 reg = <0x000000 0x020000>;
94 compatible = "fixed-layout";
98 macaddr_uboot_1fc00: macaddr@1fc00 {
99 compatible = "mac-base";
101 #nvmem-cell-cells = <1>;
107 compatible = "tplink,firmware";
109 reg = <0x020000 0x3d0000>;
112 art: partition@3f0000 {
114 reg = <0x3f0000 0x010000>;
124 phy-handle = <&swphy4>;
126 nvmem-cells = <&macaddr_uboot_1fc00 1>;
127 nvmem-cell-names = "mac-address";
131 nvmem-cells = <&macaddr_uboot_1fc00 0>;
132 nvmem-cell-names = "mac-address";
138 mtd-cal-data = <&art 0x1000>;
139 nvmem-cells = <&macaddr_uboot_1fc00 0>;
140 nvmem-cell-names = "mac-address";