ath79: add support for Comfast WR650AC v1/v2
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9558_comfast_cf-wr650ac-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca9558_comfast_cf-wr650ac.dtsi"
8
9 / {
10         compatible = "comfast,cf-wr650ac-v2", "qca,qca9558";
11         model = "Comfast CF-WR650AC v2";
12
13         leds {
14                 compatible = "gpio-leds";
15
16                 wps {
17                         label = "cf-wr650ac-v2:blue:wps";
18                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
19                 };
20
21                 network {
22                         label = "cf-wr650ac-v2:blue:network";
23                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
24                 };
25
26                 wlan2g {
27                         label = "cf-wr650ac-v2:blue:wlan2";
28                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
29                         linux,default-trigger = "phy1tpt";
30                 };
31
32                 wlan5g {
33                         label = "cf-wr650ac-v2:blue:wlan5";
34                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
35                         linux,default-trigger = "phy0tpt";
36                 };
37         };
38
39 };
40
41 &spi {
42         status = "okay";
43         num-cs = <1>;
44
45         flash@0 {
46                 compatible = "jedec,spi-nor";
47                 reg = <0>;
48                 spi-max-frequency = <25000000>;
49
50                 partitions {
51                         compatible = "fixed-partitions";
52                         #address-cells = <1>;
53                         #size-cells = <1>;
54
55                         partition@0 {
56                                 label = "u-boot";
57                                 reg = <0x000000 0x040000>;
58                                 read-only;
59                         };
60
61                         art: partition@40000 {
62                                 label = "art";
63                                 reg = <0x040000 0x010000>;
64                                 read-only;
65                         };
66
67                         partition@50000 {
68                                 label = "firmware";
69                                 compatible = "denx,uimage";
70                                 reg = <0x050000 0xfa0000>;
71                         };
72
73                         partition@ff0000 {
74                                 label = "nvram";
75                                 reg = <0xff0000 0x010000>;
76                                 read-only;
77                         };
78                 };
79         };
80 };