1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
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-e120a-v3", "qca,ar9344";
11 model = "COMFAST CF-E120A v3";
14 led-boot = &led_rssihigh;
15 led-failsafe = &led_rssihigh;
16 led-upgrade = &led_rssihigh;
17 label-mac-device = ð0;
21 compatible = "gpio-leds";
23 pinctrl-names = "default";
24 pinctrl-0 = <&led_rssimediumhigh_pin>;
27 function = LED_FUNCTION_WAN;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
33 function = LED_FUNCTION_LAN;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
39 function = LED_FUNCTION_WLAN;
40 color = <LED_COLOR_ID_GREEN>;
41 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
46 label = "red:rssilow";
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51 label = "red:rssimediumlow";
52 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
56 label = "green:rssimediumhigh";
57 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
60 led_rssihigh: rssihigh {
61 label = "green:rssihigh";
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 compatible = "gpio-keys";
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
79 led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin {
80 pinctrl-single,bits = <0x10 0x0 0xff>;
88 compatible = "jedec,spi-nor";
90 spi-max-frequency = <25000000>;
93 compatible = "fixed-partitions";
99 reg = <0x000000 0x010000>;
103 art: partition@10000 {
105 reg = <0x010000 0x010000>;
109 compatible = "fixed-layout";
110 #address-cells = <1>;
113 macaddr_art_0: macaddr@0 {
117 macaddr_art_6: macaddr@6 {
124 compatible = "denx,uimage";
126 reg = <0x020000 0x7d0000>;
131 reg = <0x7f0000 0x010000>;
140 phy-handle = <&swphy0>;
141 nvmem-cells = <&macaddr_art_0>;
142 nvmem-cell-names = "mac-address";
146 switch-phy-swap = <1>;
152 nvmem-cells = <&macaddr_art_6>;
153 nvmem-cell-names = "mac-address";
158 mtd-cal-data = <&art 0x1000>;