1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (c) 2023, Linaro Ltd
8 #include <dt-bindings/leds/common.h>
9 #include "qcm2290.dtsi"
10 #include "pm2250.dtsi"
13 model = "Qualcomm Technologies, Inc. Robotics RB1";
14 compatible = "qcom,qrb2210-rb1", "qcom,qrb2210", "qcom,qcm2290";
23 stdout-path = "serial0:115200n8";
27 compatible = "gpio-keys";
30 pinctrl-0 = <&key_volp_n>;
31 pinctrl-names = "default";
35 linux,code = <KEY_VOLUMEUP>;
36 gpios = <&tlmm 96 GPIO_ACTIVE_LOW>;
37 debounce-interval = <15>;
44 compatible = "gpio-leds";
48 function = LED_FUNCTION_BLUETOOTH;
49 color = <LED_COLOR_ID_BLUE>;
50 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
51 linux,default-trigger = "bluetooth-power";
52 default-state = "off";
56 label = "green:user0";
57 function = LED_FUNCTION_INDICATOR;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "none";
61 default-state = "off";
66 label = "yellow:wlan";
67 function = LED_FUNCTION_WLAN;
68 color = <LED_COLOR_ID_YELLOW>;
69 gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
70 linux,default-trigger = "phy0tx";
71 default-state = "off";
75 vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 {
76 compatible = "regulator-fixed";
77 regulator-name = "VREG_HDMI_OUT_1P2";
78 regulator-min-microvolt = <1200000>;
79 regulator-max-microvolt = <1200000>;
80 vin-supply = <&vdc_1v2>;
85 lt9611_3v3: regulator-lt9611-3v3 {
86 compatible = "regulator-fixed";
87 regulator-name = "LT9611_3V3";
88 regulator-min-microvolt = <3300000>;
89 regulator-max-microvolt = <3300000>;
90 vin-supply = <&vdc_3v3>;
95 /* Main barrel jack input */
96 vdc_12v: regulator-vdc-12v {
97 compatible = "regulator-fixed";
98 regulator-name = "DC_12V";
99 regulator-min-microvolt = <12000000>;
100 regulator-max-microvolt = <12000000>;
105 /* 1.2V supply stepped down from the barrel jack input */
106 vdc_1v2: regulator-vdc-1v2 {
107 compatible = "regulator-fixed";
108 regulator-name = "VDC_1V2";
109 regulator-min-microvolt = <1200000>;
110 regulator-max-microvolt = <1200000>;
111 vin-supply = <&vdc_12v>;
116 /* 3.3V supply stepped down from the barrel jack input */
117 vdc_3v3: regulator-vdc-3v3 {
118 compatible = "regulator-fixed";
119 regulator-name = "VDC_3V3";
120 regulator-min-microvolt = <3300000>;
121 regulator-max-microvolt = <3300000>;
122 vin-supply = <&vdc_12v>;
127 /* 5V supply stepped down from the barrel jack input */
128 vdc_5v: regulator-vdc-5v {
129 compatible = "regulator-fixed";
130 regulator-name = "VDC_5V";
132 regulator-min-microvolt = <5000000>;
133 regulator-max-microvolt = <5000000>;
138 /* "Battery" voltage for the SoM, stepped down from the barrel jack input */
139 vdc_vbat_som: regulator-vdc-vbat {
140 compatible = "regulator-fixed";
141 regulator-name = "VBAT_SOM";
142 regulator-min-microvolt = <4200000>;
143 regulator-max-microvolt = <4200000>;
148 /* PM2250 charger out, supplied by VBAT */
149 vph_pwr: regulator-vph-pwr {
150 compatible = "regulator-fixed";
151 regulator-name = "vph_pwr";
152 regulator-min-microvolt = <3700000>;
153 regulator-max-microvolt = <3700000>;
154 vin-supply = <&vdc_vbat_som>;
162 linux,code = <KEY_VOLUMEDOWN>;
171 firmware-name = "/*(DEBLOBBED)*/";
176 firmware-name = "/*(DEBLOBBED)*/";
182 compatible = "qcom,rpm-pm2250-regulators";
183 vdd_s3-supply = <&vph_pwr>;
184 vdd_s4-supply = <&vph_pwr>;
185 vdd_l1_l2_l3_l5_l6_l7_l8_l9_l10_l11_l12-supply = <&pm2250_s3>;
186 vdd_l4_l17_l18_l19_l20_l21_l22-supply = <&vph_pwr>;
187 vdd_l13_l14_l15_l16-supply = <&pm2250_s4>;
195 /* 0.4V-1.6625V -> 1.3V (Power tree requirements) */
196 regulator-min-microvolt = <1352000>;
197 regulator-max-microvolt = <1352000>;
202 /* 1.2V-2.35V -> 2.05V (Power tree requirements) */
203 regulator-min-microvolt = <2072000>;
204 regulator-max-microvolt = <2072000>;
212 regulator-min-microvolt = <1136000>;
213 regulator-max-microvolt = <1136000>;
220 regulator-min-microvolt = <616000>;
221 regulator-max-microvolt = <616000>;
227 /* max = 3.05V -> max = 2.7 to disable 3V signaling (SDHCI2) */
228 regulator-min-microvolt = <1800000>;
229 regulator-max-microvolt = <2700000>;
230 regulator-allow-set-load;
235 regulator-min-microvolt = <1232000>;
236 regulator-max-microvolt = <1232000>;
237 regulator-allow-set-load;
243 regulator-min-microvolt = <928000>;
244 regulator-max-microvolt = <928000>;
251 regulator-min-microvolt = <664000>;
252 regulator-max-microvolt = <664000>;
262 regulator-min-microvolt = <1304000>;
263 regulator-max-microvolt = <1304000>;
268 regulator-min-microvolt = <1000000>;
269 regulator-max-microvolt = <1000000>;
275 regulator-min-microvolt = <928000>;
276 regulator-max-microvolt = <928000>;
277 regulator-allow-set-load;
282 /* USB/QFPROM/PLLs */
283 regulator-min-microvolt = <1800000>;
284 regulator-max-microvolt = <1800000>;
285 regulator-allow-set-load;
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-allow-set-load;
294 /* Broken hardware, never turn it off! */
299 /* WCD/DSI/BT VDDIO */
300 regulator-min-microvolt = <1800000>;
301 regulator-max-microvolt = <1800000>;
302 regulator-allow-set-load;
309 regulator-min-microvolt = <1800000>;
310 regulator-max-microvolt = <1800000>;
315 regulator-min-microvolt = <3000000>;
316 regulator-max-microvolt = <3000000>;
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <1800000>;
327 regulator-min-microvolt = <1800000>;
328 regulator-max-microvolt = <1800000>;
333 regulator-min-microvolt = <2400000>;
334 regulator-max-microvolt = <3600000>;
335 regulator-allow-set-load;
340 regulator-min-microvolt = <2960000>;
341 regulator-max-microvolt = <3300000>;
342 regulator-allow-set-load;
348 regulator-min-microvolt = <3312000>;
349 regulator-max-microvolt = <3312000>;
355 vmmc-supply = <&pm2250_l20>;
356 vqmmc-supply = <&pm2250_l14>;
357 pinctrl-0 = <&sdc1_state_on>;
358 pinctrl-1 = <&sdc1_state_off>;
359 pinctrl-names = "default", "sleep";
368 vmmc-supply = <&pm2250_l21>;
369 vqmmc-supply = <&pm2250_l4>;
370 cd-gpios = <&tlmm 88 GPIO_ACTIVE_LOW>;
371 pinctrl-0 = <&sdc2_state_on &sd_det_in_on>;
372 pinctrl-1 = <&sdc2_state_off &sd_det_in_off>;
373 pinctrl-names = "default", "sleep";
380 sd_det_in_on: sd-det-in-on-state {
383 drive-strength = <2>;
387 sd_det_in_off: sd-det-in-off-state {
390 drive-strength = <2>;
394 key_volp_n: key-volp-n-state {
402 /* UART connected to the Micro-USB port via a FTDI chip */
404 compatible = "qcom,geni-debug-uart";
413 vdda-phy-supply = <&pm2250_l12>;
414 vdda-pll-supply = <&pm2250_l13>;
419 vdd-supply = <&pm2250_l12>;
420 vdda-pll-supply = <&pm2250_l13>;
421 vdda-phy-dpdm-supply = <&pm2250_l21>;
426 vdd-0.8-cx-mx-supply = <&pm2250_l7>;
427 vdd-1.8-xo-supply = <&pm2250_l13>;
428 vdd-1.3-rfa-supply = <&pm2250_l10>;
429 vdd-3.3-ch0-supply = <&pm2250_l22>;
434 clock-frequency = <38400000>;