ath79: Add support for OpenMesh OM2P v4
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_belkin_f9x-v2.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &eth1;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 usb {
21 label = "green:usb2";
22 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
23 trigger-sources = <&hub_port0>;
24 linux,default-trigger = "usbport";
25 };
26
27 status {
28 label = "amber:status";
29 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
30 };
31
32 wps-amber {
33 label = "amber:wps";
34 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
35 };
36
37 wps-blue {
38 label = "blue:wps";
39 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
40 };
41
42 led_system: system {
43 label = "blue:system";
44 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
45 };
46 };
47
48 gpio-export {
49 compatible = "gpio-export";
50 #size-cells = <0>;
51
52 usb2_power {
53 gpio-export,name = "usb2:power";
54 gpio-export,output = <1>;
55 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
56 };
57 };
58
59 keys {
60 compatible = "gpio-keys";
61
62 wps {
63 label = "WPS button";
64 linux,code = <KEY_WPS_BUTTON>;
65 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
67 };
68
69 reset {
70 label = "Reset button";
71 linux,code = <KEY_RESTART>;
72 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
74 };
75 };
76
77 virtual_flash {
78 compatible = "mtd-concat";
79
80 devices = <&fwconcat0 &fwconcat1>;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 compatible = "openwrt,okli";
89 label = "firmware";
90 reg = <0x0 0x0>;
91 };
92 };
93 };
94 };
95
96 &pcie1 {
97 status = "okay";
98 };
99
100 &uart {
101 status = "okay";
102 };
103
104 &usb_phy0 {
105 status = "okay";
106 };
107
108 &usb0 {
109 #address-cells = <1>;
110 #size-cells = <0>;
111 status = "okay";
112
113 hub_port0: port@1 {
114 reg = <1>;
115 #trigger-source-cells = <0>;
116 };
117 };
118
119 &spi {
120 status = "okay";
121
122 flash@0 {
123 compatible = "jedec,spi-nor";
124 reg = <0>;
125 spi-max-frequency = <80000000>;
126 m25p,fast-read;
127
128 partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 uboot: partition@0 {
134 label = "u-boot";
135 reg = <0x000000 0x040000>;
136 read-only;
137 };
138
139 partition@40000 {
140 label = "u-boot-env";
141 reg = <0x040000 0x010000>;
142 };
143
144 fwconcat0: partition@50000 {
145 label = "fwconcat0";
146 reg = <0x050000 0xe20000>;
147 };
148
149 partition@e70000 {
150 label = "loader";
151 reg = <0xe70000 0x10000>;
152 read-only;
153 };
154
155 fwconcat1: partition@e80000 {
156 label = "fwconcat1";
157 reg = <0xe80000 0x170000>;
158 };
159
160 art: partition@ff0000 {
161 label = "art";
162 reg = <0xff0000 0x010000>;
163 };
164 };
165 };
166 };
167
168 &mdio0 {
169 status = "okay";
170
171 phy0: ethernet-phy@0 {
172 reg = <0>;
173
174 qca,ar8327-initvals = <
175 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
176 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
177 0x50 0xc737c737 /* LED_CTRL0 */
178 0x54 0x00000000 /* LED_CTRL1 */
179 0x58 0x00000000 /* LED_CTRL2 */
180 0x5c 0x0030c300 /* LED_CTRL3 */
181 0x7c 0x0000007e /* PORT0_STATUS */
182 0x94 0x0000007e /* PORT6 STATUS */
183 >;
184 };
185 };
186
187 &eth0 {
188 status = "okay";
189
190 mtd-mac-address = <&art 0x0>;
191 phy-handle = <&phy0>;
192 pll-data = <0xa6000000 0x00000101 0x00001616>;
193
194 gmac-config {
195 device = <&gmac>;
196 rgmii-enabled = <1>;
197 };
198 };
199
200 &eth1 {
201 status = "okay";
202
203 mtd-mac-address = <&art 0x0>;
204 mtd-mac-address-increment = <(-1)>;
205 pll-data = <0x03000101 0x00000101 0x00001616>;
206
207 fixed-link {
208 speed = <1000>;
209 full-duplex;
210 };
211 };
212
213 &pcie0 {
214 status = "okay";
215
216 wifi@0,0 {
217 compatible = "qcom,ath10k";
218 reg = <0 0 0 0 0>;
219 };
220 };
221
222 &wmac {
223 status = "okay";
224
225 mtd-cal-data = <&art 0x1000>;
226 };