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