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-e110n-v2", "qca,qca9533";
11 model = "COMFAST CF-E110N 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>;
60 compatible = "gpio-leds";
63 function = LED_FUNCTION_WLAN;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
66 linux,default-trigger = "phy0tpt";
71 compatible = "gpio-keys";
75 linux,code = <KEY_RESTART>;
76 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
77 debounce-interval = <60>;
83 led_rssilow_pin: pinmux_rssilow_pin {
84 pinctrl-single,bits = <0x8 0x0 0xff000000>;
87 led_rssimediumhigh_pin: pinmux_rssimediumhigh_pin {
88 pinctrl-single,bits = <0xc 0x0 0x00ff0000>;
91 led_rssihigh_pin: pinmux_rssihigh_pin {
92 pinctrl-single,bits = <0x10 0x0 0x000000ff>;
100 compatible = "winbond,w25q128", "jedec,spi-nor";
102 spi-max-frequency = <25000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
111 reg = <0x000000 0x010000>;
115 art: partition@10000 {
117 reg = <0x010000 0x010000>;
121 compatible = "fixed-layout";
122 #address-cells = <1>;
125 macaddr_art_0: macaddr@0 {
129 macaddr_art_6: macaddr@6 {
133 macaddr_art_1002: macaddr@1002 {
140 compatible = "denx,uimage";
142 reg = <0x020000 0xfd0000>;
147 reg = <0xff0000 0x010000>;
157 phy-handle = <&swphy4>;
159 nvmem-cells = <&macaddr_art_0>;
160 nvmem-cell-names = "mac-address";
164 nvmem-cells = <&macaddr_art_1002>;
165 nvmem-cell-names = "mac-address";
175 mtd-cal-data = <&art 0x1000>;
176 nvmem-cells = <&macaddr_art_6>;
177 nvmem-cell-names = "mac-address";