1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2020, Linaro Ltd.
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
10 #include "sm8250.dtsi"
11 #include "pm8150.dtsi"
12 #include "pm8150b.dtsi"
13 #include "pm8150l.dtsi"
16 model = "Qualcomm Technologies, Inc. Robotics RB5";
17 compatible = "qcom,qrb5165-rb5", "qcom,sm8250";
25 stdout-path = "serial0:115200n8";
28 /* Fixed crystal oscillator dedicated to MCP2518FD */
30 compatible = "fixed-clock";
32 clock-frequency = <40000000>;
35 dc12v: dc12v-regulator {
36 compatible = "regulator-fixed";
37 regulator-name = "DC12V";
38 regulator-min-microvolt = <12000000>;
39 regulator-max-microvolt = <12000000>;
44 compatible = "gpio-leds";
47 label = "green:user4";
48 gpios = <&pm8150_gpios 10 GPIO_ACTIVE_HIGH>;
49 linux,default-trigger = "panic-indicator";
50 default-state = "off";
54 label = "yellow:wlan";
55 gpios = <&pm8150_gpios 9 GPIO_ACTIVE_HIGH>;
56 linux,default-trigger = "phy0tx";
57 default-state = "off";
62 gpios = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>;
63 linux,default-trigger = "bluetooth-power";
64 default-state = "off";
69 vbat: vbat-regulator {
70 compatible = "regulator-fixed";
71 regulator-name = "VBAT";
72 vin-supply = <&vreg_l11c_3p3>;
73 regulator-min-microvolt = <4200000>;
74 regulator-max-microvolt = <4200000>;
78 vbat_som: vbat-som-regulator {
79 compatible = "regulator-fixed";
80 regulator-name = "VBAT_SOM";
81 vin-supply = <&dc12v>;
82 regulator-min-microvolt = <4200000>;
83 regulator-max-microvolt = <4200000>;
87 vdc_3v3: vdc-3v3-regulator {
88 compatible = "regulator-fixed";
89 regulator-name = "VDC_3V3";
90 vin-supply = <&dc12v>;
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
96 vdc_5v: vdc-5v-regulator {
97 compatible = "regulator-fixed";
98 regulator-name = "VDC_5V";
100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
103 vin-supply = <&vreg_l11c_3p3>;
106 vph_pwr: vph-pwr-regulator {
107 compatible = "regulator-fixed";
108 regulator-name = "vph_pwr";
109 regulator-min-microvolt = <3700000>;
110 regulator-max-microvolt = <3700000>;
114 vreg_s4a_1p8: vreg-s4a-1p8 {
115 compatible = "regulator-fixed";
116 regulator-name = "vreg_s4a_1p8";
117 regulator-min-microvolt = <1800000>;
118 regulator-max-microvolt = <1800000>;
124 pm8009-rpmh-regulators {
125 compatible = "qcom,pm8009-rpmh-regulators";
128 vdd-s1-supply = <&vph_pwr>;
129 vdd-s2-supply = <&vph_pwr>;
130 vdd-l2-supply = <&vreg_s8c_1p3>;
131 vdd-l5-l6-supply = <&vreg_bob>;
132 vdd-l7-supply = <&vreg_s4a_1p8>;
135 regulator-name = "vreg_l1f_1p1";
136 regulator-min-microvolt = <1104000>;
137 regulator-max-microvolt = <1104000>;
138 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
142 regulator-name = "vreg_l2f_1p2";
143 regulator-min-microvolt = <1200000>;
144 regulator-max-microvolt = <1200000>;
145 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
149 regulator-name = "vreg_l6f_2p8";
150 regulator-min-microvolt = <2800000>;
151 regulator-max-microvolt = <2800000>;
152 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
156 regulator-name = "vreg_l7f_1p8";
157 regulator-min-microvolt = <1800000>;
158 regulator-max-microvolt = <1800000>;
159 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
163 pm8150-rpmh-regulators {
164 compatible = "qcom,pm8150-rpmh-regulators";
167 vdd-s1-supply = <&vph_pwr>;
168 vdd-s2-supply = <&vph_pwr>;
169 vdd-s3-supply = <&vph_pwr>;
170 vdd-s4-supply = <&vph_pwr>;
171 vdd-s5-supply = <&vph_pwr>;
172 vdd-s6-supply = <&vph_pwr>;
173 vdd-s7-supply = <&vph_pwr>;
174 vdd-s8-supply = <&vph_pwr>;
175 vdd-s9-supply = <&vph_pwr>;
176 vdd-s10-supply = <&vph_pwr>;
177 vdd-l2-l10-supply = <&vreg_bob>;
178 vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p95>;
179 vdd-l6-l9-supply = <&vreg_s8c_1p3>;
180 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>;
181 vdd-l13-l16-l17-supply = <&vreg_bob>;
184 regulator-name = "vreg_l2a_3p1";
185 regulator-min-microvolt = <3072000>;
186 regulator-max-microvolt = <3072000>;
187 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
191 regulator-name = "vreg_l3a_0p9";
192 regulator-min-microvolt = <928000>;
193 regulator-max-microvolt = <932000>;
194 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
197 vreg_l5a_0p88: ldo5 {
198 regulator-name = "vreg_l5a_0p88";
199 regulator-min-microvolt = <880000>;
200 regulator-max-microvolt = <880000>;
201 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
205 regulator-name = "vreg_l6a_1p2";
206 regulator-min-microvolt = <1200000>;
207 regulator-max-microvolt = <1200000>;
208 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
212 regulator-name = "vreg_l7a_1p7";
213 regulator-min-microvolt = <1704000>;
214 regulator-max-microvolt = <1800000>;
215 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
219 regulator-name = "vreg_l9a_1p2";
220 regulator-min-microvolt = <1200000>;
221 regulator-max-microvolt = <1200000>;
222 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
225 vreg_l10a_1p8: ldo10 {
226 regulator-name = "vreg_l10a_1p8";
227 regulator-min-microvolt = <1800000>;
228 regulator-max-microvolt = <1800000>;
229 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
232 vreg_l12a_1p8: ldo12 {
233 regulator-name = "vreg_l12a_1p8";
234 regulator-min-microvolt = <1800000>;
235 regulator-max-microvolt = <1800000>;
236 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
239 vreg_l13a_ts_3p0: ldo13 {
240 regulator-name = "vreg_l13a_ts_3p0";
241 regulator-min-microvolt = <3008000>;
242 regulator-max-microvolt = <3008000>;
243 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
246 vreg_l14a_1p8: ldo14 {
247 regulator-name = "vreg_l14a_1p8";
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <1880000>;
250 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
253 vreg_l15a_1p8: ldo15 {
254 regulator-name = "vreg_l15a_1p8";
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <1800000>;
257 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
260 vreg_l16a_2p7: ldo16 {
261 regulator-name = "vreg_l16a_2p7";
262 regulator-min-microvolt = <2704000>;
263 regulator-max-microvolt = <2960000>;
264 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
267 vreg_l17a_3p0: ldo17 {
268 regulator-name = "vreg_l17a_3p0";
269 regulator-min-microvolt = <2856000>;
270 regulator-max-microvolt = <3008000>;
271 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
274 vreg_l18a_0p92: ldo18 {
275 regulator-name = "vreg_l18a_0p92";
276 regulator-min-microvolt = <800000>;
277 regulator-max-microvolt = <912000>;
278 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
281 vreg_s5a_1p9: smps5 {
282 regulator-name = "vreg_s5a_1p9";
283 regulator-min-microvolt = <1904000>;
284 regulator-max-microvolt = <2000000>;
285 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
288 vreg_s6a_0p95: smps6 {
289 regulator-name = "vreg_s6a_0p95";
290 regulator-min-microvolt = <920000>;
291 regulator-max-microvolt = <1128000>;
292 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
296 pm8150l-rpmh-regulators {
297 compatible = "qcom,pm8150l-rpmh-regulators";
300 vdd-s1-supply = <&vph_pwr>;
301 vdd-s2-supply = <&vph_pwr>;
302 vdd-s3-supply = <&vph_pwr>;
303 vdd-s4-supply = <&vph_pwr>;
304 vdd-s5-supply = <&vph_pwr>;
305 vdd-s6-supply = <&vph_pwr>;
306 vdd-s7-supply = <&vph_pwr>;
307 vdd-s8-supply = <&vph_pwr>;
308 vdd-l1-l8-supply = <&vreg_s4a_1p8>;
309 vdd-l2-l3-supply = <&vreg_s8c_1p3>;
310 vdd-l4-l5-l6-supply = <&vreg_bob>;
311 vdd-l7-l11-supply = <&vreg_bob>;
312 vdd-l9-l10-supply = <&vreg_bob>;
313 vdd-bob-supply = <&vph_pwr>;
316 regulator-name = "vreg_bob";
317 regulator-min-microvolt = <3008000>;
318 regulator-max-microvolt = <4000000>;
319 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
323 regulator-name = "vreg_l1c_1p8";
324 regulator-min-microvolt = <1800000>;
325 regulator-max-microvolt = <1800000>;
326 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
330 regulator-name = "vreg_l2c_1p2";
331 regulator-min-microvolt = <1200000>;
332 regulator-max-microvolt = <1200000>;
333 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
337 regulator-name = "vreg_l3c_0p8";
338 regulator-min-microvolt = <800000>;
339 regulator-max-microvolt = <800000>;
340 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
344 regulator-name = "vreg_l4c_1p7";
345 regulator-min-microvolt = <1704000>;
346 regulator-max-microvolt = <2928000>;
347 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
351 regulator-name = "vreg_l5c_1p8";
352 regulator-min-microvolt = <1800000>;
353 regulator-max-microvolt = <2928000>;
354 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
357 vreg_l6c_2p96: ldo6 {
358 regulator-name = "vreg_l6c_2p96";
359 regulator-min-microvolt = <1800000>;
360 regulator-max-microvolt = <2960000>;
361 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
364 vreg_l7c_cam_vcm0_2p85: ldo7 {
365 regulator-name = "vreg_l7c_cam_vcm0_2p85";
366 regulator-min-microvolt = <2856000>;
367 regulator-max-microvolt = <3104000>;
368 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
372 regulator-name = "vreg_l8c_1p8";
373 regulator-min-microvolt = <1800000>;
374 regulator-max-microvolt = <1800000>;
375 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
378 vreg_l9c_2p96: ldo9 {
379 regulator-name = "vreg_l9c_2p96";
380 regulator-min-microvolt = <2704000>;
381 regulator-max-microvolt = <2960000>;
382 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
385 vreg_l10c_3p0: ldo10 {
386 regulator-name = "vreg_l10c_3p0";
387 regulator-min-microvolt = <3000000>;
388 regulator-max-microvolt = <3000000>;
389 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
392 vreg_l11c_3p3: ldo11 {
393 regulator-name = "vreg_l11c_3p3";
394 regulator-min-microvolt = <3296000>;
395 regulator-max-microvolt = <3296000>;
396 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
400 vreg_s8c_1p3: smps8 {
401 regulator-name = "vreg_s8c_1p3";
402 regulator-min-microvolt = <1352000>;
403 regulator-max-microvolt = <1352000>;
404 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
424 gpio-reserved-ranges = <1 1>, <3 2>, <7 1>;
432 "PM8250_GPIO7", /* Blue LED */
434 "GPIO_9_P", /* Yellow LED */
435 "GPIO_10_P"; /* Green LED */
444 "HAP_BOOST_EN", /* SOM */
445 "SMB_STAT", /* SOM */
448 "SDM_FORCE_USB_BOOT",
460 "PM_GPIO5", /* HDMI RST_N */
461 "PM_GPIO-A", /* PWM */
488 pinctrl-names = "default";
489 pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
490 vmmc-supply = <&vreg_l9c_2p96>;
491 vqmmc-supply = <&vreg_l6c_2p96>;
492 cd-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
494 /* there seem to be issues with HS400-1.8V mode, so disable it */
505 compatible = "microchip,mcp2518fd";
508 interrupts-extended = <&tlmm 15 IRQ_TYPE_LEVEL_LOW>;
509 spi-max-frequency = <10000000>;
510 vdd-supply = <&vdc_5v>;
511 xceiver-supply = <&vdc_5v>;
516 gpio-reserved-ranges = <40 4>;
528 "GPIO-TT", /* GPIO_10 */
538 "HST_WLAN_EN", /* GPIO_20 */
546 "GPIO_28_CAN_SPI_MISO",
547 "GPIO_29_CAN_SPI_MOSI",
548 "GPIO_30_CAN_SPI_CLK", /* GPIO_30 */
549 "GPIO_31_CAN_SPI_CS",
558 "SPI1_MISO", /* GPIO_40 */
594 "SD_DAT0", /* BOOT_CFG3 */
598 "PCIE0_CLK_REQ_N", /* GPIO_80 */
616 "GPIO-AA", /* CSI4_MCLK */
617 "GPIO-BB", /* CSI5_MCLK */
618 "GPIO-KK", /* GPIO_100 */
648 "WSA1_EN", /* GPIO_130 */
650 "SDM_FORCE_USB_BOOT",
655 "GPIO_137", /* To LT9611_I2S_MCLK_3V3 */
658 "PCM_DO", /* GPIO_140 */
668 "GPIO-V", /* GPIO_150 */
678 "I2C4_SDA", /* GPIO_160 */
688 "GPIO-SS", /* GPIO_170 */
694 "HST_BLE_SNS_UART_TX",
695 "HST_BLE_SNS_UART_RX",
699 sdc2_default_state: sdc2-default {
703 drive-strength = <16>;
709 drive-strength = <16>;
715 drive-strength = <16>;
719 sdc2_card_det_n: sd-card-det-n {
733 vcc-supply = <&vreg_l17a_3p0>;
734 vcc-max-microamp = <800000>;
735 vccq-supply = <&vreg_l6a_1p2>;
736 vccq-max-microamp = <800000>;
737 vccq2-supply = <&vreg_s4a_1p8>;
738 vccq2-max-microamp = <800000>;
744 vdda-phy-supply = <&vreg_l5a_0p88>;
745 vdda-max-microamp = <89900>;
746 vdda-pll-supply = <&vreg_l9a_1p2>;
747 vdda-pll-max-microamp = <18800>;
755 dr_mode = "peripheral";
761 vdda-pll-supply = <&vreg_l5a_0p88>;
762 vdda33-supply = <&vreg_l2a_3p1>;
763 vdda18-supply = <&vreg_l12a_1p8>;
769 vdda-phy-supply = <&vreg_l9a_1p2>;
770 vdda-pll-supply = <&vreg_l18a_0p92>;
784 vdda-pll-supply = <&vreg_l5a_0p88>;
785 vdda33-supply = <&vreg_l2a_3p1>;
786 vdda18-supply = <&vreg_l12a_1p8>;
792 vdda-phy-supply = <&vreg_l9a_1p2>;
793 vdda-pll-supply = <&vreg_l18a_0p92>;