| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) |
| 2 |
/* |
| 3 |
* Copyright (c) 2023, Linaro Ltd |
| 4 |
*/ |
| 5 |
|
| 6 |
/dts-v1/; |
| 7 |
|
| 8 |
#include <dt-bindings/gpio/gpio.h> |
| 9 |
#include <dt-bindings/leds/common.h> |
| 10 |
#include "agatti.dtsi" |
| 11 |
#include "pm4125.dtsi" |
| 12 |
|
| 13 |
/ { |
| 14 |
model = "Qualcomm Technologies, Inc. Robotics RB1"; |
| 15 |
compatible = "qcom,qrb2210-rb1", "qcom,qrb2210", "qcom,qcm2290"; |
| 16 |
|
| 17 |
aliases { |
| 18 |
serial0 = &uart4; |
| 19 |
serial1 = &uart3; |
| 20 |
sdhc1 = &sdhc_1; |
| 21 |
sdhc2 = &sdhc_2; |
| 22 |
}; |
| 23 |
|
| 24 |
chosen { |
| 25 |
stdout-path = "serial0:115200n8"; |
| 26 |
}; |
| 27 |
|
| 28 |
clocks { |
| 29 |
clk40m: can-clk { |
| 30 |
compatible = "fixed-clock"; |
| 31 |
clock-frequency = <40000000>; |
| 32 |
#clock-cells = <0>; |
| 33 |
}; |
| 34 |
}; |
| 35 |
|
| 36 |
gpio-keys { |
| 37 |
compatible = "gpio-keys"; |
| 38 |
label = "gpio-keys"; |
| 39 |
|
| 40 |
pinctrl-0 = <&key_volp_n>; |
| 41 |
pinctrl-names = "default"; |
| 42 |
|
| 43 |
key-volume-up { |
| 44 |
label = "Volume Up"; |
| 45 |
linux,code = <KEY_VOLUMEUP>; |
| 46 |
gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; |
| 47 |
debounce-interval = <15>; |
| 48 |
linux,can-disable; |
| 49 |
wakeup-source; |
| 50 |
}; |
| 51 |
}; |
| 52 |
|
| 53 |
hdmi-connector { |
| 54 |
compatible = "hdmi-connector"; |
| 55 |
type = "a"; |
| 56 |
|
| 57 |
port { |
| 58 |
hdmi_con: endpoint { |
| 59 |
remote-endpoint = <<9611_out>; |
| 60 |
}; |
| 61 |
}; |
| 62 |
}; |
| 63 |
|
| 64 |
i2c2_gpio: i2c { |
| 65 |
compatible = "i2c-gpio"; |
| 66 |
|
| 67 |
sda-gpios = <&tlmm 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 68 |
scl-gpios = <&tlmm 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
| 69 |
#address-cells = <1>; |
| 70 |
#size-cells = <0>; |
| 71 |
|
| 72 |
status = "disabled"; |
| 73 |
}; |
| 74 |
|
| 75 |
leds { |
| 76 |
compatible = "gpio-leds"; |
| 77 |
|
| 78 |
led-bt { |
| 79 |
label = "blue:bt"; |
| 80 |
function = LED_FUNCTION_BLUETOOTH; |
| 81 |
color = <LED_COLOR_ID_BLUE>; |
| 82 |
gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; |
| 83 |
linux,default-trigger = "bluetooth-power"; |
| 84 |
default-state = "off"; |
| 85 |
}; |
| 86 |
|
| 87 |
led-user0 { |
| 88 |
label = "green:user0"; |
| 89 |
function = LED_FUNCTION_INDICATOR; |
| 90 |
color = <LED_COLOR_ID_GREEN>; |
| 91 |
gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>; |
| 92 |
linux,default-trigger = "none"; |
| 93 |
default-state = "off"; |
| 94 |
panic-indicator; |
| 95 |
}; |
| 96 |
|
| 97 |
led-wlan { |
| 98 |
label = "yellow:wlan"; |
| 99 |
function = LED_FUNCTION_WLAN; |
| 100 |
color = <LED_COLOR_ID_YELLOW>; |
| 101 |
gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; |
| 102 |
linux,default-trigger = "phy0tx"; |
| 103 |
default-state = "off"; |
| 104 |
}; |
| 105 |
}; |
| 106 |
|
| 107 |
vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { |
| 108 |
compatible = "regulator-fixed"; |
| 109 |
regulator-name = "VREG_HDMI_OUT_1P2"; |
| 110 |
regulator-min-microvolt = <1200000>; |
| 111 |
regulator-max-microvolt = <1200000>; |
| 112 |
vin-supply = <&vdc_1v2>; |
| 113 |
regulator-always-on; |
| 114 |
regulator-boot-on; |
| 115 |
}; |
| 116 |
|
| 117 |
lt9611_3v3: regulator-lt9611-3v3 { |
| 118 |
compatible = "regulator-fixed"; |
| 119 |
regulator-name = "LT9611_3V3"; |
| 120 |
regulator-min-microvolt = <3300000>; |
| 121 |
regulator-max-microvolt = <3300000>; |
| 122 |
vin-supply = <&vdc_3v3>; |
| 123 |
regulator-always-on; |
| 124 |
regulator-boot-on; |
| 125 |
}; |
| 126 |
|
| 127 |
/* Main barrel jack input */ |
| 128 |
vdc_12v: regulator-vdc-12v { |
| 129 |
compatible = "regulator-fixed"; |
| 130 |
regulator-name = "DC_12V"; |
| 131 |
regulator-min-microvolt = <12000000>; |
| 132 |
regulator-max-microvolt = <12000000>; |
| 133 |
regulator-always-on; |
| 134 |
regulator-boot-on; |
| 135 |
}; |
| 136 |
|
| 137 |
/* 1.2V supply stepped down from the barrel jack input */ |
| 138 |
vdc_1v2: regulator-vdc-1v2 { |
| 139 |
compatible = "regulator-fixed"; |
| 140 |
regulator-name = "VDC_1V2"; |
| 141 |
regulator-min-microvolt = <1200000>; |
| 142 |
regulator-max-microvolt = <1200000>; |
| 143 |
vin-supply = <&vdc_12v>; |
| 144 |
regulator-always-on; |
| 145 |
regulator-boot-on; |
| 146 |
}; |
| 147 |
|
| 148 |
/* 3.3V supply stepped down from the barrel jack input */ |
| 149 |
vdc_3v3: regulator-vdc-3v3 { |
| 150 |
compatible = "regulator-fixed"; |
| 151 |
regulator-name = "VDC_3V3"; |
| 152 |
regulator-min-microvolt = <3300000>; |
| 153 |
regulator-max-microvolt = <3300000>; |
| 154 |
vin-supply = <&vdc_12v>; |
| 155 |
regulator-always-on; |
| 156 |
regulator-boot-on; |
| 157 |
}; |
| 158 |
|
| 159 |
/* 5V supply stepped down from the barrel jack input */ |
| 160 |
vdc_5v: regulator-vdc-5v { |
| 161 |
compatible = "regulator-fixed"; |
| 162 |
regulator-name = "VDC_5V"; |
| 163 |
|
| 164 |
regulator-min-microvolt = <5000000>; |
| 165 |
regulator-max-microvolt = <5000000>; |
| 166 |
regulator-always-on; |
| 167 |
regulator-boot-on; |
| 168 |
}; |
| 169 |
|
| 170 |
/* "Battery" voltage for the SoM, stepped down from the barrel jack input */ |
| 171 |
vdc_vbat_som: regulator-vdc-vbat { |
| 172 |
compatible = "regulator-fixed"; |
| 173 |
regulator-name = "VBAT_SOM"; |
| 174 |
regulator-min-microvolt = <4200000>; |
| 175 |
regulator-max-microvolt = <4200000>; |
| 176 |
regulator-always-on; |
| 177 |
regulator-boot-on; |
| 178 |
}; |
| 179 |
|
| 180 |
/* PM2250 charger out, supplied by VBAT */ |
| 181 |
vph_pwr: regulator-vph-pwr { |
| 182 |
compatible = "regulator-fixed"; |
| 183 |
regulator-name = "vph_pwr"; |
| 184 |
regulator-min-microvolt = <3700000>; |
| 185 |
regulator-max-microvolt = <3700000>; |
| 186 |
vin-supply = <&vdc_vbat_som>; |
| 187 |
|
| 188 |
regulator-always-on; |
| 189 |
regulator-boot-on; |
| 190 |
}; |
| 191 |
|
| 192 |
sound { |
| 193 |
compatible = "qcom,qrb2210-sndcard"; |
| 194 |
pinctrl-0 = <&lpi_i2s2_active>; |
| 195 |
pinctrl-names = "default"; |
| 196 |
model = "Qualcomm-RB1-WSA8815-Speaker-DMIC0"; |
| 197 |
|
| 198 |
mm1-dai-link { |
| 199 |
link-name = "MultiMedia1"; |
| 200 |
|
| 201 |
cpu { |
| 202 |
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; |
| 203 |
}; |
| 204 |
}; |
| 205 |
|
| 206 |
mm2-dai-link { |
| 207 |
link-name = "MultiMedia2"; |
| 208 |
|
| 209 |
cpu { |
| 210 |
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; |
| 211 |
}; |
| 212 |
}; |
| 213 |
|
| 214 |
mm3-dai-link { |
| 215 |
link-name = "MultiMedia3"; |
| 216 |
|
| 217 |
cpu { |
| 218 |
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; |
| 219 |
}; |
| 220 |
}; |
| 221 |
|
| 222 |
hdmi-i2s-dai-link { |
| 223 |
link-name = "HDMI/I2S Playback"; |
| 224 |
|
| 225 |
codec { |
| 226 |
sound-dai = <<9611_codec 0>; |
| 227 |
}; |
| 228 |
|
| 229 |
cpu { |
| 230 |
sound-dai = <&q6afedai SECONDARY_MI2S_RX>; |
| 231 |
}; |
| 232 |
|
| 233 |
platform { |
| 234 |
sound-dai = <&q6routing>; |
| 235 |
}; |
| 236 |
}; |
| 237 |
}; |
| 238 |
}; |
| 239 |
|
| 240 |
&cpu_pd0 { |
| 241 |
/delete-property/ power-domains; |
| 242 |
}; |
| 243 |
|
| 244 |
&cpu_pd1 { |
| 245 |
/delete-property/ power-domains; |
| 246 |
}; |
| 247 |
|
| 248 |
&cpu_pd2 { |
| 249 |
/delete-property/ power-domains; |
| 250 |
}; |
| 251 |
|
| 252 |
&cpu_pd3 { |
| 253 |
/delete-property/ power-domains; |
| 254 |
}; |
| 255 |
|
| 256 |
/delete-node/ &cluster_pd; |
| 257 |
|
| 258 |
&gpi_dma0 { |
| 259 |
status = "okay"; |
| 260 |
}; |
| 261 |
|
| 262 |
&gpu { |
| 263 |
status = "okay"; |
| 264 |
}; |
| 265 |
|
| 266 |
&gpu_zap_shader { |
| 267 |
firmware-name = "qcom/qcm2290/a702_zap.mbn"; |
| 268 |
}; |
| 269 |
|
| 270 |
&i2c1 { |
| 271 |
clock-frequency = <400000>; |
| 272 |
|
| 273 |
status = "okay"; |
| 274 |
|
| 275 |
pm8008: pmic@8 { |
| 276 |
compatible = "qcom,pm8008"; |
| 277 |
reg = <0x8>; |
| 278 |
|
| 279 |
interrupts-extended = <&tlmm 25 IRQ_TYPE_EDGE_RISING>; |
| 280 |
reset-gpios = <&tlmm 26 GPIO_ACTIVE_LOW>; |
| 281 |
|
| 282 |
vdd-l1-l2-supply = <&pm4125_s3>; |
| 283 |
vdd-l3-l4-supply = <&vph_pwr>; |
| 284 |
vdd-l5-supply = <&vph_pwr>; |
| 285 |
vdd-l6-supply = <&vph_pwr>; |
| 286 |
vdd-l7-supply = <&vph_pwr>; |
| 287 |
|
| 288 |
gpio-controller; |
| 289 |
#gpio-cells = <2>; |
| 290 |
gpio-ranges = <&pm8008 0 0 2>; |
| 291 |
|
| 292 |
interrupt-controller; |
| 293 |
#interrupt-cells = <2>; |
| 294 |
|
| 295 |
#thermal-sensor-cells = <0>; |
| 296 |
|
| 297 |
status = "disabled"; |
| 298 |
|
| 299 |
regulators { |
| 300 |
vreg_l1p: ldo1 { |
| 301 |
regulator-name = "vreg_l1p"; |
| 302 |
regulator-min-microvolt = <528000>; |
| 303 |
regulator-max-microvolt = <1200000>; |
| 304 |
}; |
| 305 |
|
| 306 |
vreg_l2p: ldo2 { |
| 307 |
regulator-name = "vreg_l2p"; |
| 308 |
regulator-min-microvolt = <528000>; |
| 309 |
regulator-max-microvolt = <1200000>; |
| 310 |
}; |
| 311 |
|
| 312 |
vreg_l3p: ldo3 { |
| 313 |
regulator-name = "vreg_l3p"; |
| 314 |
regulator-min-microvolt = <1500000>; |
| 315 |
regulator-max-microvolt = <3400000>; |
| 316 |
}; |
| 317 |
|
| 318 |
vreg_l4p: ldo4 { |
| 319 |
regulator-name = "vreg_l4p"; |
| 320 |
regulator-min-microvolt = <1500000>; |
| 321 |
regulator-max-microvolt = <3404000>; |
| 322 |
}; |
| 323 |
|
| 324 |
vreg_l5p: ldo5 { |
| 325 |
regulator-name = "vreg_l5p"; |
| 326 |
regulator-min-microvolt = <1500000>; |
| 327 |
regulator-max-microvolt = <3400000>; |
| 328 |
}; |
| 329 |
|
| 330 |
vreg_l6p: ldo6 { |
| 331 |
regulator-name = "vreg_l6p"; |
| 332 |
regulator-min-microvolt = <1500000>; |
| 333 |
regulator-max-microvolt = <3400000>; |
| 334 |
}; |
| 335 |
|
| 336 |
vreg_l7p: ldo7 { |
| 337 |
regulator-name = "vreg_l7p"; |
| 338 |
regulator-min-microvolt = <1500000>; |
| 339 |
regulator-max-microvolt = <3400000>; |
| 340 |
}; |
| 341 |
}; |
| 342 |
}; |
| 343 |
}; |
| 344 |
|
| 345 |
&i2c2_gpio { |
| 346 |
clock-frequency = <400000>; |
| 347 |
status = "okay"; |
| 348 |
|
| 349 |
lt9611_codec: hdmi-bridge@2b { |
| 350 |
compatible = "lontium,lt9611uxc"; |
| 351 |
reg = <0x2b>; |
| 352 |
interrupts-extended = <&tlmm 46 IRQ_TYPE_EDGE_FALLING>; |
| 353 |
reset-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>; |
| 354 |
|
| 355 |
vdd-supply = <&vreg_hdmi_out_1p2>; |
| 356 |
vcc-supply = <<9611_3v3>; |
| 357 |
|
| 358 |
pinctrl-0 = <<9611_irq_pin <9611_rst_pin>; |
| 359 |
pinctrl-names = "default"; |
| 360 |
#sound-dai-cells = <1>; |
| 361 |
|
| 362 |
ports { |
| 363 |
#address-cells = <1>; |
| 364 |
#size-cells = <0>; |
| 365 |
|
| 366 |
port@0 { |
| 367 |
reg = <0>; |
| 368 |
|
| 369 |
lt9611_a: endpoint { |
| 370 |
remote-endpoint = <&mdss_dsi0_out>; |
| 371 |
}; |
| 372 |
}; |
| 373 |
|
| 374 |
port@2 { |
| 375 |
reg = <2>; |
| 376 |
|
| 377 |
lt9611_out: endpoint { |
| 378 |
remote-endpoint = <&hdmi_con>; |
| 379 |
}; |
| 380 |
}; |
| 381 |
}; |
| 382 |
}; |
| 383 |
}; |
| 384 |
|
| 385 |
&mdss { |
| 386 |
status = "okay"; |
| 387 |
}; |
| 388 |
|
| 389 |
&mdss_dsi0 { |
| 390 |
vdda-supply = <&pm4125_l5>; |
| 391 |
status = "okay"; |
| 392 |
}; |
| 393 |
|
| 394 |
&mdss_dsi0_out { |
| 395 |
remote-endpoint = <<9611_a>; |
| 396 |
data-lanes = <0 1 2 3>; |
| 397 |
}; |
| 398 |
|
| 399 |
&mdss_dsi0_phy { |
| 400 |
status = "okay"; |
| 401 |
}; |
| 402 |
|
| 403 |
&pm4125_resin { |
| 404 |
linux,code = <KEY_VOLUMEDOWN>; |
| 405 |
status = "okay"; |
| 406 |
}; |
| 407 |
|
| 408 |
&pm4125_typec { |
| 409 |
status = "okay"; |
| 410 |
|
| 411 |
connector { |
| 412 |
compatible = "usb-c-connector"; |
| 413 |
|
| 414 |
power-role = "dual"; |
| 415 |
data-role = "dual"; |
| 416 |
self-powered; |
| 417 |
|
| 418 |
typec-power-opmode = "default"; |
| 419 |
pd-disable; |
| 420 |
|
| 421 |
ports { |
| 422 |
#address-cells = <1>; |
| 423 |
#size-cells = <0>; |
| 424 |
|
| 425 |
port@0 { |
| 426 |
reg = <0>; |
| 427 |
pm4125_hs_in: endpoint { |
| 428 |
remote-endpoint = <&usb_dwc3_hs>; |
| 429 |
}; |
| 430 |
}; |
| 431 |
|
| 432 |
port@1 { |
| 433 |
reg = <1>; |
| 434 |
pm4125_ss_in: endpoint { |
| 435 |
remote-endpoint = <&usb_qmpphy_out>; |
| 436 |
}; |
| 437 |
}; |
| 438 |
}; |
| 439 |
}; |
| 440 |
}; |
| 441 |
|
| 442 |
&pm4125_vbus { |
| 443 |
regulator-min-microamp = <500000>; |
| 444 |
regulator-max-microamp = <500000>; |
| 445 |
status = "okay"; |
| 446 |
}; |
| 447 |
|
| 448 |
/* SECONDARY I2S uses 1 I2S SD Line for audio on LT9611UXC HDMI Bridge */ |
| 449 |
&q6afedai { |
| 450 |
dai@18 { |
| 451 |
reg = <SECONDARY_MI2S_RX>; |
| 452 |
qcom,sd-lines = <0>; |
| 453 |
}; |
| 454 |
}; |
| 455 |
|
| 456 |
&qupv3_id_0 { |
| 457 |
status = "okay"; |
| 458 |
}; |
| 459 |
|
| 460 |
&remoteproc_adsp { |
| 461 |
firmware-name = "qcom/qcm2290/adsp.mbn"; |
| 462 |
status = "okay"; |
| 463 |
}; |
| 464 |
|
| 465 |
&remoteproc_mpss { |
| 466 |
firmware-name = "qcom/qcm2290/modem.mbn"; |
| 467 |
status = "okay"; |
| 468 |
}; |
| 469 |
|
| 470 |
&rpm_requests { |
| 471 |
regulators { |
| 472 |
compatible = "qcom,rpm-pm2250-regulators"; |
| 473 |
vdd_s3-supply = <&vph_pwr>; |
| 474 |
vdd_s4-supply = <&vph_pwr>; |
| 475 |
vdd_l1_l2_l3_l5_l6_l7_l8_l9_l10_l11_l12-supply = <&pm4125_s3>; |
| 476 |
vdd_l4_l17_l18_l19_l20_l21_l22-supply = <&vph_pwr>; |
| 477 |
vdd_l13_l14_l15_l16-supply = <&pm4125_s4>; |
| 478 |
|
| 479 |
/* |
| 480 |
* S1 - VDD_APC |
| 481 |
* S2 - VDD_CX |
| 482 |
*/ |
| 483 |
|
| 484 |
pm4125_s3: s3 { |
| 485 |
/* 0.4V-1.6625V -> 1.3V (Power tree requirements) */ |
| 486 |
regulator-min-microvolt = <1352000>; |
| 487 |
regulator-max-microvolt = <1352000>; |
| 488 |
regulator-boot-on; |
| 489 |
}; |
| 490 |
|
| 491 |
pm4125_s4: s4 { |
| 492 |
/* 1.2V-2.35V -> 2.05V (Power tree requirements) */ |
| 493 |
regulator-min-microvolt = <2072000>; |
| 494 |
regulator-max-microvolt = <2072000>; |
| 495 |
regulator-boot-on; |
| 496 |
}; |
| 497 |
|
| 498 |
/* L1 - VDD_MX */ |
| 499 |
|
| 500 |
pm4125_l2: l2 { |
| 501 |
/* LPDDR4X VDD2 */ |
| 502 |
regulator-min-microvolt = <1136000>; |
| 503 |
regulator-max-microvolt = <1136000>; |
| 504 |
regulator-always-on; |
| 505 |
regulator-boot-on; |
| 506 |
}; |
| 507 |
|
| 508 |
pm4125_l3: l3 { |
| 509 |
/* LPDDR4X VDDQ */ |
| 510 |
regulator-min-microvolt = <616000>; |
| 511 |
regulator-max-microvolt = <616000>; |
| 512 |
regulator-always-on; |
| 513 |
regulator-boot-on; |
| 514 |
}; |
| 515 |
|
| 516 |
pm4125_l4: l4 { |
| 517 |
/* max = 3.05V -> max = 2.7 to disable 3V signaling (SDHCI2) */ |
| 518 |
regulator-min-microvolt = <1800000>; |
| 519 |
regulator-max-microvolt = <2700000>; |
| 520 |
regulator-allow-set-load; |
| 521 |
}; |
| 522 |
|
| 523 |
pm4125_l5: l5 { |
| 524 |
/* CSI/DSI */ |
| 525 |
regulator-min-microvolt = <1232000>; |
| 526 |
regulator-max-microvolt = <1232000>; |
| 527 |
regulator-allow-set-load; |
| 528 |
regulator-boot-on; |
| 529 |
}; |
| 530 |
|
| 531 |
pm4125_l6: l6 { |
| 532 |
/* DRAM PLL */ |
| 533 |
regulator-min-microvolt = <928000>; |
| 534 |
regulator-max-microvolt = <928000>; |
| 535 |
regulator-always-on; |
| 536 |
regulator-boot-on; |
| 537 |
}; |
| 538 |
|
| 539 |
pm4125_l7: l7 { |
| 540 |
/* Wi-Fi CX/MX */ |
| 541 |
regulator-min-microvolt = <664000>; |
| 542 |
regulator-max-microvolt = <664000>; |
| 543 |
}; |
| 544 |
|
| 545 |
/* |
| 546 |
* L8 - VDD_LPI_CX |
| 547 |
* L9 - VDD_LPI_MX |
| 548 |
*/ |
| 549 |
|
| 550 |
pm4125_l10: l10 { |
| 551 |
/* Wi-Fi RFA */ |
| 552 |
regulator-min-microvolt = <1304000>; |
| 553 |
regulator-max-microvolt = <1304000>; |
| 554 |
}; |
| 555 |
|
| 556 |
pm4125_l11: l11 { |
| 557 |
/* GPS RF1 */ |
| 558 |
regulator-min-microvolt = <1000000>; |
| 559 |
regulator-max-microvolt = <1000000>; |
| 560 |
regulator-boot-on; |
| 561 |
}; |
| 562 |
|
| 563 |
pm4125_l12: l12 { |
| 564 |
/* USB PHYs */ |
| 565 |
regulator-min-microvolt = <928000>; |
| 566 |
regulator-max-microvolt = <928000>; |
| 567 |
regulator-allow-set-load; |
| 568 |
regulator-boot-on; |
| 569 |
}; |
| 570 |
|
| 571 |
pm4125_l13: l13 { |
| 572 |
/* USB/QFPROM/PLLs */ |
| 573 |
regulator-min-microvolt = <1800000>; |
| 574 |
regulator-max-microvolt = <1800000>; |
| 575 |
regulator-allow-set-load; |
| 576 |
regulator-boot-on; |
| 577 |
}; |
| 578 |
|
| 579 |
pm4125_l14: l14 { |
| 580 |
/* SDHCI1 VQMMC */ |
| 581 |
regulator-min-microvolt = <1800000>; |
| 582 |
regulator-max-microvolt = <1800000>; |
| 583 |
regulator-allow-set-load; |
| 584 |
/* Broken hardware, never turn it off! */ |
| 585 |
regulator-always-on; |
| 586 |
}; |
| 587 |
|
| 588 |
pm4125_l15: l15 { |
| 589 |
/* WCD/DSI/BT VDDIO */ |
| 590 |
regulator-min-microvolt = <1800000>; |
| 591 |
regulator-max-microvolt = <1800000>; |
| 592 |
regulator-allow-set-load; |
| 593 |
regulator-always-on; |
| 594 |
regulator-boot-on; |
| 595 |
}; |
| 596 |
|
| 597 |
pm4125_l16: l16 { |
| 598 |
/* GPS RF2 */ |
| 599 |
regulator-min-microvolt = <1800000>; |
| 600 |
regulator-max-microvolt = <1800000>; |
| 601 |
regulator-boot-on; |
| 602 |
}; |
| 603 |
|
| 604 |
pm4125_l17: l17 { |
| 605 |
regulator-min-microvolt = <3000000>; |
| 606 |
regulator-max-microvolt = <3000000>; |
| 607 |
}; |
| 608 |
|
| 609 |
pm4125_l18: l18 { |
| 610 |
/* VDD_PXn */ |
| 611 |
regulator-min-microvolt = <1800000>; |
| 612 |
regulator-max-microvolt = <1800000>; |
| 613 |
}; |
| 614 |
|
| 615 |
pm4125_l19: l19 { |
| 616 |
/* VDD_PXn */ |
| 617 |
regulator-min-microvolt = <1800000>; |
| 618 |
regulator-max-microvolt = <1800000>; |
| 619 |
}; |
| 620 |
|
| 621 |
pm4125_l20: l20 { |
| 622 |
/* SDHCI1 VMMC */ |
| 623 |
regulator-min-microvolt = <2400000>; |
| 624 |
regulator-max-microvolt = <3600000>; |
| 625 |
regulator-allow-set-load; |
| 626 |
}; |
| 627 |
|
| 628 |
pm4125_l21: l21 { |
| 629 |
/* SDHCI2 VMMC */ |
| 630 |
regulator-min-microvolt = <2960000>; |
| 631 |
regulator-max-microvolt = <3300000>; |
| 632 |
regulator-allow-set-load; |
| 633 |
regulator-boot-on; |
| 634 |
}; |
| 635 |
|
| 636 |
pm4125_l22: l22 { |
| 637 |
/* Wi-Fi */ |
| 638 |
regulator-min-microvolt = <3312000>; |
| 639 |
regulator-max-microvolt = <3312000>; |
| 640 |
}; |
| 641 |
}; |
| 642 |
}; |
| 643 |
|
| 644 |
&sdhc_1 { |
| 645 |
vmmc-supply = <&pm4125_l20>; |
| 646 |
vqmmc-supply = <&pm4125_l14>; |
| 647 |
pinctrl-0 = <&sdc1_state_on>; |
| 648 |
pinctrl-1 = <&sdc1_state_off>; |
| 649 |
pinctrl-names = "default", "sleep"; |
| 650 |
non-removable; |
| 651 |
supports-cqe; |
| 652 |
no-sdio; |
| 653 |
no-sd; |
| 654 |
status = "okay"; |
| 655 |
}; |
| 656 |
|
| 657 |
&sdhc_2 { |
| 658 |
vmmc-supply = <&pm4125_l21>; |
| 659 |
vqmmc-supply = <&pm4125_l4>; |
| 660 |
cd-gpios = <&tlmm 88 GPIO_ACTIVE_LOW>; |
| 661 |
pinctrl-0 = <&sdc2_state_on &sd_det_in_on>; |
| 662 |
pinctrl-1 = <&sdc2_state_off &sd_det_in_off>; |
| 663 |
pinctrl-names = "default", "sleep"; |
| 664 |
no-sdio; |
| 665 |
no-mmc; |
| 666 |
status = "okay"; |
| 667 |
}; |
| 668 |
|
| 669 |
&spi5 { |
| 670 |
status = "okay"; |
| 671 |
|
| 672 |
can@0 { |
| 673 |
compatible = "microchip,mcp2518fd"; |
| 674 |
reg = <0>; |
| 675 |
interrupts-extended = <&tlmm 39 IRQ_TYPE_LEVEL_LOW>; |
| 676 |
clocks = <&clk40m>; |
| 677 |
spi-max-frequency = <10000000>; |
| 678 |
vdd-supply = <&vdc_5v>; |
| 679 |
xceiver-supply = <&vdc_5v>; |
| 680 |
}; |
| 681 |
}; |
| 682 |
|
| 683 |
&tlmm { |
| 684 |
uart3_default: uart3-default-state { |
| 685 |
cts-pins { |
| 686 |
pins = "gpio8"; |
| 687 |
function = "qup3"; |
| 688 |
drive-strength = <2>; |
| 689 |
bias-bus-hold; |
| 690 |
}; |
| 691 |
|
| 692 |
rts-pins { |
| 693 |
pins = "gpio9"; |
| 694 |
function = "qup3"; |
| 695 |
drive-strength = <2>; |
| 696 |
bias-disable; |
| 697 |
}; |
| 698 |
|
| 699 |
tx-pins { |
| 700 |
pins = "gpio10"; |
| 701 |
function = "qup3"; |
| 702 |
drive-strength = <2>; |
| 703 |
bias-disable; |
| 704 |
}; |
| 705 |
|
| 706 |
rx-pins { |
| 707 |
pins = "gpio11"; |
| 708 |
function = "qup3"; |
| 709 |
drive-strength = <2>; |
| 710 |
bias-pull-up; |
| 711 |
}; |
| 712 |
}; |
| 713 |
|
| 714 |
uart3_sleep: uart3-sleep-state { |
| 715 |
cts-pins { |
| 716 |
pins = "gpio8"; |
| 717 |
function = "gpio"; |
| 718 |
drive-strength = <2>; |
| 719 |
bias-bus-hold; |
| 720 |
}; |
| 721 |
|
| 722 |
rts-pins { |
| 723 |
pins = "gpio9"; |
| 724 |
function = "gpio"; |
| 725 |
drive-strength = <2>; |
| 726 |
bias-pull-down; |
| 727 |
}; |
| 728 |
|
| 729 |
tx-pins { |
| 730 |
pins = "gpio10"; |
| 731 |
function = "gpio"; |
| 732 |
drive-strength = <2>; |
| 733 |
bias-pull-up; |
| 734 |
}; |
| 735 |
|
| 736 |
rx-pins { |
| 737 |
pins = "gpio11"; |
| 738 |
function = "gpio"; |
| 739 |
drive-strength = <2>; |
| 740 |
bias-pull-up; |
| 741 |
}; |
| 742 |
}; |
| 743 |
|
| 744 |
lt9611_rst_pin: lt9611-rst-state { |
| 745 |
pins = "gpio41"; |
| 746 |
function = "gpio"; |
| 747 |
input-disable; |
| 748 |
output-high; |
| 749 |
}; |
| 750 |
|
| 751 |
lt9611_irq_pin: lt9611-irq-state { |
| 752 |
pins = "gpio46"; |
| 753 |
function = "gpio"; |
| 754 |
bias-disable; |
| 755 |
}; |
| 756 |
|
| 757 |
sd_det_in_on: sd-det-in-on-state { |
| 758 |
pins = "gpio88"; |
| 759 |
function = "gpio"; |
| 760 |
drive-strength = <2>; |
| 761 |
bias-pull-up; |
| 762 |
}; |
| 763 |
|
| 764 |
sd_det_in_off: sd-det-in-off-state { |
| 765 |
pins = "gpio88"; |
| 766 |
function = "gpio"; |
| 767 |
drive-strength = <2>; |
| 768 |
bias-disable; |
| 769 |
}; |
| 770 |
|
| 771 |
key_volp_n: key-volp-n-state { |
| 772 |
pins = "gpio96"; |
| 773 |
function = "gpio"; |
| 774 |
bias-pull-up; |
| 775 |
output-disable; |
| 776 |
}; |
| 777 |
}; |
| 778 |
|
| 779 |
&uart3 { |
| 780 |
/delete-property/ interrupts; |
| 781 |
interrupts-extended = <&intc GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>, |
| 782 |
<&tlmm 11 IRQ_TYPE_EDGE_FALLING>; |
| 783 |
pinctrl-0 = <&uart3_default>; |
| 784 |
pinctrl-1 = <&uart3_sleep>; |
| 785 |
pinctrl-names = "default", "sleep"; |
| 786 |
|
| 787 |
status = "okay"; |
| 788 |
|
| 789 |
bluetooth { |
| 790 |
compatible = "qcom,wcn3950-bt"; |
| 791 |
|
| 792 |
vddio-supply = <&pm4125_l15>; |
| 793 |
vddxo-supply = <&pm4125_l13>; |
| 794 |
vddrf-supply = <&pm4125_l10>; |
| 795 |
vddch0-supply = <&pm4125_l22>; |
| 796 |
enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>; |
| 797 |
max-speed = <3200000>; |
| 798 |
}; |
| 799 |
}; |
| 800 |
|
| 801 |
/* UART connected to the Micro-USB port via a FTDI chip */ |
| 802 |
&uart4 { |
| 803 |
compatible = "qcom,geni-debug-uart"; |
| 804 |
status = "okay"; |
| 805 |
}; |
| 806 |
|
| 807 |
&usb { |
| 808 |
status = "okay"; |
| 809 |
}; |
| 810 |
|
| 811 |
&usb_dwc3_hs { |
| 812 |
remote-endpoint = <&pm4125_hs_in>; |
| 813 |
}; |
| 814 |
|
| 815 |
&usb_hsphy { |
| 816 |
vdd-supply = <&pm4125_l12>; |
| 817 |
vdda-pll-supply = <&pm4125_l13>; |
| 818 |
vdda-phy-dpdm-supply = <&pm4125_l21>; |
| 819 |
status = "okay"; |
| 820 |
}; |
| 821 |
|
| 822 |
&usb_qmpphy { |
| 823 |
vdda-phy-supply = <&pm4125_l12>; |
| 824 |
vdda-pll-supply = <&pm4125_l13>; |
| 825 |
status = "okay"; |
| 826 |
}; |
| 827 |
|
| 828 |
&usb_qmpphy_out { |
| 829 |
remote-endpoint = <&pm4125_ss_in>; |
| 830 |
}; |
| 831 |
|
| 832 |
&venus { |
| 833 |
status = "okay"; |
| 834 |
}; |
| 835 |
|
| 836 |
&wifi { |
| 837 |
vdd-0.8-cx-mx-supply = <&pm4125_l7>; |
| 838 |
vdd-1.8-xo-supply = <&pm4125_l13>; |
| 839 |
vdd-1.3-rfa-supply = <&pm4125_l10>; |
| 840 |
vdd-3.3-ch0-supply = <&pm4125_l22>; |
| 841 |
qcom,calibration-variant = "Thundercomm_RB1"; |
| 842 |
firmware-name = "qcm2290"; |
| 843 |
status = "okay"; |
| 844 |
}; |
| 845 |
|
| 846 |
&xo_board { |
| 847 |
clock-frequency = <38400000>; |
| 848 |
}; |