1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring#include "qcom-apq8064-v2.0.dtsi" 3724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 4724ba675SRob Herring#include <dt-bindings/input/input.h> 5724ba675SRob Herring#include <dt-bindings/mfd/qcom-rpm.h> 6724ba675SRob Herring#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 7724ba675SRob Herring 8724ba675SRob Herring/ { 9724ba675SRob Herring model = "Sony Xperia Z"; 10724ba675SRob Herring compatible = "sony,xperia-yuga", "qcom,apq8064"; 11724ba675SRob Herring chassis-type = "handset"; 12724ba675SRob Herring 13724ba675SRob Herring aliases { 14724ba675SRob Herring serial0 = &gsbi5_serial; 15724ba675SRob Herring }; 16724ba675SRob Herring 17724ba675SRob Herring chosen { 18724ba675SRob Herring stdout-path = "serial0:115200n8"; 19724ba675SRob Herring }; 20724ba675SRob Herring 21724ba675SRob Herring gpio-keys { 22724ba675SRob Herring compatible = "gpio-keys"; 23724ba675SRob Herring 24724ba675SRob Herring pinctrl-names = "default"; 25724ba675SRob Herring pinctrl-0 = <&gpio_keys_pin_a>; 26724ba675SRob Herring 27724ba675SRob Herring key-camera-focus { 28724ba675SRob Herring label = "camera_focus"; 29724ba675SRob Herring gpios = <&pm8921_gpio 3 GPIO_ACTIVE_LOW>; 30724ba675SRob Herring linux,input-type = <1>; 31724ba675SRob Herring linux,code = <KEY_CAMERA_FOCUS>; 32724ba675SRob Herring }; 33724ba675SRob Herring 34724ba675SRob Herring key-camera-snapshot { 35724ba675SRob Herring label = "camera_snapshot"; 36724ba675SRob Herring gpios = <&pm8921_gpio 4 GPIO_ACTIVE_LOW>; 37724ba675SRob Herring linux,input-type = <1>; 38724ba675SRob Herring linux,code = <KEY_CAMERA>; 39724ba675SRob Herring }; 40724ba675SRob Herring 41724ba675SRob Herring key-volume-down { 42724ba675SRob Herring label = "volume_down"; 43724ba675SRob Herring gpios = <&pm8921_gpio 29 GPIO_ACTIVE_LOW>; 44724ba675SRob Herring linux,input-type = <1>; 45724ba675SRob Herring linux,code = <KEY_VOLUMEDOWN>; 46724ba675SRob Herring }; 47724ba675SRob Herring 48724ba675SRob Herring key-volume-up { 49724ba675SRob Herring label = "volume_up"; 50724ba675SRob Herring gpios = <&pm8921_gpio 35 GPIO_ACTIVE_LOW>; 51724ba675SRob Herring linux,input-type = <1>; 52724ba675SRob Herring linux,code = <KEY_VOLUMEUP>; 53724ba675SRob Herring }; 54724ba675SRob Herring }; 55724ba675SRob Herring}; 56724ba675SRob Herring 57724ba675SRob Herring&gsbi5 { 58724ba675SRob Herring qcom,mode = <GSBI_PROT_I2C_UART>; 59724ba675SRob Herring status = "okay"; 60724ba675SRob Herring}; 61724ba675SRob Herring 62724ba675SRob Herring&gsbi5_serial { 63724ba675SRob Herring pinctrl-names = "default"; 64724ba675SRob Herring pinctrl-0 = <&gsbi5_uart_pin_a>; 65724ba675SRob Herring status = "okay"; 66724ba675SRob Herring}; 67724ba675SRob Herring 68*7b22923cSDmitry Baryshkov&pm8821 { 69*7b22923cSDmitry Baryshkov interrupts-extended = <&tlmm_pinmux 76 IRQ_TYPE_LEVEL_LOW>; 70*7b22923cSDmitry Baryshkov}; 71*7b22923cSDmitry Baryshkov 72*7b22923cSDmitry Baryshkov&pm8921 { 73*7b22923cSDmitry Baryshkov interrupts-extended = <&tlmm_pinmux 74 IRQ_TYPE_LEVEL_LOW>; 74*7b22923cSDmitry Baryshkov}; 75*7b22923cSDmitry Baryshkov 76724ba675SRob Herring&pm8921_gpio { 77724ba675SRob Herring gpio_keys_pin_a: gpio-keys-active-state { 78724ba675SRob Herring pins = "gpio3", "gpio4", "gpio29", "gpio35"; 79724ba675SRob Herring function = "normal"; 80724ba675SRob Herring 81724ba675SRob Herring bias-pull-up; 82724ba675SRob Herring drive-push-pull; 83724ba675SRob Herring input-enable; 84724ba675SRob Herring power-source = <2>; 85724ba675SRob Herring qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; 86724ba675SRob Herring qcom,pull-up-strength = <0>; 87724ba675SRob Herring }; 88724ba675SRob Herring}; 89724ba675SRob Herring 90724ba675SRob Herring&riva { 91724ba675SRob Herring pinctrl-names = "default"; 92724ba675SRob Herring pinctrl-0 = <&riva_wlan_pin_a>, <&riva_bt_pin_a>, <&riva_fm_pin_a>; 93724ba675SRob Herring status = "okay"; 94724ba675SRob Herring}; 95724ba675SRob Herring 96724ba675SRob Herring&rpm { 97724ba675SRob Herring regulators { 98724ba675SRob Herring vin_l1_l2_l12_l18-supply = <&pm8921_s4>; 99724ba675SRob Herring vin_lvs_1_3_6-supply = <&pm8921_s4>; 100724ba675SRob Herring vin_lvs_4_5_7-supply = <&pm8921_s4>; 101724ba675SRob Herring vin_ncp-supply = <&pm8921_l6>; 102724ba675SRob Herring vin_lvs2-supply = <&pm8921_s4>; 103724ba675SRob Herring vin_l24-supply = <&pm8921_s1>; 104724ba675SRob Herring vin_l25-supply = <&pm8921_s1>; 105724ba675SRob Herring vin_l27-supply = <&pm8921_s7>; 106724ba675SRob Herring vin_l28-supply = <&pm8921_s7>; 107724ba675SRob Herring 108724ba675SRob Herring /* Buck SMPS */ 109724ba675SRob Herring s1 { 110724ba675SRob Herring regulator-always-on; 111724ba675SRob Herring regulator-min-microvolt = <1225000>; 112724ba675SRob Herring regulator-max-microvolt = <1225000>; 113724ba675SRob Herring qcom,switch-mode-frequency = <3200000>; 114724ba675SRob Herring bias-pull-down; 115724ba675SRob Herring }; 116724ba675SRob Herring 117724ba675SRob Herring s2 { 118724ba675SRob Herring regulator-min-microvolt = <1300000>; 119724ba675SRob Herring regulator-max-microvolt = <1300000>; 120724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 121724ba675SRob Herring bias-pull-down; 122724ba675SRob Herring }; 123724ba675SRob Herring 124724ba675SRob Herring s3 { 125724ba675SRob Herring regulator-min-microvolt = <500000>; 126724ba675SRob Herring regulator-max-microvolt = <1150000>; 127724ba675SRob Herring qcom,switch-mode-frequency = <4800000>; 128724ba675SRob Herring bias-pull-down; 129724ba675SRob Herring }; 130724ba675SRob Herring 131724ba675SRob Herring s4 { 132724ba675SRob Herring regulator-always-on; 133724ba675SRob Herring regulator-min-microvolt = <1800000>; 134724ba675SRob Herring regulator-max-microvolt = <1800000>; 135724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 136724ba675SRob Herring bias-pull-down; 137724ba675SRob Herring qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>; 138724ba675SRob Herring }; 139724ba675SRob Herring 140724ba675SRob Herring s7 { 141724ba675SRob Herring regulator-min-microvolt = <1300000>; 142724ba675SRob Herring regulator-max-microvolt = <1300000>; 143724ba675SRob Herring qcom,switch-mode-frequency = <3200000>; 144724ba675SRob Herring }; 145724ba675SRob Herring 146724ba675SRob Herring s8 { 147724ba675SRob Herring regulator-min-microvolt = <2200000>; 148724ba675SRob Herring regulator-max-microvolt = <2200000>; 149724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 150724ba675SRob Herring }; 151724ba675SRob Herring 152724ba675SRob Herring /* PMOS LDO */ 153724ba675SRob Herring l1 { 154724ba675SRob Herring regulator-always-on; 155724ba675SRob Herring regulator-min-microvolt = <1100000>; 156724ba675SRob Herring regulator-max-microvolt = <1100000>; 157724ba675SRob Herring bias-pull-down; 158724ba675SRob Herring }; 159724ba675SRob Herring 160724ba675SRob Herring l2 { 161724ba675SRob Herring regulator-min-microvolt = <1200000>; 162724ba675SRob Herring regulator-max-microvolt = <1200000>; 163724ba675SRob Herring bias-pull-down; 164724ba675SRob Herring }; 165724ba675SRob Herring 166724ba675SRob Herring l3 { 167724ba675SRob Herring regulator-min-microvolt = <3075000>; 168724ba675SRob Herring regulator-max-microvolt = <3075000>; 169724ba675SRob Herring bias-pull-down; 170724ba675SRob Herring }; 171724ba675SRob Herring 172724ba675SRob Herring l4 { 173724ba675SRob Herring regulator-always-on; 174724ba675SRob Herring regulator-min-microvolt = <1800000>; 175724ba675SRob Herring regulator-max-microvolt = <1800000>; 176724ba675SRob Herring bias-pull-down; 177724ba675SRob Herring }; 178724ba675SRob Herring 179724ba675SRob Herring l5 { 180724ba675SRob Herring regulator-min-microvolt = <2950000>; 181724ba675SRob Herring regulator-max-microvolt = <2950000>; 182724ba675SRob Herring bias-pull-down; 183724ba675SRob Herring }; 184724ba675SRob Herring 185724ba675SRob Herring l6 { 186724ba675SRob Herring regulator-min-microvolt = <2950000>; 187724ba675SRob Herring regulator-max-microvolt = <2950000>; 188724ba675SRob Herring bias-pull-down; 189724ba675SRob Herring }; 190724ba675SRob Herring 191724ba675SRob Herring l7 { 192724ba675SRob Herring regulator-min-microvolt = <1850000>; 193724ba675SRob Herring regulator-max-microvolt = <2950000>; 194724ba675SRob Herring bias-pull-down; 195724ba675SRob Herring }; 196724ba675SRob Herring 197724ba675SRob Herring l8 { 198724ba675SRob Herring regulator-min-microvolt = <2800000>; 199724ba675SRob Herring regulator-max-microvolt = <2800000>; 200724ba675SRob Herring bias-pull-down; 201724ba675SRob Herring }; 202724ba675SRob Herring 203724ba675SRob Herring l9 { 204724ba675SRob Herring regulator-min-microvolt = <3000000>; 205724ba675SRob Herring regulator-max-microvolt = <3000000>; 206724ba675SRob Herring bias-pull-down; 207724ba675SRob Herring }; 208724ba675SRob Herring 209724ba675SRob Herring l10 { 210724ba675SRob Herring regulator-min-microvolt = <2900000>; 211724ba675SRob Herring regulator-max-microvolt = <2900000>; 212724ba675SRob Herring bias-pull-down; 213724ba675SRob Herring }; 214724ba675SRob Herring 215724ba675SRob Herring l11 { 216724ba675SRob Herring regulator-min-microvolt = <3000000>; 217724ba675SRob Herring regulator-max-microvolt = <3000000>; 218724ba675SRob Herring bias-pull-down; 219724ba675SRob Herring }; 220724ba675SRob Herring 221724ba675SRob Herring l12 { 222724ba675SRob Herring regulator-min-microvolt = <1200000>; 223724ba675SRob Herring regulator-max-microvolt = <1200000>; 224724ba675SRob Herring bias-pull-down; 225724ba675SRob Herring }; 226724ba675SRob Herring 227724ba675SRob Herring l14 { 228724ba675SRob Herring regulator-min-microvolt = <1800000>; 229724ba675SRob Herring regulator-max-microvolt = <1800000>; 230724ba675SRob Herring bias-pull-down; 231724ba675SRob Herring }; 232724ba675SRob Herring 233724ba675SRob Herring l15 { 234724ba675SRob Herring regulator-min-microvolt = <1800000>; 235724ba675SRob Herring regulator-max-microvolt = <2950000>; 236724ba675SRob Herring bias-pull-down; 237724ba675SRob Herring }; 238724ba675SRob Herring 239724ba675SRob Herring l16 { 240724ba675SRob Herring regulator-min-microvolt = <2800000>; 241724ba675SRob Herring regulator-max-microvolt = <2800000>; 242724ba675SRob Herring bias-pull-down; 243724ba675SRob Herring }; 244724ba675SRob Herring 245724ba675SRob Herring l17 { 246724ba675SRob Herring regulator-min-microvolt = <2000000>; 247724ba675SRob Herring regulator-max-microvolt = <2000000>; 248724ba675SRob Herring bias-pull-down; 249724ba675SRob Herring }; 250724ba675SRob Herring 251724ba675SRob Herring l18 { 252724ba675SRob Herring regulator-min-microvolt = <1200000>; 253724ba675SRob Herring regulator-max-microvolt = <1200000>; 254724ba675SRob Herring bias-pull-down; 255724ba675SRob Herring }; 256724ba675SRob Herring 257724ba675SRob Herring l21 { 258724ba675SRob Herring regulator-min-microvolt = <1050000>; 259724ba675SRob Herring regulator-max-microvolt = <1050000>; 260724ba675SRob Herring bias-pull-down; 261724ba675SRob Herring }; 262724ba675SRob Herring 263724ba675SRob Herring l22 { 264724ba675SRob Herring regulator-min-microvolt = <2600000>; 265724ba675SRob Herring regulator-max-microvolt = <2600000>; 266724ba675SRob Herring bias-pull-down; 267724ba675SRob Herring }; 268724ba675SRob Herring 269724ba675SRob Herring l23 { 270724ba675SRob Herring regulator-min-microvolt = <1800000>; 271724ba675SRob Herring regulator-max-microvolt = <1800000>; 272724ba675SRob Herring bias-pull-down; 273724ba675SRob Herring }; 274724ba675SRob Herring 275724ba675SRob Herring l24 { 276724ba675SRob Herring regulator-min-microvolt = <750000>; 277724ba675SRob Herring regulator-max-microvolt = <1150000>; 278724ba675SRob Herring bias-pull-down; 279724ba675SRob Herring }; 280724ba675SRob Herring 281724ba675SRob Herring l25 { 282724ba675SRob Herring regulator-always-on; 283724ba675SRob Herring regulator-min-microvolt = <1250000>; 284724ba675SRob Herring regulator-max-microvolt = <1250000>; 285724ba675SRob Herring bias-pull-down; 286724ba675SRob Herring }; 287724ba675SRob Herring 288724ba675SRob Herring l27 { 289724ba675SRob Herring regulator-min-microvolt = <1100000>; 290724ba675SRob Herring regulator-max-microvolt = <1100000>; 291724ba675SRob Herring }; 292724ba675SRob Herring 293724ba675SRob Herring l28 { 294724ba675SRob Herring regulator-min-microvolt = <1050000>; 295724ba675SRob Herring regulator-max-microvolt = <1050000>; 296724ba675SRob Herring bias-pull-down; 297724ba675SRob Herring }; 298724ba675SRob Herring 299724ba675SRob Herring l29 { 300724ba675SRob Herring regulator-min-microvolt = <2000000>; 301724ba675SRob Herring regulator-max-microvolt = <2000000>; 302724ba675SRob Herring bias-pull-down; 303724ba675SRob Herring }; 304724ba675SRob Herring 305724ba675SRob Herring /* Low Voltage Switch */ 306724ba675SRob Herring lvs1 { 307724ba675SRob Herring bias-pull-down; 308724ba675SRob Herring }; 309724ba675SRob Herring 310724ba675SRob Herring lvs2 { 311724ba675SRob Herring bias-pull-down; 312724ba675SRob Herring }; 313724ba675SRob Herring 314724ba675SRob Herring lvs3 { 315724ba675SRob Herring bias-pull-down; 316724ba675SRob Herring }; 317724ba675SRob Herring 318724ba675SRob Herring lvs4 { 319724ba675SRob Herring bias-pull-down; 320724ba675SRob Herring }; 321724ba675SRob Herring 322724ba675SRob Herring lvs5 { 323724ba675SRob Herring bias-pull-down; 324724ba675SRob Herring }; 325724ba675SRob Herring 326724ba675SRob Herring lvs6 { 327724ba675SRob Herring bias-pull-down; 328724ba675SRob Herring }; 329724ba675SRob Herring 330724ba675SRob Herring lvs7 { 331724ba675SRob Herring bias-pull-down; 332724ba675SRob Herring }; 333724ba675SRob Herring 334724ba675SRob Herring usb-switch {}; 335724ba675SRob Herring 336724ba675SRob Herring hdmi-switch {}; 337724ba675SRob Herring 338724ba675SRob Herring ncp { 339724ba675SRob Herring regulator-min-microvolt = <1800000>; 340724ba675SRob Herring regulator-max-microvolt = <1800000>; 341724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 342724ba675SRob Herring }; 343724ba675SRob Herring }; 344724ba675SRob Herring}; 345724ba675SRob Herring 346724ba675SRob Herring&sdcc1 { 347724ba675SRob Herring vmmc-supply = <&pm8921_l5>; 348724ba675SRob Herring vqmmc-supply = <&pm8921_s4>; 349724ba675SRob Herring status = "okay"; 350724ba675SRob Herring}; 351724ba675SRob Herring 352724ba675SRob Herring&sdcc3 { 353724ba675SRob Herring vmmc-supply = <&pm8921_l6>; 354724ba675SRob Herring cd-gpios = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>; 355724ba675SRob Herring 356724ba675SRob Herring pinctrl-names = "default"; 357724ba675SRob Herring pinctrl-0 = <&sdcc3_pins>, <&sdcc3_cd_pin_a>; 358724ba675SRob Herring 359724ba675SRob Herring status = "okay"; 360724ba675SRob Herring}; 361724ba675SRob Herring 362724ba675SRob Herring&tlmm_pinmux { 363724ba675SRob Herring gsbi5_uart_pin_a: gsbi5-uart-pin-active { 364724ba675SRob Herring rx { 365724ba675SRob Herring pins = "gpio52"; 366724ba675SRob Herring function = "gsbi5"; 367724ba675SRob Herring drive-strength = <2>; 368724ba675SRob Herring bias-pull-up; 369724ba675SRob Herring }; 370724ba675SRob Herring 371724ba675SRob Herring tx { 372724ba675SRob Herring pins = "gpio51"; 373724ba675SRob Herring function = "gsbi5"; 374724ba675SRob Herring drive-strength = <4>; 375724ba675SRob Herring bias-disable; 376724ba675SRob Herring }; 377724ba675SRob Herring }; 378724ba675SRob Herring 379724ba675SRob Herring 380724ba675SRob Herring sdcc3_cd_pin_a: sdcc3-cd-pin-active { 381724ba675SRob Herring pins = "gpio26"; 382724ba675SRob Herring function = "gpio"; 383724ba675SRob Herring 384724ba675SRob Herring drive-strength = <2>; 385724ba675SRob Herring bias-disable; 386724ba675SRob Herring }; 387724ba675SRob Herring}; 388724ba675SRob Herring 389724ba675SRob Herring&usb_hs1_phy { 390724ba675SRob Herring v3p3-supply = <&pm8921_l3>; 391724ba675SRob Herring v1p8-supply = <&pm8921_l4>; 392724ba675SRob Herring}; 393724ba675SRob Herring 394724ba675SRob Herring&usb1 { 395724ba675SRob Herring dr_mode = "otg"; 396724ba675SRob Herring status = "okay"; 397724ba675SRob Herring}; 398