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