1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2021, Linaro Ltd. 4 * Copyright (c) 2020, Konrad Dybcio <konrad.dy 5 * Copyright (c) 2020, AngeloGioacchino Del Re 6 * <angelogioacchino.delreg 7 */ 8 9 /dts-v1/; 10 11 #include "sdm660.dtsi" 12 #include "pm660.dtsi" 13 #include "pm660l.dtsi" 14 15 / { 16 model = "Inforce 6560 Single Board Com 17 compatible = "inforce,ifc6560", "qcom, 18 chassis-type = "embedded"; /* SBC */ 19 20 aliases { 21 serial0 = &blsp1_uart2; 22 serial1 = &blsp2_uart1; 23 }; 24 25 chosen { 26 stdout-path = "serial0:115200n 27 }; 28 29 gpio-keys { 30 compatible = "gpio-keys"; 31 32 key-volup { 33 label = "Volume Up"; 34 gpios = <&pm660l_gpios 35 linux,code = <KEY_VOLU 36 debounce-interval = <1 37 }; 38 }; 39 40 /* 41 * Until we hook up type-c detection, 42 * have to stick with this. But it wor 43 */ 44 extcon_usb: extcon-usb { 45 compatible = "linux,extcon-usb 46 id-gpios = <&tlmm 58 GPIO_ACTI 47 }; 48 49 hdmi-out { 50 compatible = "hdmi-connector"; 51 type = "a"; 52 53 port { 54 hdmi_con: endpoint { 55 remote-endpoin 56 }; 57 }; 58 }; 59 60 vph_pwr: vph-pwr-regulator { 61 compatible = "regulator-fixed" 62 regulator-name = "vph_pwr"; 63 regulator-min-microvolt = <380 64 regulator-max-microvolt = <380 65 66 regulator-always-on; 67 regulator-boot-on; 68 }; 69 70 v3p3_bck_bst: v3p3-bck-bst-regulator { 71 compatible = "regulator-fixed" 72 regulator-name = "v3p3_bck_bst 73 74 regulator-min-microvolt = <330 75 regulator-max-microvolt = <330 76 77 vin-supply = <&vph_pwr>; 78 }; 79 80 v1p2_ldo: v1p2-ldo-regulator { 81 compatible = "regulator-fixed" 82 regulator-name = "v1p2_ldo"; 83 84 regulator-min-microvolt = <120 85 regulator-max-microvolt = <120 86 87 vin-supply = <&vph_pwr>; 88 }; 89 90 v5p0_boost: v5p0-boost-regulator { 91 compatible = "regulator-fixed" 92 regulator-name = "v5p0_boost"; 93 94 regulator-min-microvolt = <500 95 regulator-max-microvolt = <500 96 97 vin-supply = <&vph_pwr>; 98 }; 99 100 /* 101 * this is also used for APC1 CPU powe 102 */ 103 vreg_l10a_1p8: vreg-l10a-regulator { 104 compatible = "regulator-fixed" 105 regulator-name = "vreg_l10a_1p 106 regulator-min-microvolt = <180 107 regulator-max-microvolt = <189 108 regulator-always-on; 109 regulator-boot-on; 110 }; 111 }; 112 113 &adsp_pil { 114 firmware-name = "qcom/sda660/adsp.mbn" 115 }; 116 117 &blsp_i2c6 { 118 status = "okay"; 119 120 adv7533: hdmi@39 { 121 compatible = "adi,adv7535"; 122 reg = <0x39>, <0x66>; 123 reg-names = "main", "edid"; 124 125 interrupt-parent = <&pm660l_gp 126 interrupts = <11 IRQ_TYPE_EDGE 127 128 clocks = <&rpmcc RPM_SMD_BB_CL 129 clock-names = "cec"; 130 /* 131 * Limit to 3 lanes to prevent 132 * of lanes in the fly. MSM DS 133 */ 134 adi,dsi-lanes = <3>; 135 avdd-supply = <&vreg_l13a_1p8> 136 dvdd-supply = <&vreg_l13a_1p8> 137 pvdd-supply = <&vreg_l13a_1p8> 138 a2vdd-supply = <&vreg_l13a_1p8 139 v3p3-supply = <&v3p3_bck_bst>; 140 141 ports { 142 #address-cells = <1>; 143 #size-cells = <0>; 144 145 port@0 { 146 reg = <0>; 147 148 adv7533_in: en 149 remote 150 }; 151 }; 152 153 port@1 { 154 reg = <1>; 155 156 adv7533_out: e 157 remote 158 }; 159 }; 160 }; 161 }; 162 }; 163 164 &blsp1_dma { 165 /* 166 * The board will lock up if we toggle 167 * BAM DMA interconnects support is in 168 */ 169 /delete-property/ clocks; 170 }; 171 172 &blsp1_uart2 { 173 status = "okay"; 174 }; 175 176 &blsp2_dma { 177 /* 178 * The board will lock up if we toggle 179 * BAM DMA interconnects support is in 180 */ 181 /delete-property/ clocks; 182 }; 183 184 &blsp2_uart1 { 185 status = "okay"; 186 187 bluetooth { 188 compatible = "qcom,wcn3990-bt" 189 190 vddio-supply = <&vreg_l13a_1p8 191 vddxo-supply = <&vreg_l9a_1p8> 192 vddrf-supply = <&vreg_l6a_1p3> 193 vddch0-supply = <&vreg_l19a_3p 194 max-speed = <3200000>; 195 }; 196 }; 197 198 &mdss { 199 status = "okay"; 200 }; 201 202 &mdss_dsi0 { 203 status = "okay"; 204 vdda-supply = <&vreg_l1a_1p225>; 205 }; 206 207 &mdss_dsi0_out { 208 remote-endpoint = <&adv7533_in>; 209 data-lanes = <0 1 2 3>; 210 }; 211 212 &mdss_dsi0_phy { 213 status = "okay"; 214 vcca-supply = <&vreg_l1b_0p925>; 215 }; 216 217 &mmss_smmu { 218 status = "okay"; 219 }; 220 221 &pon_pwrkey { 222 status = "okay"; 223 }; 224 225 &pon_resin { 226 status = "okay"; 227 228 linux,code = <KEY_VOLUMEUP>; 229 }; 230 231 &qusb2phy0 { 232 status = "okay"; 233 234 vdd-supply = <&vreg_l1b_0p925>; 235 vdda-pll-supply = <&vreg_l10a_1p8>; 236 vdda-phy-dpdm-supply = <&vreg_l7b_3p12 237 }; 238 239 &qusb2phy1 { 240 status = "okay"; 241 242 vdd-supply = <&vreg_l1b_0p925>; 243 vdda-pll-supply = <&vreg_l10a_1p8>; 244 vdda-phy-dpdm-supply = <&vreg_l7b_3p12 245 }; 246 247 &rpm_requests { 248 regulators-0 { 249 compatible = "qcom,rpm-pm660-r 250 251 vdd_s1-supply = <&vph_pwr>; 252 vdd_s2-supply = <&vph_pwr>; 253 vdd_s3-supply = <&vph_pwr>; 254 vdd_s4-supply = <&vph_pwr>; 255 vdd_s5-supply = <&vph_pwr>; 256 vdd_s6-supply = <&vph_pwr>; 257 258 vdd_l1_l6_l7-supply = <&vreg_s 259 vdd_l2_l3-supply = <&vreg_s2b_ 260 vdd_l5-supply = <&vreg_s2b_1p0 261 vdd_l8_l9_l10_l11_l12_l13_l14- 262 vdd_l15_l16_l17_l18_l19-supply 263 264 vreg_s4a_2p04: s4 { 265 regulator-min-microvol 266 regulator-max-microvol 267 regulator-enable-ramp- 268 regulator-ramp-delay = 269 regulator-always-on; 270 }; 271 272 vreg_s5a_1p35: s5 { 273 regulator-min-microvol 274 regulator-max-microvol 275 regulator-enable-ramp- 276 regulator-ramp-delay = 277 }; 278 279 vreg_l1a_1p225: l1 { 280 regulator-min-microvol 281 regulator-max-microvol 282 regulator-enable-ramp- 283 regulator-allow-set-lo 284 }; 285 286 vreg_l6a_1p3: l6 { 287 regulator-min-microvol 288 regulator-max-microvol 289 regulator-enable-ramp- 290 regulator-ramp-delay = 291 regulator-allow-set-lo 292 }; 293 294 vreg_l8a_1p8: l8 { 295 regulator-min-microvol 296 regulator-max-microvol 297 regulator-enable-ramp- 298 regulator-ramp-delay = 299 regulator-system-load 300 regulator-allow-set-lo 301 }; 302 303 vreg_l9a_1p8: l9 { 304 regulator-min-microvol 305 regulator-max-microvol 306 regulator-enable-ramp- 307 regulator-ramp-delay = 308 regulator-allow-set-lo 309 }; 310 311 vreg_l13a_1p8: l13 { 312 /* This gives power to 313 regulator-min-microvol 314 regulator-max-microvol 315 regulator-enable-ramp- 316 regulator-ramp-delay = 317 regulator-always-on; 318 regulator-boot-on; 319 }; 320 321 vreg_l19a_3p3: l19 { 322 regulator-min-microvol 323 regulator-max-microvol 324 regulator-enable-ramp- 325 regulator-ramp-delay = 326 regulator-allow-set-lo 327 }; 328 }; 329 330 regulators-1 { 331 compatible = "qcom,rpm-pm660l- 332 333 vdd_s1-supply = <&vph_pwr>; 334 vdd_s2-supply = <&vph_pwr>; 335 vdd_s3_s4-supply = <&vph_pwr>; 336 vdd_s5-supply = <&vph_pwr>; 337 vdd_s6-supply = <&vph_pwr>; 338 339 vdd_l1_l9_l10-supply = <&vreg_ 340 vdd_l2-supply = <&vreg_bob>; 341 vdd_l3_l5_l7_l8-supply = <&vre 342 vdd_l4_l6-supply = <&vreg_bob> 343 vdd_bob-supply = <&vph_pwr>; 344 345 vreg_s2b_1p05: s2 { 346 regulator-min-microvol 347 regulator-max-microvol 348 regulator-enable-ramp- 349 regulator-ramp-delay = 350 }; 351 352 vreg_l1b_0p925: l1 { 353 regulator-min-microvol 354 regulator-max-microvol 355 regulator-enable-ramp- 356 regulator-allow-set-lo 357 }; 358 359 vreg_l2b_2p95: l2 { 360 regulator-min-microvol 361 regulator-max-microvol 362 regulator-enable-ramp- 363 regulator-ramp-delay = 364 regulator-allow-set-lo 365 }; 366 367 vreg_l4b_2p95: l4 { 368 regulator-min-microvol 369 regulator-max-microvol 370 regulator-enable-ramp- 371 regulator-ramp-delay = 372 373 regulator-min-microamp 374 regulator-max-microamp 375 regulator-system-load 376 regulator-allow-set-lo 377 }; 378 379 /* 380 * Downstream specifies a rang 381 * but the only assigned consu 382 * and Coresight QPDI that bot 383 * Tighten the range to 1.8-3. 384 * make the mmc driver happy. 385 */ 386 vreg_l5b_2p95: l5 { 387 regulator-min-microvol 388 regulator-max-microvol 389 regulator-enable-ramp- 390 regulator-system-load 391 regulator-ramp-delay = 392 regulator-allow-set-lo 393 }; 394 395 vreg_l7b_3p125: l7 { 396 regulator-min-microvol 397 regulator-max-microvol 398 regulator-enable-ramp- 399 }; 400 401 vreg_l8b_3p3: l8 { 402 regulator-min-microvol 403 regulator-max-microvol 404 regulator-enable-ramp- 405 regulator-ramp-delay = 406 }; 407 408 vreg_bob: bob { 409 regulator-min-microvol 410 regulator-max-microvol 411 regulator-enable-ramp- 412 regulator-ramp-delay = 413 }; 414 }; 415 }; 416 417 &sdc2_state_on { 418 sd-cd-pins { 419 pins = "gpio54"; 420 function = "gpio"; 421 bias-pull-up; 422 drive-strength = <2>; 423 }; 424 }; 425 426 &sdc2_state_off { 427 sd-cd-pins { 428 pins = "gpio54"; 429 function = "gpio"; 430 bias-disable; 431 drive-strength = <2>; 432 }; 433 }; 434 435 &sdhc_1 { 436 status = "okay"; 437 supports-cqe; 438 439 vmmc-supply = <&vreg_l4b_2p95>; 440 vqmmc-supply = <&vreg_l8a_1p8>; 441 442 mmc-ddr-1_8v; 443 mmc-hs400-1_8v; 444 mmc-hs400-enhanced-strobe; 445 }; 446 447 &sdhc_2 { 448 status = "okay"; 449 450 vmmc-supply = <&vreg_l5b_2p95>; 451 vqmmc-supply = <&vreg_l2b_2p95>; 452 453 cd-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>; 454 no-sdio; 455 no-mmc; 456 }; 457 458 &tlmm { 459 gpio-reserved-ranges = <0 4>, <8 4>; 460 }; 461 462 &usb2 { 463 status = "okay"; 464 }; 465 466 &usb2_dwc3 { 467 dr_mode = "host"; 468 }; 469 470 &usb3 { 471 status = "okay"; 472 }; 473 474 &usb3_dwc3 { 475 dr_mode = "peripheral"; 476 extcon = <&extcon_usb>; 477 }; 478 479 &usb3_qmpphy { 480 vdda-phy-supply = <&vreg_l1b_0p925>; 481 vdda-pll-supply = <&vreg_l10a_1p8>; 482 status = "okay"; 483 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.