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>
10 compatible = "comfast,cf-e130n-v2", "qca,qca9531";
11 model = "COMFAST CF-E130N v2";
15 led-boot = &led_rssihigh;
16 led-failsafe = &led_rssihigh;
17 led-upgrade = &led_rssihigh;
18 label-mac-device = ð1;
22 compatible = "gpio-leds";
24 pinctrl-names = "default";
27 function = LED_FUNCTION_WLAN;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy0tpt";
34 function = LED_FUNCTION_LAN;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
40 label = "green:unused";
41 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
45 label = "red:rssilow";
46 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
50 label = "red:rssimediumlow";
51 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
55 label = "green:rssimediumhigh";
56 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59 led_rssihigh: rssihigh {
60 label = "green:rssihigh";
61 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
66 compatible = "gpio-keys";
70 linux,code = <KEY_RESTART>;
71 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
72 debounce-interval = <60>;
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <25000000>;
86 compatible = "fixed-partitions";
92 reg = <0x000000 0x010000>;
96 art: partition@10000 {
98 reg = <0x010000 0x010000>;
102 compatible = "fixed-layout";
103 #address-cells = <1>;
106 macaddr_art_0: macaddr@0 {
113 compatible = "denx,uimage";
115 reg = <0x020000 0x7c0000>;
120 reg = <0x7e0000 0x010000>;
126 reg = <0x7f0000 0x010000>;
134 nvmem-cells = <&macaddr_art_0>;
135 nvmem-cell-names = "mac-address";
139 switch-phy-swap = <1>;
146 nvmem-cells = <&macaddr_art_0>;
147 nvmem-cell-names = "mac-address";
148 mtd-cal-data = <&art 0x1000>;