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