ath79: move dts-v1 statement to ath79.dtsi
[openwrt/staging/blogic.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 = "cf-e5:blue:wan";
33 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
34 };
35
36 lan {
37 label = "cf-e5:blue:lan";
38 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
39 };
40
41 wlan {
42 label = "cf-e5:blue:wlan";
43 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
45 };
46
47 rssi0 {
48 label = "cf-e5:blue:rssi0";
49 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
50 };
51
52 rssi1 {
53 label = "cf-e5:blue:rssi1";
54 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
55 };
56
57 rssi2 {
58 label = "cf-e5: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 num-cs = <1>;
86
87 flash@0 {
88 compatible = "jedec,spi-nor";
89 reg = <0>;
90 spi-max-frequency = <25000000>;
91
92 partitions {
93 compatible = "fixed-partitions";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 partition@0 {
98 label = "u-boot";
99 reg = <0x000000 0x010000>;
100 read-only;
101 };
102
103 art: partition@10000 {
104 label = "art";
105 reg = <0x010000 0x010000>;
106 read-only;
107 };
108
109 partition@20000 {
110 compatible = "denx,uimage";
111 label = "firmware";
112 reg = <0x020000 0xfd0000>;
113 };
114
115 partition@ff0000 {
116 label = "art-backup";
117 reg = <0xff0000 0x010000>;
118 read-only;
119 };
120 };
121 };
122 };
123
124 &eth0 {
125 status = "okay";
126
127 phy-handle = <&swphy4>;
128
129 mtd-mac-address = <&art 0x0>;
130 };
131
132 &eth1 {
133 mtd-mac-address = <&art 0x6>;
134 };
135
136 &wmac {
137 status = "okay";
138
139 mtd-cal-data = <&art 0x1000>;
140 };
141
142 &pinmux {
143 led_wan_pin: pinmux_led_wan_pin {
144 pinctrl-single,bits = <0x4 0x0 0xff>;
145 };
146 };