17cbe1df142b4b39e25ca62f63e184abdaa9643a
[openwrt/staging/hauke.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 &usb0 {
65 status = "okay";
66 };
67
68 &usb_phy {
69 status = "okay";
70 };
71
72 &spi {
73 status = "okay";
74
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <25000000>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x000000 0x010000>;
88 read-only;
89 };
90
91 art: partition@10000 {
92 label = "art";
93 reg = <0x010000 0x010000>;
94 read-only;
95 };
96
97 partition@20000 {
98 compatible = "denx,uimage";
99 label = "firmware";
100 reg = <0x020000 0xfd0000>;
101 };
102
103 partition@ff0000 {
104 label = "art-backup";
105 reg = <0xff0000 0x010000>;
106 read-only;
107 };
108 };
109 };
110 };
111
112 &eth0 {
113 status = "okay";
114
115 phy-handle = <&swphy4>;
116
117 nvmem-cells = <&macaddr_art_0>;
118 nvmem-cell-names = "mac-address";
119 };
120
121 &eth1 {
122 nvmem-cells = <&macaddr_art_6>;
123 nvmem-cell-names = "mac-address";
124 };
125
126 &wmac {
127 status = "okay";
128
129 mtd-cal-data = <&art 0x1000>;
130 };
131
132 &pinmux {
133 led_wan_pin: pinmux_led_wan_pin {
134 pinctrl-single,bits = <0x4 0x0 0xff>;
135 };
136 };
137
138 &art {
139 compatible = "nvmem-cells";
140 #address-cells = <1>;
141 #size-cells = <1>;
142
143 macaddr_art_0: macaddr@0 {
144 reg = <0x0 0x6>;
145 };
146
147 macaddr_art_6: macaddr@6 {
148 reg = <0x6 0x6>;
149 };
150 };