| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
#include <dt-bindings/gpio/gpio.h> |
| 3 |
#include <dt-bindings/input/input.h> |
| 4 |
#include <dt-bindings/leds/common.h> |
| 5 |
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
| 6 |
#include "qcom-msm8974.dtsi" |
| 7 |
#include "pm8841.dtsi" |
| 8 |
#include "pm8941.dtsi" |
| 9 |
|
| 10 |
/delete-node/ &mpss_region; |
| 11 |
|
| 12 |
/ { |
| 13 |
model = "Qualcomm APQ8074 Dragonboard"; |
| 14 |
compatible = "qcom,apq8074-dragonboard", "qcom,apq8074"; |
| 15 |
|
| 16 |
aliases { |
| 17 |
serial0 = &blsp1_uart2; |
| 18 |
usid0 = &pm8941_0; |
| 19 |
usid4 = &pm8841_0; |
| 20 |
}; |
| 21 |
|
| 22 |
chosen { |
| 23 |
stdout-path = "serial0:115200n8"; |
| 24 |
}; |
| 25 |
|
| 26 |
gpio-keys { |
| 27 |
compatible = "gpio-keys"; |
| 28 |
autorepeat; |
| 29 |
|
| 30 |
pinctrl-0 = <&msm_keys_default>; |
| 31 |
pinctrl-names = "default"; |
| 32 |
|
| 33 |
button-volup { |
| 34 |
label = "Volume Up"; |
| 35 |
linux,code = <KEY_VOLUMEUP>; |
| 36 |
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; |
| 37 |
}; |
| 38 |
|
| 39 |
button-general { |
| 40 |
label = "General"; |
| 41 |
linux,code = <KEY_PROG1>; |
| 42 |
gpios = <&pm8941_gpios 23 GPIO_ACTIVE_LOW>; |
| 43 |
}; |
| 44 |
}; |
| 45 |
|
| 46 |
reserved-memory { |
| 47 |
mpss_region: mpss@ac00000 { |
| 48 |
reg = <0x0ac00000 0x2500000>; |
| 49 |
no-map; |
| 50 |
}; |
| 51 |
}; |
| 52 |
|
| 53 |
vreg_boost: vreg-boost { |
| 54 |
compatible = "regulator-fixed"; |
| 55 |
|
| 56 |
regulator-name = "vreg-boost"; |
| 57 |
regulator-min-microvolt = <3150000>; |
| 58 |
regulator-max-microvolt = <3150000>; |
| 59 |
|
| 60 |
regulator-always-on; |
| 61 |
regulator-boot-on; |
| 62 |
|
| 63 |
gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>; |
| 64 |
enable-active-high; |
| 65 |
|
| 66 |
pinctrl-names = "default"; |
| 67 |
pinctrl-0 = <&boost_bypass_n_pin>; |
| 68 |
}; |
| 69 |
|
| 70 |
vreg_vph_pwr: vreg-vph-pwr { |
| 71 |
compatible = "regulator-fixed"; |
| 72 |
regulator-name = "vph-pwr"; |
| 73 |
|
| 74 |
regulator-min-microvolt = <3600000>; |
| 75 |
regulator-max-microvolt = <3600000>; |
| 76 |
|
| 77 |
regulator-always-on; |
| 78 |
}; |
| 79 |
}; |
| 80 |
|
| 81 |
&blsp1_uart2 { |
| 82 |
status = "okay"; |
| 83 |
}; |
| 84 |
|
| 85 |
&blsp2_dma { |
| 86 |
qcom,controlled-remotely; |
| 87 |
}; |
| 88 |
|
| 89 |
&blsp2_i2c5 { |
| 90 |
status = "okay"; |
| 91 |
clock-frequency = <200000>; |
| 92 |
|
| 93 |
eeprom: eeprom@52 { |
| 94 |
compatible = "atmel,24c128"; |
| 95 |
reg = <0x52>; |
| 96 |
pagesize = <32>; |
| 97 |
read-only; |
| 98 |
}; |
| 99 |
}; |
| 100 |
|
| 101 |
&gpu { |
| 102 |
status = "okay"; |
| 103 |
}; |
| 104 |
|
| 105 |
&mdss { |
| 106 |
status = "okay"; |
| 107 |
}; |
| 108 |
|
| 109 |
&mdss_dsi0 { |
| 110 |
vdda-supply = <&pm8941_l2>; |
| 111 |
vdd-supply = <&pm8941_l22>; |
| 112 |
vddio-supply = <&pm8941_l12>; |
| 113 |
|
| 114 |
status = "okay"; |
| 115 |
|
| 116 |
panel: panel@0 { |
| 117 |
compatible = "sharp,ls043t1le01-qhd"; |
| 118 |
reg = <0>; |
| 119 |
|
| 120 |
avdd-supply = <&pm8941_l22>; |
| 121 |
backlight = <&pm8941_wled>; |
| 122 |
reset-gpios = <&pm8941_gpios 19 GPIO_ACTIVE_HIGH>; |
| 123 |
|
| 124 |
port { |
| 125 |
panel_in: endpoint { |
| 126 |
remote-endpoint = <&mdss_dsi0_out>; |
| 127 |
}; |
| 128 |
}; |
| 129 |
}; |
| 130 |
}; |
| 131 |
|
| 132 |
&mdss_dsi0_out { |
| 133 |
remote-endpoint = <&panel_in>; |
| 134 |
data-lanes = <0 1 2 3>; |
| 135 |
}; |
| 136 |
|
| 137 |
&mdss_dsi0_phy { |
| 138 |
status = "okay"; |
| 139 |
|
| 140 |
vddio-supply = <&pm8941_l12>; |
| 141 |
}; |
| 142 |
|
| 143 |
&gpu { |
| 144 |
status = "okay"; |
| 145 |
}; |
| 146 |
|
| 147 |
&mdss { |
| 148 |
status = "okay"; |
| 149 |
}; |
| 150 |
|
| 151 |
&pm8941_gpios { |
| 152 |
msm_keys_default: pm8941-gpio-keys-state { |
| 153 |
pins = "gpio5", "gpio23"; |
| 154 |
function = "normal"; |
| 155 |
input-enable; |
| 156 |
drive-push-pull; |
| 157 |
bias-pull-up; |
| 158 |
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; |
| 159 |
power-source = <PM8941_GPIO_S3>; /* 1.8V */ |
| 160 |
}; |
| 161 |
}; |
| 162 |
|
| 163 |
&pm8941_lpg { |
| 164 |
qcom,power-source = <1>; |
| 165 |
status = "okay"; |
| 166 |
|
| 167 |
led@5 { |
| 168 |
reg = <5>; |
| 169 |
color = <LED_COLOR_ID_BLUE>; |
| 170 |
function = LED_FUNCTION_INDICATOR; |
| 171 |
}; |
| 172 |
|
| 173 |
led@6 { |
| 174 |
reg = <6>; |
| 175 |
color = <LED_COLOR_ID_GREEN>; |
| 176 |
function = LED_FUNCTION_INDICATOR; |
| 177 |
}; |
| 178 |
|
| 179 |
led@7 { |
| 180 |
reg = <7>; |
| 181 |
color = <LED_COLOR_ID_RED>; |
| 182 |
function = LED_FUNCTION_INDICATOR; |
| 183 |
}; |
| 184 |
}; |
| 185 |
|
| 186 |
&pm8941_resin { |
| 187 |
linux,code = <KEY_VOLUMEDOWN>; |
| 188 |
status = "okay"; |
| 189 |
}; |
| 190 |
|
| 191 |
&pm8941_wled { |
| 192 |
qcom,cs-out; |
| 193 |
qcom,switching-freq = <3200>; |
| 194 |
qcom,ovp = <32>; |
| 195 |
qcom,num-strings = <1>; |
| 196 |
|
| 197 |
status = "okay"; |
| 198 |
}; |
| 199 |
|
| 200 |
&remoteproc_adsp { |
| 201 |
firmware-name = "qcom/apq8074/adsp.mbn"; |
| 202 |
|
| 203 |
status = "okay"; |
| 204 |
}; |
| 205 |
|
| 206 |
&remoteproc_mss { |
| 207 |
mss-supply = <&pm8841_s3>; |
| 208 |
mx-supply = <&pm8841_s1>; |
| 209 |
pll-supply = <&pm8941_l12>; |
| 210 |
|
| 211 |
firmware-name = "qcom/apq8074/mba.mbn", "qcom/apq8074/modem.mbn"; |
| 212 |
|
| 213 |
status = "okay"; |
| 214 |
}; |
| 215 |
|
| 216 |
&rpm_requests { |
| 217 |
regulators-0 { |
| 218 |
compatible = "qcom,rpm-pm8841-regulators"; |
| 219 |
|
| 220 |
pm8841_s1: s1 { |
| 221 |
regulator-min-microvolt = <675000>; |
| 222 |
regulator-max-microvolt = <1050000>; |
| 223 |
}; |
| 224 |
|
| 225 |
pm8841_s3: s3 { |
| 226 |
regulator-min-microvolt = <500000>; |
| 227 |
regulator-max-microvolt = <1050000>; |
| 228 |
}; |
| 229 |
}; |
| 230 |
|
| 231 |
regulators-1 { |
| 232 |
compatible = "qcom,rpm-pm8941-regulators"; |
| 233 |
|
| 234 |
vdd_l1_l3-supply = <&pm8941_s1>; |
| 235 |
vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; |
| 236 |
vdd_l4_l11-supply = <&pm8941_s1>; |
| 237 |
vdd_l5_l7-supply = <&pm8941_s2>; |
| 238 |
vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; |
| 239 |
vin_5vs-supply = <&pm8941_5v>; |
| 240 |
|
| 241 |
pm8941_s1: s1 { |
| 242 |
regulator-min-microvolt = <1300000>; |
| 243 |
regulator-max-microvolt = <1300000>; |
| 244 |
regulator-always-on; |
| 245 |
regulator-boot-on; |
| 246 |
}; |
| 247 |
|
| 248 |
pm8941_s2: s2 { |
| 249 |
regulator-min-microvolt = <2150000>; |
| 250 |
regulator-max-microvolt = <2150000>; |
| 251 |
regulator-boot-on; |
| 252 |
}; |
| 253 |
|
| 254 |
pm8941_s3: s3 { |
| 255 |
regulator-min-microvolt = <1800000>; |
| 256 |
regulator-max-microvolt = <1800000>; |
| 257 |
regulator-always-on; |
| 258 |
regulator-boot-on; |
| 259 |
}; |
| 260 |
|
| 261 |
pm8941_l1: l1 { |
| 262 |
regulator-min-microvolt = <1225000>; |
| 263 |
regulator-max-microvolt = <1225000>; |
| 264 |
regulator-always-on; |
| 265 |
regulator-boot-on; |
| 266 |
}; |
| 267 |
|
| 268 |
pm8941_l2: l2 { |
| 269 |
regulator-min-microvolt = <1200000>; |
| 270 |
regulator-max-microvolt = <1200000>; |
| 271 |
}; |
| 272 |
|
| 273 |
pm8941_l3: l3 { |
| 274 |
regulator-min-microvolt = <1225000>; |
| 275 |
regulator-max-microvolt = <1225000>; |
| 276 |
}; |
| 277 |
|
| 278 |
pm8941_l4: l4 { |
| 279 |
regulator-min-microvolt = <1225000>; |
| 280 |
regulator-max-microvolt = <1225000>; |
| 281 |
}; |
| 282 |
|
| 283 |
pm8941_l5: l5 { |
| 284 |
regulator-min-microvolt = <1800000>; |
| 285 |
regulator-max-microvolt = <1800000>; |
| 286 |
}; |
| 287 |
|
| 288 |
pm8941_l6: l6 { |
| 289 |
regulator-min-microvolt = <1800000>; |
| 290 |
regulator-max-microvolt = <1800000>; |
| 291 |
regulator-boot-on; |
| 292 |
}; |
| 293 |
|
| 294 |
pm8941_l7: l7 { |
| 295 |
regulator-min-microvolt = <1800000>; |
| 296 |
regulator-max-microvolt = <1800000>; |
| 297 |
regulator-boot-on; |
| 298 |
}; |
| 299 |
|
| 300 |
pm8941_l8: l8 { |
| 301 |
regulator-min-microvolt = <1800000>; |
| 302 |
regulator-max-microvolt = <1800000>; |
| 303 |
}; |
| 304 |
|
| 305 |
pm8941_l9: l9 { |
| 306 |
regulator-min-microvolt = <1800000>; |
| 307 |
regulator-max-microvolt = <2950000>; |
| 308 |
}; |
| 309 |
|
| 310 |
pm8941_l10: l10 { |
| 311 |
regulator-min-microvolt = <1800000>; |
| 312 |
regulator-max-microvolt = <1800000>; |
| 313 |
regulator-always-on; |
| 314 |
}; |
| 315 |
|
| 316 |
pm8941_l11: l11 { |
| 317 |
regulator-min-microvolt = <1300000>; |
| 318 |
regulator-max-microvolt = <1300000>; |
| 319 |
}; |
| 320 |
|
| 321 |
pm8941_l12: l12 { |
| 322 |
regulator-min-microvolt = <1800000>; |
| 323 |
regulator-max-microvolt = <1800000>; |
| 324 |
regulator-always-on; |
| 325 |
regulator-boot-on; |
| 326 |
}; |
| 327 |
|
| 328 |
pm8941_l13: l13 { |
| 329 |
regulator-min-microvolt = <1800000>; |
| 330 |
regulator-max-microvolt = <2950000>; |
| 331 |
regulator-boot-on; |
| 332 |
}; |
| 333 |
|
| 334 |
pm8941_l14: l14 { |
| 335 |
regulator-min-microvolt = <1800000>; |
| 336 |
regulator-max-microvolt = <1800000>; |
| 337 |
}; |
| 338 |
|
| 339 |
pm8941_l15: l15 { |
| 340 |
regulator-min-microvolt = <2050000>; |
| 341 |
regulator-max-microvolt = <2050000>; |
| 342 |
}; |
| 343 |
|
| 344 |
pm8941_l16: l16 { |
| 345 |
regulator-min-microvolt = <2700000>; |
| 346 |
regulator-max-microvolt = <2700000>; |
| 347 |
}; |
| 348 |
|
| 349 |
pm8941_l17: l17 { |
| 350 |
regulator-min-microvolt = <2700000>; |
| 351 |
regulator-max-microvolt = <2700000>; |
| 352 |
}; |
| 353 |
|
| 354 |
pm8941_l18: l18 { |
| 355 |
regulator-min-microvolt = <2850000>; |
| 356 |
regulator-max-microvolt = <2850000>; |
| 357 |
}; |
| 358 |
|
| 359 |
pm8941_l19: l19 { |
| 360 |
regulator-min-microvolt = <3300000>; |
| 361 |
regulator-max-microvolt = <3300000>; |
| 362 |
regulator-always-on; |
| 363 |
}; |
| 364 |
|
| 365 |
pm8941_l20: l20 { |
| 366 |
regulator-min-microvolt = <2950000>; |
| 367 |
regulator-max-microvolt = <2950000>; |
| 368 |
regulator-system-load = <200000>; |
| 369 |
regulator-allow-set-load; |
| 370 |
regulator-boot-on; |
| 371 |
}; |
| 372 |
|
| 373 |
pm8941_l21: l21 { |
| 374 |
regulator-min-microvolt = <2950000>; |
| 375 |
regulator-max-microvolt = <2950000>; |
| 376 |
regulator-boot-on; |
| 377 |
}; |
| 378 |
|
| 379 |
pm8941_l22: l22 { |
| 380 |
regulator-min-microvolt = <3000000>; |
| 381 |
regulator-max-microvolt = <3000000>; |
| 382 |
}; |
| 383 |
|
| 384 |
pm8941_l23: l23 { |
| 385 |
regulator-min-microvolt = <3000000>; |
| 386 |
regulator-max-microvolt = <3000000>; |
| 387 |
}; |
| 388 |
|
| 389 |
pm8941_l24: l24 { |
| 390 |
regulator-min-microvolt = <3075000>; |
| 391 |
regulator-max-microvolt = <3075000>; |
| 392 |
regulator-boot-on; |
| 393 |
}; |
| 394 |
}; |
| 395 |
}; |
| 396 |
|
| 397 |
&sdhc_1 { |
| 398 |
status = "okay"; |
| 399 |
|
| 400 |
vmmc-supply = <&pm8941_l20>; |
| 401 |
vqmmc-supply = <&pm8941_s3>; |
| 402 |
|
| 403 |
pinctrl-names = "default", "sleep"; |
| 404 |
pinctrl-0 = <&sdc1_on>; |
| 405 |
pinctrl-1 = <&sdc1_off>; |
| 406 |
}; |
| 407 |
|
| 408 |
&sdhc_2 { |
| 409 |
status = "okay"; |
| 410 |
|
| 411 |
cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; |
| 412 |
vmmc-supply = <&pm8941_l21>; |
| 413 |
vqmmc-supply = <&pm8941_l13>; |
| 414 |
|
| 415 |
pinctrl-names = "default", "sleep"; |
| 416 |
pinctrl-0 = <&sdc2_on>; |
| 417 |
pinctrl-1 = <&sdc2_off>; |
| 418 |
}; |
| 419 |
|
| 420 |
&smbb { |
| 421 |
status = "okay"; |
| 422 |
}; |
| 423 |
|
| 424 |
&tlmm { |
| 425 |
sdc1_on: sdc1-on-state { |
| 426 |
clk-pins { |
| 427 |
pins = "sdc1_clk"; |
| 428 |
drive-strength = <16>; |
| 429 |
bias-disable; |
| 430 |
}; |
| 431 |
|
| 432 |
cmd-data-pins { |
| 433 |
pins = "sdc1_cmd", "sdc1_data"; |
| 434 |
drive-strength = <10>; |
| 435 |
bias-pull-up; |
| 436 |
}; |
| 437 |
}; |
| 438 |
|
| 439 |
sdc2_on: sdc2-on-state { |
| 440 |
clk-pins { |
| 441 |
pins = "sdc2_clk"; |
| 442 |
drive-strength = <10>; |
| 443 |
bias-disable; |
| 444 |
}; |
| 445 |
|
| 446 |
cmd-data-pins { |
| 447 |
pins = "sdc2_cmd", "sdc2_data"; |
| 448 |
drive-strength = <6>; |
| 449 |
bias-pull-up; |
| 450 |
}; |
| 451 |
|
| 452 |
cd-pins { |
| 453 |
pins = "gpio62"; |
| 454 |
function = "gpio"; |
| 455 |
drive-strength = <2>; |
| 456 |
bias-disable; |
| 457 |
}; |
| 458 |
}; |
| 459 |
}; |
| 460 |
|
| 461 |
&usb { |
| 462 |
status = "okay"; |
| 463 |
|
| 464 |
phys = <&usb_hs2_phy>; |
| 465 |
phy-select = <&tcsr 0xb000 1>; |
| 466 |
extcon = <&smbb>, <&usb_id>; |
| 467 |
vbus-supply = <&chg_otg>; |
| 468 |
hnp-disable; |
| 469 |
srp-disable; |
| 470 |
adp-disable; |
| 471 |
}; |
| 472 |
|
| 473 |
&usb_hs2_phy { |
| 474 |
status = "okay"; |
| 475 |
v3p3-supply = <&pm8941_l24>; |
| 476 |
v1p8-supply = <&pm8941_l6>; |
| 477 |
extcon = <&smbb>; |
| 478 |
qcom,init-seq = /bits/ 8 <0x1 0x63>; |
| 479 |
}; |