xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-ipq4018-ap120c-ac.dtsi (revision 3fd6c59042dbba50391e30862beac979491145fe)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2724ba675SRob Herring
3724ba675SRob Herring#include "qcom-ipq4019.dtsi"
4724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
5724ba675SRob Herring#include <dt-bindings/input/input.h>
6724ba675SRob Herring
7724ba675SRob Herring/ {
8724ba675SRob Herring	model = "ALFA Network AP120C-AC";
9724ba675SRob Herring	compatible = "alfa-network,ap120c-ac", "qcom,ipq4018";
10724ba675SRob Herring
11724ba675SRob Herring	aliases {
12724ba675SRob Herring		serial0 = &blsp1_uart1;
13724ba675SRob Herring	};
14724ba675SRob Herring
15724ba675SRob Herring	chosen {
16724ba675SRob Herring		stdout-path = "serial0:115200n8";
17724ba675SRob Herring	};
18724ba675SRob Herring
19724ba675SRob Herring	keys {
20724ba675SRob Herring		compatible = "gpio-keys";
21724ba675SRob Herring
22724ba675SRob Herring		key-reset {
23724ba675SRob Herring			label = "reset";
24724ba675SRob Herring			gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
25724ba675SRob Herring			linux,code = <KEY_RESTART>;
26724ba675SRob Herring		};
27724ba675SRob Herring	};
28724ba675SRob Herring};
29724ba675SRob Herring
30724ba675SRob Herring&tlmm {
31*268a968eSRayyan Ansari	i2c0_pins: i2c0-state {
32724ba675SRob Herring		function = "blsp_i2c0";
33724ba675SRob Herring		pins = "gpio58", "gpio59";
34724ba675SRob Herring		drive-strength = <16>;
35724ba675SRob Herring		bias-disable;
36724ba675SRob Herring	};
37724ba675SRob Herring
38*268a968eSRayyan Ansari	mdio_pins: mdio-state {
39*268a968eSRayyan Ansari		mdio-pins {
40724ba675SRob Herring			pins = "gpio53";
41724ba675SRob Herring			function = "mdio";
42724ba675SRob Herring			bias-pull-up;
43724ba675SRob Herring		};
44724ba675SRob Herring
45*268a968eSRayyan Ansari		mdc-pins {
46724ba675SRob Herring			pins = "gpio52";
47724ba675SRob Herring			function = "mdc";
48724ba675SRob Herring			bias-pull-up;
49724ba675SRob Herring		};
50724ba675SRob Herring	};
51724ba675SRob Herring
52*268a968eSRayyan Ansari	serial0_pins: serial0-state {
53724ba675SRob Herring		pins = "gpio60", "gpio61";
54724ba675SRob Herring		function = "blsp_uart0";
55724ba675SRob Herring		bias-disable;
56724ba675SRob Herring	};
57724ba675SRob Herring
58*268a968eSRayyan Ansari	spi0_pins: spi0-state {
59*268a968eSRayyan Ansari		spi0-pins {
60724ba675SRob Herring			function = "blsp_spi0";
61724ba675SRob Herring			pins = "gpio55", "gpio56", "gpio57";
62724ba675SRob Herring			drive-strength = <12>;
63724ba675SRob Herring			bias-disable;
64724ba675SRob Herring		};
65724ba675SRob Herring
66*268a968eSRayyan Ansari		spi0-cs-pins {
67724ba675SRob Herring			function = "gpio";
68724ba675SRob Herring			pins = "gpio54", "gpio4";
69724ba675SRob Herring			drive-strength = <2>;
70724ba675SRob Herring			bias-disable;
71724ba675SRob Herring			output-high;
72724ba675SRob Herring		};
73724ba675SRob Herring	};
74724ba675SRob Herring
75724ba675SRob Herring	usb-power-hog {
76724ba675SRob Herring		line-name = "USB-power";
77724ba675SRob Herring		gpios = <1 GPIO_ACTIVE_HIGH>;
78724ba675SRob Herring		gpio-hog;
79724ba675SRob Herring		output-high;
80724ba675SRob Herring	};
81724ba675SRob Herring};
82724ba675SRob Herring
83724ba675SRob Herring&watchdog {
84724ba675SRob Herring	status = "okay";
85724ba675SRob Herring};
86724ba675SRob Herring
87724ba675SRob Herring&prng {
88724ba675SRob Herring	status = "okay";
89724ba675SRob Herring};
90724ba675SRob Herring
91724ba675SRob Herring&blsp_dma {
92724ba675SRob Herring	status = "okay";
93724ba675SRob Herring};
94724ba675SRob Herring
95724ba675SRob Herring&blsp1_i2c3 {
96724ba675SRob Herring	status = "okay";
97724ba675SRob Herring
98724ba675SRob Herring	pinctrl-0 = <&i2c0_pins>;
99724ba675SRob Herring	pinctrl-names = "default";
100724ba675SRob Herring
101724ba675SRob Herring	tpm@29 {
102724ba675SRob Herring		compatible = "atmel,at97sc3204t";
103724ba675SRob Herring		reg = <0x29>;
104724ba675SRob Herring	};
105724ba675SRob Herring};
106724ba675SRob Herring
107724ba675SRob Herring&blsp1_spi1 {
108724ba675SRob Herring	status = "okay";
109724ba675SRob Herring
110724ba675SRob Herring	pinctrl-0 = <&spi0_pins>;
111724ba675SRob Herring	pinctrl-names = "default";
112724ba675SRob Herring	cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 4 GPIO_ACTIVE_HIGH>;
113724ba675SRob Herring
114724ba675SRob Herring	flash@0 {
115724ba675SRob Herring		compatible = "jedec,spi-nor";
116724ba675SRob Herring		reg = <0>;
117724ba675SRob Herring		spi-max-frequency = <24000000>;
118724ba675SRob Herring
119724ba675SRob Herring		partitions {
120724ba675SRob Herring			compatible = "fixed-partitions";
121724ba675SRob Herring			#address-cells = <1>;
122724ba675SRob Herring			#size-cells = <1>;
123724ba675SRob Herring
124724ba675SRob Herring			partition@0 {
125724ba675SRob Herring				label = "SBL1";
126724ba675SRob Herring				reg = <0x00000000 0x00040000>;
127724ba675SRob Herring				read-only;
128724ba675SRob Herring			};
129724ba675SRob Herring
130724ba675SRob Herring			partition@40000 {
131724ba675SRob Herring				label = "MIBIB";
132724ba675SRob Herring				reg = <0x00040000 0x00020000>;
133724ba675SRob Herring				read-only;
134724ba675SRob Herring			};
135724ba675SRob Herring
136724ba675SRob Herring			partition@60000 {
137724ba675SRob Herring				label = "QSEE";
138724ba675SRob Herring				reg = <0x00060000 0x00060000>;
139724ba675SRob Herring				read-only;
140724ba675SRob Herring			};
141724ba675SRob Herring
142724ba675SRob Herring			partition@c0000 {
143724ba675SRob Herring				label = "CDT";
144724ba675SRob Herring				reg = <0x000c0000 0x00010000>;
145724ba675SRob Herring				read-only;
146724ba675SRob Herring			};
147724ba675SRob Herring
148724ba675SRob Herring			partition@d0000 {
149724ba675SRob Herring				label = "DDRPARAMS";
150724ba675SRob Herring				reg = <0x000d0000 0x00010000>;
151724ba675SRob Herring				read-only;
152724ba675SRob Herring			};
153724ba675SRob Herring
154724ba675SRob Herring			partition@e0000 {
155724ba675SRob Herring				label = "u-boot-env";
156724ba675SRob Herring				reg = <0x000e0000 0x00010000>;
157724ba675SRob Herring			};
158724ba675SRob Herring
159724ba675SRob Herring			partition@f0000 {
160724ba675SRob Herring				label = "u-boot";
161724ba675SRob Herring				reg = <0x000f0000 0x00080000>;
162724ba675SRob Herring				read-only;
163724ba675SRob Herring			};
164724ba675SRob Herring
165724ba675SRob Herring			partition@170000 {
166724ba675SRob Herring				label = "ART";
167724ba675SRob Herring				reg = <0x00170000 0x00010000>;
168724ba675SRob Herring				read-only;
169724ba675SRob Herring
170724ba675SRob Herring				nvmem-layout {
171724ba675SRob Herring					compatible = "fixed-layout";
172724ba675SRob Herring					#address-cells = <1>;
173724ba675SRob Herring					#size-cells = <1>;
174724ba675SRob Herring
175724ba675SRob Herring					precal_art_1000: precal@1000 {
176724ba675SRob Herring						reg = <0x1000 0x2f20>;
177724ba675SRob Herring					};
178724ba675SRob Herring
179724ba675SRob Herring					precal_art_5000: precal@5000 {
180724ba675SRob Herring						reg = <0x5000 0x2f20>;
181724ba675SRob Herring					};
182724ba675SRob Herring				};
183724ba675SRob Herring			};
184724ba675SRob Herring
185724ba675SRob Herring			partition@180000 {
186724ba675SRob Herring				label = "priv_data1";
187724ba675SRob Herring				reg = <0x00180000 0x00010000>;
188724ba675SRob Herring				read-only;
189724ba675SRob Herring			};
190724ba675SRob Herring
191724ba675SRob Herring			partition@190000 {
192724ba675SRob Herring				label = "priv_data2";
193724ba675SRob Herring				reg = <0x00190000 0x00010000>;
194724ba675SRob Herring				read-only;
195724ba675SRob Herring			};
196724ba675SRob Herring		};
197724ba675SRob Herring	};
198724ba675SRob Herring
199724ba675SRob Herring	flash@1 {
200724ba675SRob Herring		compatible = "spi-nand";
201724ba675SRob Herring		reg = <1>;
202724ba675SRob Herring		spi-max-frequency = <40000000>;
203724ba675SRob Herring
204724ba675SRob Herring		partitions {
205724ba675SRob Herring			compatible = "fixed-partitions";
206724ba675SRob Herring			#address-cells = <1>;
207724ba675SRob Herring			#size-cells = <1>;
208724ba675SRob Herring
209724ba675SRob Herring			partition@0 {
210724ba675SRob Herring				label = "ubi1";
211724ba675SRob Herring				reg = <0x00000000 0x04000000>;
212724ba675SRob Herring			};
213724ba675SRob Herring
214724ba675SRob Herring			partition@4000000 {
215724ba675SRob Herring				label = "ubi2";
216724ba675SRob Herring				reg = <0x04000000 0x04000000>;
217724ba675SRob Herring			};
218724ba675SRob Herring		};
219724ba675SRob Herring	};
220724ba675SRob Herring};
221724ba675SRob Herring
222724ba675SRob Herring&blsp1_uart1 {
223724ba675SRob Herring	status = "okay";
224724ba675SRob Herring
225724ba675SRob Herring	pinctrl-0 = <&serial0_pins>;
226724ba675SRob Herring	pinctrl-names = "default";
227724ba675SRob Herring};
228724ba675SRob Herring
229724ba675SRob Herring&cryptobam {
230724ba675SRob Herring	status = "okay";
231724ba675SRob Herring};
232724ba675SRob Herring
233724ba675SRob Herring&crypto {
234724ba675SRob Herring	status = "okay";
235724ba675SRob Herring};
236724ba675SRob Herring
237724ba675SRob Herring&mdio {
238724ba675SRob Herring	status = "okay";
239724ba675SRob Herring
240724ba675SRob Herring	pinctrl-0 = <&mdio_pins>;
241724ba675SRob Herring	pinctrl-names = "default";
242724ba675SRob Herring};
243724ba675SRob Herring
244724ba675SRob Herring&wifi0 {
245724ba675SRob Herring	status = "okay";
246724ba675SRob Herring	nvmem-cell-names = "pre-calibration";
247724ba675SRob Herring	nvmem-cells = <&precal_art_1000>;
248724ba675SRob Herring};
249724ba675SRob Herring
250724ba675SRob Herring&wifi1 {
251724ba675SRob Herring	status = "okay";
252724ba675SRob Herring	nvmem-cell-names = "pre-calibration";
253724ba675SRob Herring	nvmem-cells = <&precal_art_5000>;
254724ba675SRob Herring	qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";
255724ba675SRob Herring};
256724ba675SRob Herring
257724ba675SRob Herring&usb3_hs_phy {
258724ba675SRob Herring	status = "okay";
259724ba675SRob Herring};
260724ba675SRob Herring
2617caf0921SKrzysztof Kozlowski&usb3 {
2627caf0921SKrzysztof Kozlowski	status = "okay";
2637caf0921SKrzysztof Kozlowski
264724ba675SRob Herring	};
265724ba675SRob Herring
266724ba675SRob Herring&usb3_dwc {
267724ba675SRob Herring	phys = <&usb3_hs_phy>;
268724ba675SRob Herring	phy-names = "usb2-phy";
269724ba675SRob Herring};
270724ba675SRob Herring
271724ba675SRob Herring&usb2_hs_phy {
272724ba675SRob Herring	status = "okay";
273724ba675SRob Herring};
274724ba675SRob Herring
275&usb2 {
276	status = "okay";
277};
278