ath79: define CONFIG_MFD_RB4XX_CPLD to fix build breakage
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e5.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 "qca953x.dtsi"
8
9 / {
10         compatible = "comfast,cf-e5", "qca,qca9531";
11         model = "COMFAST CF-E5/E7";
12
13         aliases {
14                 label-mac-device = &eth0;
15         };
16
17         keys {
18                 compatible = "gpio-keys";
19
20                 reset {
21                         label = "reset";
22                         linux,code = <KEY_RESTART>;
23                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
24                 };
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29                 pinctrl-names = "default";
30                 pinctrl-0 = <&jtag_disable_pins &led_wan_pin>;
31
32                 wan {
33                         label = "cf-e5:blue:wan";
34                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
35                 };
36
37                 lan {
38                         label = "cf-e5:blue:lan";
39                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
40                 };
41
42                 wlan {
43                         label = "cf-e5:blue:wlan";
44                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
45                         linux,default-trigger = "phy0tpt";
46                 };
47
48                 rssi0 {
49                         label = "cf-e5:blue:rssi0";
50                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51                 };
52
53                 rssi1 {
54                         label = "cf-e5:blue:rssi1";
55                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
56                 };
57
58                 rssi2 {
59                         label = "cf-e5:blue:rssi2";
60                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
61                 };
62         };
63 };
64
65 &uart {
66         status = "okay";
67 };
68
69 &usb0 {
70         #address-cells = <1>;
71         #size-cells = <0>;
72         status = "okay";
73
74         hub_port: port@1 {
75                 reg = <1>;
76                 #trigger-source-cells = <0>;
77         };
78 };
79
80 &usb_phy {
81         status = "okay";
82 };
83
84 &spi {
85         status = "okay";
86         num-cs = <1>;
87
88         flash@0 {
89                 compatible = "jedec,spi-nor";
90                 reg = <0>;
91                 spi-max-frequency = <25000000>;
92
93                 partitions {
94                         compatible = "fixed-partitions";
95                         #address-cells = <1>;
96                         #size-cells = <1>;
97
98                         partition@0 {
99                                 label = "u-boot";
100                                 reg = <0x000000 0x010000>;
101                                 read-only;
102                         };
103
104                         art: partition@10000 {
105                                 label = "art";
106                                 reg = <0x010000 0x010000>;
107                                 read-only;
108                         };
109
110                         partition@20000 {
111                                 compatible = "denx,uimage";
112                                 label = "firmware";
113                                 reg = <0x020000 0xfd0000>;
114                         };
115
116                         partition@ff0000 {
117                                 label = "art-backup";
118                                 reg = <0xff0000 0x010000>;
119                                 read-only;
120                         };
121                 };
122         };
123 };
124
125 &eth0 {
126         status = "okay";
127         mtd-mac-address = <&art 0x0>;
128         phy-handle = <&swphy4>;
129 };
130
131 &eth1 {
132         mtd-mac-address = <&art 0x6>;
133 };
134
135 &wmac {
136         status = "okay";
137         mtd-cal-data = <&art 0x1000>;
138 };
139
140 &pinmux {
141         led_wan_pin: pinmux_led_wan_pin {
142                 pinctrl-single,bits = <0x4 0x0 0xff>;
143         };
144 };