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-e314n-v2", "qca,qca9531";
11 model = "COMFAST CF-E314N v2";
15 led-boot = &led_rssihigh;
16 led-failsafe = &led_rssihigh;
17 led-upgrade = &led_rssihigh;
21 compatible = "gpio-leds";
23 pinctrl-names = "default";
24 pinctrl-0 = <&jtag_disable_pins &led_rssilow_pin &led_rssimediumhigh_pin &led_rssihigh_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 label = "red:rssilow";
40 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
44 label = "red:rssimediumlow";
45 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
49 label = "green:rssimediumhigh";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 led_rssihigh: rssihigh {
54 label = "green:rssihigh";
55 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 function = LED_FUNCTION_WLAN;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy0tpt";
67 compatible = "gpio-keys";
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
79 led_rssilow_pin: pinmux_rssilow_pin {
80 pinctrl-single,bits = <0x8 0x0 0xff000000>;
83 led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin {
84 pinctrl-single,bits = <0xc 0x0 0x00ff0000>;
87 led_rssihigh_pin: pinmux_rssihigh_pin {
88 pinctrl-single,bits = <0x10 0x0 0x000000ff>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <25000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
107 reg = <0x000000 0x010000>;
111 art: partition@10000 {
113 reg = <0x010000 0x010000>;
117 compatible = "fixed-layout";
118 #address-cells = <1>;
121 macaddr_art_0: macaddr@0 {
125 macaddr_art_6: macaddr@6 {
132 compatible = "denx,uimage";
134 reg = <0x020000 0x7c0000>;
139 reg = <0x7e0000 0x010000>;
145 reg = <0x7f0000 0x010000>;
155 phy-handle = <&swphy4>;
157 nvmem-cells = <&macaddr_art_0>;
158 nvmem-cell-names = "mac-address";
162 nvmem-cells = <&macaddr_art_6>;
163 nvmem-cell-names = "mac-address";
168 mtd-cal-data = <&art 0x1000>;