1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2023, Linaro Limited
8 #include <dt-bindings/leds/common.h>
9 #include <dt-bindings/usb/pd.h>
10 #include "sm4250.dtsi"
11 #include "pm6125.dtsi"
12 #include "pmi632.dtsi"
15 model = "Qualcomm Technologies, Inc. QRB4210 RB2";
16 compatible = "qcom,qrb4210-rb2", "qcom,qrb4210", "qcom,sm4250";
24 stdout-path = "serial0:115200n8";
29 compatible = "fixed-clock";
30 clock-frequency = <40000000>;
36 compatible = "gpio-keys";
39 pinctrl-0 = <&kypd_vol_up_n>;
40 pinctrl-names = "default";
44 linux,code = <KEY_VOLUMEUP>;
45 gpios = <&pm6125_gpios 5 GPIO_ACTIVE_LOW>;
46 debounce-interval = <15>;
53 compatible = "hdmi-connector";
58 remote-endpoint = <<9611_out>;
64 compatible = "gpio-leds";
68 function = LED_FUNCTION_BLUETOOTH;
69 color = <LED_COLOR_ID_BLUE>;
70 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
71 linux,default-trigger = "bluetooth-power";
72 default-state = "off";
76 label = "green:user0";
77 function = LED_FUNCTION_INDICATOR;
78 color = <LED_COLOR_ID_GREEN>;
79 gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;
80 linux,default-trigger = "none";
81 default-state = "off";
86 label = "yellow:wlan";
87 function = LED_FUNCTION_WLAN;
88 color = <LED_COLOR_ID_YELLOW>;
89 gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
90 linux,default-trigger = "phy0tx";
91 default-state = "off";
95 vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 {
96 compatible = "regulator-fixed";
97 regulator-name = "VREG_HDMI_OUT_1P2";
98 regulator-min-microvolt = <1200000>;
99 regulator-max-microvolt = <1200000>;
100 vin-supply = <&vdc_1v2>;
105 lt9611_3v3: regulator-lt9611-3v3 {
106 compatible = "regulator-fixed";
107 regulator-name = "LT9611_3V3";
108 regulator-min-microvolt = <3300000>;
109 regulator-max-microvolt = <3300000>;
110 vin-supply = <&vdc_3v3>;
115 /* Main barrel jack input */
116 vdc_12v: regulator-vdc-12v {
117 compatible = "regulator-fixed";
118 regulator-name = "DC_12V";
119 regulator-min-microvolt = <12000000>;
120 regulator-max-microvolt = <12000000>;
125 /* 1.2V supply stepped down from the barrel jack input */
126 vdc_1v2: regulator-vdc-1v2 {
127 compatible = "regulator-fixed";
128 regulator-name = "VDC_1V2";
129 regulator-min-microvolt = <1200000>;
130 regulator-max-microvolt = <1200000>;
131 vin-supply = <&vdc_12v>;
136 /* 3.3V supply stepped down from the barrel jack input */
137 vdc_3v3: regulator-vdc-3v3 {
138 compatible = "regulator-fixed";
139 regulator-name = "VDC_3V3";
140 regulator-min-microvolt = <3300000>;
141 regulator-max-microvolt = <3300000>;
142 vin-supply = <&vdc_12v>;
147 /* 5V supply stepped down from the barrel jack input */
148 vdc_5v: regulator-vdc-5v {
149 compatible = "regulator-fixed";
150 regulator-name = "VDC_5V";
152 regulator-min-microvolt = <5000000>;
153 regulator-max-microvolt = <5000000>;
158 /* "Battery" voltage for the SoM, stepped down from the barrel jack input */
159 vdc_vbat_som: regulator-vdc-vbat {
160 compatible = "regulator-fixed";
161 regulator-name = "VBAT_SOM";
162 regulator-min-microvolt = <4200000>;
163 regulator-max-microvolt = <4200000>;
168 /* PMI632 charger out, supplied by VBAT */
169 vph_pwr: regulator-vph-pwr {
170 compatible = "regulator-fixed";
171 regulator-name = "vph_pwr";
172 regulator-min-microvolt = <3700000>;
173 regulator-max-microvolt = <3700000>;
174 vin-supply = <&vdc_vbat_som>;
189 firmware-name = "qcom/qrb4210/a610_zap.mbn";
194 clock-frequency = <400000>;
197 lt9611_codec: hdmi-bridge@2b {
198 compatible = "lontium,lt9611uxc";
200 interrupts-extended = <&tlmm 46 IRQ_TYPE_EDGE_FALLING>;
201 reset-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>;
203 vdd-supply = <&vreg_hdmi_out_1p2>;
204 vcc-supply = <<9611_3v3>;
206 pinctrl-0 = <<9611_irq_pin <9611_rst_pin>;
207 pinctrl-names = "default";
208 #sound-dai-cells = <1>;
211 #address-cells = <1>;
218 remote-endpoint = <&mdss_dsi0_out>;
225 lt9611_out: endpoint {
226 remote-endpoint = <&hdmi_con>;
238 vdda-supply = <&vreg_l18a_1p232>;
243 remote-endpoint = <<9611_a>;
244 data-lanes = <0 1 2 3>;
252 kypd_vol_up_n: kypd-vol-up-n-state {
265 compatible = "usb-c-connector";
271 typec-power-opmode = "default";
275 #address-cells = <1>;
280 pmi632_hs_in: endpoint {
281 remote-endpoint = <&usb_dwc3_hs>;
287 pmi632_ss_in: endpoint {
288 remote-endpoint = <&usb_qmpphy_out>;
296 regulator-min-microamp = <500000>;
297 regulator-max-microamp = <3000000>;
306 linux,code = <KEY_VOLUMEDOWN>;
315 firmware-name = "qcom/qrb4210/adsp.mbn";
321 firmware-name = "qcom/qrb4210/cdsp.mbn";
327 firmware-name = "qcom/qrb4210/modem.mbn";
334 compatible = "qcom,rpm-pm6125-regulators";
336 vdd-s1-supply = <&vph_pwr>;
337 vdd-s2-supply = <&vph_pwr>;
338 vdd-s3-supply = <&vph_pwr>;
339 vdd-s4-supply = <&vph_pwr>;
340 vdd-s5-supply = <&vph_pwr>;
341 vdd-s6-supply = <&vph_pwr>;
342 vdd-s7-supply = <&vph_pwr>;
343 vdd-s8-supply = <&vph_pwr>;
344 vdd-s9-supply = <&vph_pwr>;
345 vdd-s10-supply = <&vph_pwr>;
347 vdd-l1-l7-l17-l18-supply = <&vreg_s6a_1p352>;
348 vdd-l2-l3-l4-supply = <&vreg_s6a_1p352>;
349 vdd-l5-l15-l19-l20-l21-l22-supply = <&vph_pwr>;
350 vdd-l6-l8-supply = <&vreg_s5a_0p848>;
351 vdd-l9-l11-supply = <&vreg_s7a_2p04>;
352 vdd-l10-l13-l14-supply = <&vreg_s7a_2p04>;
353 vdd-l12-l16-supply = <&vreg_s7a_2p04>;
354 vdd-l23-l24-supply = <&vph_pwr>;
357 regulator-min-microvolt = <920000>;
358 regulator-max-microvolt = <1128000>;
362 regulator-min-microvolt = <304000>;
363 regulator-max-microvolt = <1456000>;
367 regulator-min-microvolt = <1280000>;
368 regulator-max-microvolt = <2080000>;
372 regulator-min-microvolt = <952000>;
373 regulator-max-microvolt = <1152000>;
377 regulator-min-microvolt = <488000>;
378 regulator-max-microvolt = <1000000>;
382 regulator-min-microvolt = <1648000>;
383 regulator-max-microvolt = <3056000>;
384 regulator-allow-set-load;
388 regulator-min-microvolt = <576000>;
389 regulator-max-microvolt = <656000>;
393 regulator-min-microvolt = <1200000>;
394 regulator-max-microvolt = <1304000>;
398 regulator-min-microvolt = <640000>;
399 regulator-max-microvolt = <640000>;
403 regulator-min-microvolt = <1800000>;
404 regulator-max-microvolt = <1800000>;
405 regulator-allow-set-load;
409 regulator-min-microvolt = <1704000>;
410 regulator-max-microvolt = <1904000>;
414 regulator-min-microvolt = <1704000>;
415 regulator-max-microvolt = <1952000>;
416 regulator-allow-set-load;
420 regulator-min-microvolt = <1624000>;
421 regulator-max-microvolt = <1984000>;
425 regulator-min-microvolt = <1504000>;
426 regulator-max-microvolt = <1952000>;
430 regulator-min-microvolt = <1704000>;
431 regulator-max-microvolt = <1904000>;
434 vreg_l15a_3p128: l15 {
435 regulator-min-microvolt = <2920000>;
436 regulator-max-microvolt = <3232000>;
440 regulator-min-microvolt = <1704000>;
441 regulator-max-microvolt = <1904000>;
442 regulator-allow-set-load;
446 regulator-min-microvolt = <1152000>;
447 regulator-max-microvolt = <1384000>;
448 regulator-allow-set-load;
451 vreg_l18a_1p232: l18 {
452 regulator-min-microvolt = <1104000>;
453 regulator-max-microvolt = <1312000>;
457 regulator-min-microvolt = <1624000>;
458 regulator-max-microvolt = <3304000>;
462 regulator-min-microvolt = <1624000>;
463 regulator-max-microvolt = <3304000>;
466 vreg_l21a_2p704: l21 {
467 regulator-min-microvolt = <2400000>;
468 regulator-max-microvolt = <3600000>;
471 vreg_l22a_2p96: l22 {
472 regulator-min-microvolt = <2952000>;
473 regulator-max-microvolt = <3304000>;
474 regulator-system-load = <100000>;
475 regulator-allow-set-load;
479 regulator-min-microvolt = <3312000>;
480 regulator-max-microvolt = <3312000>;
481 regulator-allow-set-load;
484 vreg_l24a_2p96: l24 {
485 regulator-min-microvolt = <2704000>;
486 regulator-max-microvolt = <3600000>;
487 regulator-system-load = <100000>;
488 regulator-allow-set-load;
494 pinctrl-0 = <&sdc1_state_on>;
495 pinctrl-1 = <&sdc1_state_off>;
496 pinctrl-names = "default", "sleep";
498 vmmc-supply = <&vreg_l24a_2p96>;
499 vqmmc-supply = <&vreg_l11a_1p8>;
507 cd-gpios = <&tlmm 88 GPIO_ACTIVE_LOW>; /* card detect gpio */
509 pinctrl-0 = <&sdc2_state_on &sdc2_card_det_n>;
510 pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>;
511 pinctrl-names = "default", "sleep";
513 vmmc-supply = <&vreg_l22a_2p96>;
514 vqmmc-supply = <&vreg_l5a_2p96>;
524 compatible = "microchip,mcp2518fd";
526 interrupts-extended = <&tlmm 39 IRQ_TYPE_LEVEL_LOW>;
528 spi-max-frequency = <10000000>;
529 vdd-supply = <&vdc_5v>;
530 xceiver-supply = <&vdc_5v>;
535 clock-frequency = <32000>;
539 gpio-reserved-ranges = <43 2>, <49 1>, <54 1>,
540 <56 3>, <61 2>, <64 1>,
541 <68 1>, <72 8>, <96 1>;
543 uart3_default: uart3-default-state {
547 drive-strength = <2>;
554 drive-strength = <2>;
561 drive-strength = <2>;
568 drive-strength = <2>;
573 uart3_sleep: uart3-sleep-state {
577 drive-strength = <2>;
584 drive-strength = <2>;
591 drive-strength = <2>;
598 drive-strength = <2>;
603 lt9611_rst_pin: lt9611-rst-state {
610 lt9611_irq_pin: lt9611-irq-state {
616 sdc2_card_det_n: sd-card-det-n-state {
619 drive-strength = <2>;
625 interrupts-extended = <&intc GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>,
626 <&tlmm 11 IRQ_TYPE_LEVEL_HIGH>;
627 pinctrl-0 = <&uart3_default>;
628 pinctrl-1 = <&uart3_sleep>;
629 pinctrl-names = "default", "sleep";
633 compatible = "qcom,wcn3988-bt";
635 vddio-supply = <&vreg_l9a_1p8>;
636 vddxo-supply = <&vreg_l16a_1p3>;
637 vddrf-supply = <&vreg_l17a_1p3>;
638 vddch0-supply = <&vreg_l23a_3p3>;
639 enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>;
640 max-speed = <3200000>;
653 remote-endpoint = <&pmi632_hs_in>;
657 vdd-supply = <&vreg_l4a_0p9>;
658 vdda-pll-supply = <&vreg_l12a_1p8>;
659 vdda-phy-dpdm-supply = <&vreg_l15a_3p128>;
665 vdda-phy-supply = <&vreg_l4a_0p9>;
666 vdda-pll-supply = <&vreg_l12a_1p8>;
672 remote-endpoint = <&pmi632_ss_in>;
676 vdd-0.8-cx-mx-supply = <&vreg_l8a_0p664>;
677 vdd-1.8-xo-supply = <&vreg_l16a_1p3>;
678 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
679 vdd-3.3-ch0-supply = <&vreg_l23a_3p3>;
680 qcom,ath10k-calibration-variant = "Thundercomm_RB2";
686 clock-frequency = <19200000>;