1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 3724ba675SRob Herring#include <dt-bindings/input/input.h> 4724ba675SRob Herring#include <dt-bindings/mfd/qcom-rpm.h> 5724ba675SRob Herring#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 6724ba675SRob Herring 72308f2dfSDmitry Baryshkov#include "qcom-apq8064-v2.0.dtsi" 82308f2dfSDmitry Baryshkov#include "pm8821.dtsi" 92308f2dfSDmitry Baryshkov#include "pm8921.dtsi" 102308f2dfSDmitry Baryshkov 11724ba675SRob Herring/ { 12724ba675SRob Herring model = "Sony Xperia Z"; 13724ba675SRob Herring compatible = "sony,xperia-yuga", "qcom,apq8064"; 14724ba675SRob Herring chassis-type = "handset"; 15724ba675SRob Herring 16724ba675SRob Herring aliases { 17724ba675SRob Herring serial0 = &gsbi5_serial; 18724ba675SRob Herring }; 19724ba675SRob Herring 20724ba675SRob Herring chosen { 21724ba675SRob Herring stdout-path = "serial0:115200n8"; 22724ba675SRob Herring }; 23724ba675SRob Herring 24724ba675SRob Herring gpio-keys { 25724ba675SRob Herring compatible = "gpio-keys"; 26724ba675SRob Herring 27724ba675SRob Herring pinctrl-names = "default"; 28724ba675SRob Herring pinctrl-0 = <&gpio_keys_pin_a>; 29724ba675SRob Herring 30724ba675SRob Herring key-camera-focus { 31724ba675SRob Herring label = "camera_focus"; 32724ba675SRob Herring gpios = <&pm8921_gpio 3 GPIO_ACTIVE_LOW>; 33724ba675SRob Herring linux,input-type = <1>; 34724ba675SRob Herring linux,code = <KEY_CAMERA_FOCUS>; 35724ba675SRob Herring }; 36724ba675SRob Herring 37724ba675SRob Herring key-camera-snapshot { 38724ba675SRob Herring label = "camera_snapshot"; 39724ba675SRob Herring gpios = <&pm8921_gpio 4 GPIO_ACTIVE_LOW>; 40724ba675SRob Herring linux,input-type = <1>; 41724ba675SRob Herring linux,code = <KEY_CAMERA>; 42724ba675SRob Herring }; 43724ba675SRob Herring 44724ba675SRob Herring key-volume-down { 45724ba675SRob Herring label = "volume_down"; 46724ba675SRob Herring gpios = <&pm8921_gpio 29 GPIO_ACTIVE_LOW>; 47724ba675SRob Herring linux,input-type = <1>; 48724ba675SRob Herring linux,code = <KEY_VOLUMEDOWN>; 49724ba675SRob Herring }; 50724ba675SRob Herring 51724ba675SRob Herring key-volume-up { 52724ba675SRob Herring label = "volume_up"; 53724ba675SRob Herring gpios = <&pm8921_gpio 35 GPIO_ACTIVE_LOW>; 54724ba675SRob Herring linux,input-type = <1>; 55724ba675SRob Herring linux,code = <KEY_VOLUMEUP>; 56724ba675SRob Herring }; 57724ba675SRob Herring }; 58724ba675SRob Herring}; 59724ba675SRob Herring 60724ba675SRob Herring&gsbi5 { 61724ba675SRob Herring qcom,mode = <GSBI_PROT_I2C_UART>; 62724ba675SRob Herring status = "okay"; 63724ba675SRob Herring}; 64724ba675SRob Herring 65724ba675SRob Herring&gsbi5_serial { 66724ba675SRob Herring pinctrl-names = "default"; 67724ba675SRob Herring pinctrl-0 = <&gsbi5_uart_pin_a>; 68724ba675SRob Herring status = "okay"; 69724ba675SRob Herring}; 70724ba675SRob Herring 717b22923cSDmitry Baryshkov&pm8821 { 727b22923cSDmitry Baryshkov interrupts-extended = <&tlmm_pinmux 76 IRQ_TYPE_LEVEL_LOW>; 737b22923cSDmitry Baryshkov}; 747b22923cSDmitry Baryshkov 757b22923cSDmitry Baryshkov&pm8921 { 767b22923cSDmitry Baryshkov interrupts-extended = <&tlmm_pinmux 74 IRQ_TYPE_LEVEL_LOW>; 777b22923cSDmitry Baryshkov}; 787b22923cSDmitry Baryshkov 79724ba675SRob Herring&pm8921_gpio { 80724ba675SRob Herring gpio_keys_pin_a: gpio-keys-active-state { 81724ba675SRob Herring pins = "gpio3", "gpio4", "gpio29", "gpio35"; 82724ba675SRob Herring function = "normal"; 83724ba675SRob Herring 84724ba675SRob Herring bias-pull-up; 85724ba675SRob Herring drive-push-pull; 86724ba675SRob Herring input-enable; 87724ba675SRob Herring power-source = <2>; 88724ba675SRob Herring qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 89724ba675SRob Herring qcom,pull-up-strength = <0>; 90724ba675SRob Herring }; 91724ba675SRob Herring}; 92724ba675SRob Herring 93724ba675SRob Herring&riva { 94724ba675SRob Herring pinctrl-names = "default"; 95724ba675SRob Herring pinctrl-0 = <&riva_wlan_pin_a>, <&riva_bt_pin_a>, <&riva_fm_pin_a>; 96d2576209SDmitry Baryshkov 97d2576209SDmitry Baryshkov vddcx-supply = <&pm8921_s3>; 98d2576209SDmitry Baryshkov vddmx-supply = <&pm8921_l24>; 99d2576209SDmitry Baryshkov vddpx-supply = <&pm8921_s4>; 100d2576209SDmitry Baryshkov 101724ba675SRob Herring status = "okay"; 102d2576209SDmitry Baryshkov 103d2576209SDmitry Baryshkov iris { 104d2576209SDmitry Baryshkov vddxo-supply = <&pm8921_l4>; 105d2576209SDmitry Baryshkov vddrfa-supply = <&pm8921_s2>; 106d2576209SDmitry Baryshkov vddpa-supply = <&pm8921_l10>; 107d2576209SDmitry Baryshkov vdddig-supply = <&pm8921_lvs2>; 108d2576209SDmitry Baryshkov }; 109724ba675SRob Herring}; 110724ba675SRob Herring 111724ba675SRob Herring&rpm { 112724ba675SRob Herring regulators { 113d2576209SDmitry Baryshkov compatible = "qcom,rpm-pm8921-regulators"; 114d2576209SDmitry Baryshkov 115724ba675SRob Herring vin_l1_l2_l12_l18-supply = <&pm8921_s4>; 116724ba675SRob Herring vin_lvs_1_3_6-supply = <&pm8921_s4>; 117724ba675SRob Herring vin_lvs_4_5_7-supply = <&pm8921_s4>; 118724ba675SRob Herring vin_ncp-supply = <&pm8921_l6>; 119724ba675SRob Herring vin_lvs2-supply = <&pm8921_s4>; 120724ba675SRob Herring vin_l24-supply = <&pm8921_s1>; 121724ba675SRob Herring vin_l25-supply = <&pm8921_s1>; 122724ba675SRob Herring vin_l27-supply = <&pm8921_s7>; 123724ba675SRob Herring vin_l28-supply = <&pm8921_s7>; 124724ba675SRob Herring 125724ba675SRob Herring /* Buck SMPS */ 126d2576209SDmitry Baryshkov pm8921_s1: s1 { 127724ba675SRob Herring regulator-always-on; 128724ba675SRob Herring regulator-min-microvolt = <1225000>; 129724ba675SRob Herring regulator-max-microvolt = <1225000>; 130724ba675SRob Herring qcom,switch-mode-frequency = <3200000>; 131724ba675SRob Herring bias-pull-down; 132724ba675SRob Herring }; 133724ba675SRob Herring 134d2576209SDmitry Baryshkov pm8921_s2: s2 { 135724ba675SRob Herring regulator-min-microvolt = <1300000>; 136724ba675SRob Herring regulator-max-microvolt = <1300000>; 137724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 138724ba675SRob Herring bias-pull-down; 139724ba675SRob Herring }; 140724ba675SRob Herring 141d2576209SDmitry Baryshkov pm8921_s3: s3 { 142724ba675SRob Herring regulator-min-microvolt = <500000>; 143724ba675SRob Herring regulator-max-microvolt = <1150000>; 144724ba675SRob Herring qcom,switch-mode-frequency = <4800000>; 145724ba675SRob Herring bias-pull-down; 146724ba675SRob Herring }; 147724ba675SRob Herring 148d2576209SDmitry Baryshkov pm8921_s4: s4 { 149724ba675SRob Herring regulator-always-on; 150724ba675SRob Herring regulator-min-microvolt = <1800000>; 151724ba675SRob Herring regulator-max-microvolt = <1800000>; 152724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 153724ba675SRob Herring bias-pull-down; 154724ba675SRob Herring qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>; 155724ba675SRob Herring }; 156724ba675SRob Herring 157d2576209SDmitry Baryshkov pm8921_s7: s7 { 158724ba675SRob Herring regulator-min-microvolt = <1300000>; 159724ba675SRob Herring regulator-max-microvolt = <1300000>; 160724ba675SRob Herring qcom,switch-mode-frequency = <3200000>; 161724ba675SRob Herring }; 162724ba675SRob Herring 163d2576209SDmitry Baryshkov pm8921_s8: s8 { 164724ba675SRob Herring regulator-min-microvolt = <2200000>; 165724ba675SRob Herring regulator-max-microvolt = <2200000>; 166724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 167724ba675SRob Herring }; 168724ba675SRob Herring 169724ba675SRob Herring /* PMOS LDO */ 170d2576209SDmitry Baryshkov pm8921_l1: l1 { 171724ba675SRob Herring regulator-always-on; 172724ba675SRob Herring regulator-min-microvolt = <1100000>; 173724ba675SRob Herring regulator-max-microvolt = <1100000>; 174724ba675SRob Herring bias-pull-down; 175724ba675SRob Herring }; 176724ba675SRob Herring 177d2576209SDmitry Baryshkov pm8921_l2: l2 { 178724ba675SRob Herring regulator-min-microvolt = <1200000>; 179724ba675SRob Herring regulator-max-microvolt = <1200000>; 180724ba675SRob Herring bias-pull-down; 181724ba675SRob Herring }; 182724ba675SRob Herring 183d2576209SDmitry Baryshkov pm8921_l3: l3 { 184724ba675SRob Herring regulator-min-microvolt = <3075000>; 185724ba675SRob Herring regulator-max-microvolt = <3075000>; 186724ba675SRob Herring bias-pull-down; 187724ba675SRob Herring }; 188724ba675SRob Herring 189d2576209SDmitry Baryshkov pm8921_l4: l4 { 190724ba675SRob Herring regulator-always-on; 191724ba675SRob Herring regulator-min-microvolt = <1800000>; 192724ba675SRob Herring regulator-max-microvolt = <1800000>; 193724ba675SRob Herring bias-pull-down; 194724ba675SRob Herring }; 195724ba675SRob Herring 196d2576209SDmitry Baryshkov pm8921_l5: l5 { 197724ba675SRob Herring regulator-min-microvolt = <2950000>; 198724ba675SRob Herring regulator-max-microvolt = <2950000>; 199724ba675SRob Herring bias-pull-down; 200724ba675SRob Herring }; 201724ba675SRob Herring 202d2576209SDmitry Baryshkov pm8921_l6: l6 { 203724ba675SRob Herring regulator-min-microvolt = <2950000>; 204724ba675SRob Herring regulator-max-microvolt = <2950000>; 205724ba675SRob Herring bias-pull-down; 206724ba675SRob Herring }; 207724ba675SRob Herring 208d2576209SDmitry Baryshkov pm8921_l7: l7 { 209724ba675SRob Herring regulator-min-microvolt = <1850000>; 210724ba675SRob Herring regulator-max-microvolt = <2950000>; 211724ba675SRob Herring bias-pull-down; 212724ba675SRob Herring }; 213724ba675SRob Herring 214d2576209SDmitry Baryshkov pm8921_l8: l8 { 215724ba675SRob Herring regulator-min-microvolt = <2800000>; 216724ba675SRob Herring regulator-max-microvolt = <2800000>; 217724ba675SRob Herring bias-pull-down; 218724ba675SRob Herring }; 219724ba675SRob Herring 220d2576209SDmitry Baryshkov pm8921_l9: l9 { 221724ba675SRob Herring regulator-min-microvolt = <3000000>; 222724ba675SRob Herring regulator-max-microvolt = <3000000>; 223724ba675SRob Herring bias-pull-down; 224724ba675SRob Herring }; 225724ba675SRob Herring 226d2576209SDmitry Baryshkov pm8921_l10: l10 { 227724ba675SRob Herring regulator-min-microvolt = <2900000>; 228724ba675SRob Herring regulator-max-microvolt = <2900000>; 229724ba675SRob Herring bias-pull-down; 230724ba675SRob Herring }; 231724ba675SRob Herring 232d2576209SDmitry Baryshkov pm8921_l11: l11 { 233724ba675SRob Herring regulator-min-microvolt = <3000000>; 234724ba675SRob Herring regulator-max-microvolt = <3000000>; 235724ba675SRob Herring bias-pull-down; 236724ba675SRob Herring }; 237724ba675SRob Herring 238d2576209SDmitry Baryshkov pm8921_l12: l12 { 239724ba675SRob Herring regulator-min-microvolt = <1200000>; 240724ba675SRob Herring regulator-max-microvolt = <1200000>; 241724ba675SRob Herring bias-pull-down; 242724ba675SRob Herring }; 243724ba675SRob Herring 244d2576209SDmitry Baryshkov pm8921_l14: l14 { 245724ba675SRob Herring regulator-min-microvolt = <1800000>; 246724ba675SRob Herring regulator-max-microvolt = <1800000>; 247724ba675SRob Herring bias-pull-down; 248724ba675SRob Herring }; 249724ba675SRob Herring 250d2576209SDmitry Baryshkov pm8921_l15: l15 { 251724ba675SRob Herring regulator-min-microvolt = <1800000>; 252724ba675SRob Herring regulator-max-microvolt = <2950000>; 253724ba675SRob Herring bias-pull-down; 254724ba675SRob Herring }; 255724ba675SRob Herring 256d2576209SDmitry Baryshkov pm8921_l16: l16 { 257724ba675SRob Herring regulator-min-microvolt = <2800000>; 258724ba675SRob Herring regulator-max-microvolt = <2800000>; 259724ba675SRob Herring bias-pull-down; 260724ba675SRob Herring }; 261724ba675SRob Herring 262d2576209SDmitry Baryshkov pm8921_l17: l17 { 263724ba675SRob Herring regulator-min-microvolt = <2000000>; 264724ba675SRob Herring regulator-max-microvolt = <2000000>; 265724ba675SRob Herring bias-pull-down; 266724ba675SRob Herring }; 267724ba675SRob Herring 268d2576209SDmitry Baryshkov pm8921_l18: l18 { 269724ba675SRob Herring regulator-min-microvolt = <1200000>; 270724ba675SRob Herring regulator-max-microvolt = <1200000>; 271724ba675SRob Herring bias-pull-down; 272724ba675SRob Herring }; 273724ba675SRob Herring 274d2576209SDmitry Baryshkov pm8921_l21: l21 { 275724ba675SRob Herring regulator-min-microvolt = <1050000>; 276724ba675SRob Herring regulator-max-microvolt = <1050000>; 277724ba675SRob Herring bias-pull-down; 278724ba675SRob Herring }; 279724ba675SRob Herring 280d2576209SDmitry Baryshkov pm8921_l22: l22 { 281724ba675SRob Herring regulator-min-microvolt = <2600000>; 282724ba675SRob Herring regulator-max-microvolt = <2600000>; 283724ba675SRob Herring bias-pull-down; 284724ba675SRob Herring }; 285724ba675SRob Herring 286d2576209SDmitry Baryshkov pm8921_l23: l23 { 287724ba675SRob Herring regulator-min-microvolt = <1800000>; 288724ba675SRob Herring regulator-max-microvolt = <1800000>; 289724ba675SRob Herring bias-pull-down; 290724ba675SRob Herring }; 291724ba675SRob Herring 292d2576209SDmitry Baryshkov pm8921_l24: l24 { 293724ba675SRob Herring regulator-min-microvolt = <750000>; 294724ba675SRob Herring regulator-max-microvolt = <1150000>; 295724ba675SRob Herring bias-pull-down; 296724ba675SRob Herring }; 297724ba675SRob Herring 298d2576209SDmitry Baryshkov pm8921_l25: l25 { 299724ba675SRob Herring regulator-always-on; 300724ba675SRob Herring regulator-min-microvolt = <1250000>; 301724ba675SRob Herring regulator-max-microvolt = <1250000>; 302724ba675SRob Herring bias-pull-down; 303724ba675SRob Herring }; 304724ba675SRob Herring 305d2576209SDmitry Baryshkov pm8921_l27: l27 { 306724ba675SRob Herring regulator-min-microvolt = <1100000>; 307724ba675SRob Herring regulator-max-microvolt = <1100000>; 308724ba675SRob Herring }; 309724ba675SRob Herring 310d2576209SDmitry Baryshkov pm8921_l28: l28 { 311724ba675SRob Herring regulator-min-microvolt = <1050000>; 312724ba675SRob Herring regulator-max-microvolt = <1050000>; 313724ba675SRob Herring bias-pull-down; 314724ba675SRob Herring }; 315724ba675SRob Herring 316d2576209SDmitry Baryshkov pm8921_l29: l29 { 317724ba675SRob Herring regulator-min-microvolt = <2000000>; 318724ba675SRob Herring regulator-max-microvolt = <2000000>; 319724ba675SRob Herring bias-pull-down; 320724ba675SRob Herring }; 321724ba675SRob Herring 322724ba675SRob Herring /* Low Voltage Switch */ 323d2576209SDmitry Baryshkov pm8921_lvs1: lvs1 { 324724ba675SRob Herring bias-pull-down; 325724ba675SRob Herring }; 326724ba675SRob Herring 327d2576209SDmitry Baryshkov pm8921_lvs2: lvs2 { 328724ba675SRob Herring bias-pull-down; 329724ba675SRob Herring }; 330724ba675SRob Herring 331d2576209SDmitry Baryshkov pm8921_lvs3: lvs3 { 332724ba675SRob Herring bias-pull-down; 333724ba675SRob Herring }; 334724ba675SRob Herring 335d2576209SDmitry Baryshkov pm8921_lvs4: lvs4 { 336724ba675SRob Herring bias-pull-down; 337724ba675SRob Herring }; 338724ba675SRob Herring 339d2576209SDmitry Baryshkov pm8921_lvs5: lvs5 { 340724ba675SRob Herring bias-pull-down; 341724ba675SRob Herring }; 342724ba675SRob Herring 343d2576209SDmitry Baryshkov pm8921_lvs6: lvs6 { 344724ba675SRob Herring bias-pull-down; 345724ba675SRob Herring }; 346724ba675SRob Herring 347d2576209SDmitry Baryshkov pm8921_lvs7: lvs7 { 348724ba675SRob Herring bias-pull-down; 349724ba675SRob Herring }; 350724ba675SRob Herring 351d2576209SDmitry Baryshkov pm8921_usb_switch: usb-switch {}; 352724ba675SRob Herring 353d2576209SDmitry Baryshkov pm8921_hdmi_switch: hdmi-switch { 354d2576209SDmitry Baryshkov bias-pull-down; 355d2576209SDmitry Baryshkov }; 356724ba675SRob Herring 357d2576209SDmitry Baryshkov pm8921_ncp: ncp { 358724ba675SRob Herring regulator-min-microvolt = <1800000>; 359724ba675SRob Herring regulator-max-microvolt = <1800000>; 360724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 361724ba675SRob Herring }; 362724ba675SRob Herring }; 363724ba675SRob Herring}; 364724ba675SRob Herring 365724ba675SRob Herring&sdcc1 { 366724ba675SRob Herring vmmc-supply = <&pm8921_l5>; 367724ba675SRob Herring vqmmc-supply = <&pm8921_s4>; 368724ba675SRob Herring status = "okay"; 369724ba675SRob Herring}; 370724ba675SRob Herring 371724ba675SRob Herring&sdcc3 { 372724ba675SRob Herring vmmc-supply = <&pm8921_l6>; 373724ba675SRob Herring cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>; 374724ba675SRob Herring 375724ba675SRob Herring pinctrl-names = "default"; 376*c9c8f449SRayyan Ansari pinctrl-0 = <&sdcc3_default_state>, <&sdcc3_cd_pin_a>; 377724ba675SRob Herring 378724ba675SRob Herring status = "okay"; 379724ba675SRob Herring}; 380724ba675SRob Herring 381724ba675SRob Herring&tlmm_pinmux { 382*c9c8f449SRayyan Ansari gsbi5_uart_pin_a: gsbi5-uart-pin-active-state { 383*c9c8f449SRayyan Ansari rx-pins { 384724ba675SRob Herring pins = "gpio52"; 385724ba675SRob Herring function = "gsbi5"; 386724ba675SRob Herring drive-strength = <2>; 387724ba675SRob Herring bias-pull-up; 388724ba675SRob Herring }; 389724ba675SRob Herring 390*c9c8f449SRayyan Ansari tx-pins { 391724ba675SRob Herring pins = "gpio51"; 392724ba675SRob Herring function = "gsbi5"; 393724ba675SRob Herring drive-strength = <4>; 394724ba675SRob Herring bias-disable; 395724ba675SRob Herring }; 396724ba675SRob Herring }; 397724ba675SRob Herring 398724ba675SRob Herring 399*c9c8f449SRayyan Ansari sdcc3_cd_pin_a: sdcc3-cd-pin-active-state { 400724ba675SRob Herring pins = "gpio26"; 401724ba675SRob Herring function = "gpio"; 402724ba675SRob Herring 403724ba675SRob Herring drive-strength = <2>; 404724ba675SRob Herring bias-disable; 405724ba675SRob Herring }; 406724ba675SRob Herring}; 407724ba675SRob Herring 408724ba675SRob Herring&usb_hs1_phy { 409724ba675SRob Herring v3p3-supply = <&pm8921_l3>; 410724ba675SRob Herring v1p8-supply = <&pm8921_l4>; 411724ba675SRob Herring}; 412724ba675SRob Herring 413724ba675SRob Herring&usb1 { 414724ba675SRob Herring dr_mode = "otg"; 415724ba675SRob Herring status = "okay"; 416724ba675SRob Herring}; 417