1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2021, Linaro Ltd.
4 * Copyright (c) 2020, Konrad Dybcio <konrad.dybcio@somainline.org>
5 * Copyright (c) 2020, AngeloGioacchino Del Regno
6 * <angelogioacchino.delregno@somainline.org>
11 #include "sdm660.dtsi"
13 #include "pm660l.dtsi"
16 model = "Inforce 6560 Single Board Computer";
17 compatible = "inforce,ifc6560", "qcom,sda660";
18 chassis-type = "embedded"; /* SBC */
21 serial0 = &blsp1_uart2;
22 serial1 = &blsp2_uart1;
26 stdout-path = "serial0:115200n8";
30 compatible = "gpio-keys";
34 gpios = <&pm660l_gpios 7 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_VOLUMEUP>;
36 debounce-interval = <15>;
41 * Until we hook up type-c detection, we
42 * have to stick with this. But it works.
44 extcon_usb: extcon-usb {
45 compatible = "linux,extcon-usb-gpio";
46 id-gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
50 compatible = "hdmi-connector";
55 remote-endpoint = <&adv7533_out>;
60 vph_pwr: vph-pwr-regulator {
61 compatible = "regulator-fixed";
62 regulator-name = "vph_pwr";
63 regulator-min-microvolt = <3800000>;
64 regulator-max-microvolt = <3800000>;
70 v3p3_bck_bst: v3p3-bck-bst-regulator {
71 compatible = "regulator-fixed";
72 regulator-name = "v3p3_bck_bst";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
77 vin-supply = <&vph_pwr>;
80 v1p2_ldo: v1p2-ldo-regulator {
81 compatible = "regulator-fixed";
82 regulator-name = "v1p2_ldo";
84 regulator-min-microvolt = <1200000>;
85 regulator-max-microvolt = <1200000>;
87 vin-supply = <&vph_pwr>;
90 v5p0_boost: v5p0-boost-regulator {
91 compatible = "regulator-fixed";
92 regulator-name = "v5p0_boost";
94 regulator-min-microvolt = <5000000>;
95 regulator-max-microvolt = <5000000>;
97 vin-supply = <&vph_pwr>;
102 firmware-name = "/*(DEBLOBBED)*/";
109 compatible = "adi,adv7535";
110 reg = <0x39>, <0x66>;
111 reg-names = "main", "edid";
113 interrupt-parent = <&pm660l_gpios>;
114 interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
116 clocks = <&rpmcc RPM_SMD_BB_CLK2>;
119 * Limit to 3 lanes to prevent the bridge from changing amount
120 * of lanes in the fly. MSM DSI host doesn't like that.
123 avdd-supply = <&vreg_l13a_1p8>;
124 dvdd-supply = <&vreg_l13a_1p8>;
125 pvdd-supply = <&vreg_l13a_1p8>;
126 a2vdd-supply = <&vreg_l13a_1p8>;
127 v3p3-supply = <&v3p3_bck_bst>;
130 #address-cells = <1>;
136 adv7533_in: endpoint {
137 remote-endpoint = <&mdss_dsi0_out>;
144 adv7533_out: endpoint {
145 remote-endpoint = <&hdmi_con>;
154 * The board will lock up if we toggle the BLSP clock, unless the
155 * BAM DMA interconnects support is in place.
157 /delete-property/ clocks;
166 * The board will lock up if we toggle the BLSP clock, unless the
167 * BAM DMA interconnects support is in place.
169 /delete-property/ clocks;
176 compatible = "qcom,wcn3990-bt";
178 vddio-supply = <&vreg_l13a_1p8>;
179 vddxo-supply = <&vreg_l9a_1p8>;
180 vddrf-supply = <&vreg_l6a_1p3>;
181 vddch0-supply = <&vreg_l19a_3p3>;
182 max-speed = <3200000>;
192 vdda-supply = <&vreg_l1a_1p225>;
196 remote-endpoint = <&adv7533_in>;
197 data-lanes = <0 1 2 3>;
202 vcca-supply = <&vreg_l1b_0p925>;
216 linux,code = <KEY_VOLUMEUP>;
222 vdd-supply = <&vreg_l1b_0p925>;
223 vdda-phy-dpdm-supply = <&vreg_l7b_3p125>;
229 vdd-supply = <&vreg_l1b_0p925>;
230 vdda-phy-dpdm-supply = <&vreg_l7b_3p125>;
235 compatible = "qcom,rpm-pm660-regulators";
237 vdd_s1-supply = <&vph_pwr>;
238 vdd_s2-supply = <&vph_pwr>;
239 vdd_s3-supply = <&vph_pwr>;
240 vdd_s4-supply = <&vph_pwr>;
241 vdd_s5-supply = <&vph_pwr>;
242 vdd_s6-supply = <&vph_pwr>;
244 vdd_l1_l6_l7-supply = <&vreg_s5a_1p35>;
245 vdd_l2_l3-supply = <&vreg_s2b_1p05>;
246 vdd_l5-supply = <&vreg_s2b_1p05>;
247 vdd_l8_l9_l10_l11_l12_l13_l14-supply = <&vreg_s4a_2p04>;
248 vdd_l15_l16_l17_l18_l19-supply = <&vreg_bob>;
251 regulator-min-microvolt = <1805000>;
252 regulator-max-microvolt = <2040000>;
253 regulator-enable-ramp-delay = <200>;
254 regulator-ramp-delay = <0>;
259 regulator-min-microvolt = <1224000>;
260 regulator-max-microvolt = <1350000>;
261 regulator-enable-ramp-delay = <200>;
262 regulator-ramp-delay = <0>;
266 regulator-min-microvolt = <1150000>;
267 regulator-max-microvolt = <1250000>;
268 regulator-enable-ramp-delay = <250>;
269 regulator-allow-set-load;
273 regulator-min-microvolt = <1304000>;
274 regulator-max-microvolt = <1368000>;
275 regulator-enable-ramp-delay = <250>;
276 regulator-ramp-delay = <0>;
277 regulator-allow-set-load;
281 regulator-min-microvolt = <1800000>;
282 regulator-max-microvolt = <1800000>;
283 regulator-enable-ramp-delay = <250>;
284 regulator-ramp-delay = <0>;
285 regulator-system-load = <325000>;
286 regulator-allow-set-load;
290 regulator-min-microvolt = <1804000>;
291 regulator-max-microvolt = <1896000>;
292 regulator-enable-ramp-delay = <250>;
293 regulator-ramp-delay = <0>;
294 regulator-allow-set-load;
298 /* This gives power to the LPDDR4: never turn it off! */
299 regulator-min-microvolt = <1800000>;
300 regulator-max-microvolt = <1944000>;
301 regulator-enable-ramp-delay = <250>;
302 regulator-ramp-delay = <0>;
308 regulator-min-microvolt = <3312000>;
309 regulator-max-microvolt = <3400000>;
310 regulator-enable-ramp-delay = <250>;
311 regulator-ramp-delay = <0>;
312 regulator-allow-set-load;
317 compatible = "qcom,rpm-pm660l-regulators";
319 vdd_s1-supply = <&vph_pwr>;
320 vdd_s2-supply = <&vph_pwr>;
321 vdd_s3_s4-supply = <&vph_pwr>;
322 vdd_s5-supply = <&vph_pwr>;
323 vdd_s6-supply = <&vph_pwr>;
325 vdd_l1_l9_l10-supply = <&vreg_s2b_1p05>;
326 vdd_l2-supply = <&vreg_bob>;
327 vdd_l3_l5_l7_l8-supply = <&vreg_bob>;
328 vdd_l4_l6-supply = <&vreg_bob>;
329 vdd_bob-supply = <&vph_pwr>;
332 regulator-min-microvolt = <1050000>;
333 regulator-max-microvolt = <1050000>;
334 regulator-enable-ramp-delay = <200>;
335 regulator-ramp-delay = <0>;
339 regulator-min-microvolt = <800000>;
340 regulator-max-microvolt = <925000>;
341 regulator-enable-ramp-delay = <250>;
342 regulator-allow-set-load;
346 regulator-min-microvolt = <1648000>;
347 regulator-max-microvolt = <3100000>;
348 regulator-enable-ramp-delay = <250>;
349 regulator-ramp-delay = <0>;
350 regulator-allow-set-load;
354 regulator-min-microvolt = <2944000>;
355 regulator-max-microvolt = <2952000>;
356 regulator-enable-ramp-delay = <250>;
357 regulator-ramp-delay = <0>;
359 regulator-min-microamp = <200>;
360 regulator-max-microamp = <600000>;
361 regulator-system-load = <570000>;
362 regulator-allow-set-load;
366 * Downstream specifies a range of 1721-3600mV,
367 * but the only assigned consumers are SDHCI2 VMMC
368 * and Coresight QPDI that both request pinned 2.95V.
369 * Tighten the range to 1.8-3.328 (closest to 3.3) to
370 * make the mmc driver happy.
373 regulator-min-microvolt = <1800000>;
374 regulator-max-microvolt = <3328000>;
375 regulator-enable-ramp-delay = <250>;
376 regulator-system-load = <800000>;
377 regulator-ramp-delay = <0>;
378 regulator-allow-set-load;
382 regulator-min-microvolt = <2700000>;
383 regulator-max-microvolt = <3125000>;
384 regulator-enable-ramp-delay = <250>;
388 regulator-min-microvolt = <2800000>;
389 regulator-max-microvolt = <3400000>;
390 regulator-enable-ramp-delay = <250>;
391 regulator-ramp-delay = <0>;
395 regulator-min-microvolt = <3300000>;
396 regulator-max-microvolt = <3624000>;
397 regulator-enable-ramp-delay = <500>;
398 regulator-ramp-delay = <0>;
408 drive-strength = <2>;
417 drive-strength = <2>;
425 vmmc-supply = <&vreg_l4b_2p95>;
426 vqmmc-supply = <&vreg_l8a_1p8>;
430 mmc-hs400-enhanced-strobe;
436 vmmc-supply = <&vreg_l5b_2p95>;
437 vqmmc-supply = <&vreg_l2b_2p95>;
439 cd-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
445 gpio-reserved-ranges = <0 4>, <8 4>;
461 dr_mode = "peripheral";
462 extcon = <&extcon_usb>;