1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring#include <dt-bindings/input/input.h> 3724ba675SRob Herring 4724ba675SRob Herring#include "qcom-msm8960.dtsi" 55c903b85SDmitry Baryshkov#include "pm8921.dtsi" 6724ba675SRob Herring 7724ba675SRob Herring/ { 8724ba675SRob Herring model = "Qualcomm MSM8960 CDP"; 9724ba675SRob Herring compatible = "qcom,msm8960-cdp", "qcom,msm8960"; 10724ba675SRob Herring 11724ba675SRob Herring aliases { 12724ba675SRob Herring serial0 = &gsbi5_serial; 13724ba675SRob Herring }; 14724ba675SRob Herring 15724ba675SRob Herring chosen { 16724ba675SRob Herring stdout-path = "serial0:115200n8"; 17724ba675SRob Herring }; 18724ba675SRob Herring 19724ba675SRob Herring ext_l2: gpio-regulator { 20724ba675SRob Herring compatible = "regulator-fixed"; 21724ba675SRob Herring regulator-name = "ext_l2"; 22724ba675SRob Herring gpio = <&msmgpio 91 0>; 23724ba675SRob Herring startup-delay-us = <10000>; 24724ba675SRob Herring enable-active-high; 25724ba675SRob Herring }; 26724ba675SRob Herring}; 27724ba675SRob Herring 28724ba675SRob Herring&gsbi1 { 29724ba675SRob Herring qcom,mode = <GSBI_PROT_SPI>; 30724ba675SRob Herring pinctrl-names = "default"; 31724ba675SRob Herring pinctrl-0 = <&spi1_default>; 32724ba675SRob Herring status = "okay"; 33724ba675SRob Herring}; 34724ba675SRob Herring 35724ba675SRob Herring&gsbi1_spi { 36724ba675SRob Herring status = "okay"; 37724ba675SRob Herring 38724ba675SRob Herring ethernet@0 { 39724ba675SRob Herring compatible = "micrel,ks8851"; 40724ba675SRob Herring reg = <0>; 41724ba675SRob Herring interrupt-parent = <&msmgpio>; 42724ba675SRob Herring interrupts = <90 IRQ_TYPE_LEVEL_LOW>; 43724ba675SRob Herring spi-max-frequency = <5400000>; 44724ba675SRob Herring vdd-supply = <&ext_l2>; 45724ba675SRob Herring vdd-io-supply = <&pm8921_lvs6>; 46724ba675SRob Herring reset-gpios = <&msmgpio 89 0>; 47724ba675SRob Herring }; 48724ba675SRob Herring}; 49724ba675SRob Herring 50724ba675SRob Herring&gsbi5 { 51724ba675SRob Herring qcom,mode = <GSBI_PROT_I2C_UART>; 52724ba675SRob Herring status = "okay"; 53724ba675SRob Herring}; 54724ba675SRob Herring 55724ba675SRob Herring&gsbi5_serial { 56724ba675SRob Herring status = "okay"; 57724ba675SRob Herring}; 58724ba675SRob Herring 59724ba675SRob Herring&msmgpio { 60724ba675SRob Herring spi1_default: spi1-default-state { 61724ba675SRob Herring mosi-pins { 62724ba675SRob Herring pins = "gpio6"; 63724ba675SRob Herring function = "gsbi1"; 64724ba675SRob Herring drive-strength = <12>; 65724ba675SRob Herring bias-disable; 66724ba675SRob Herring }; 67724ba675SRob Herring 68724ba675SRob Herring miso-pins { 69724ba675SRob Herring pins = "gpio7"; 70724ba675SRob Herring function = "gsbi1"; 71724ba675SRob Herring drive-strength = <12>; 72724ba675SRob Herring bias-disable; 73724ba675SRob Herring }; 74724ba675SRob Herring 75724ba675SRob Herring cs-pins { 76724ba675SRob Herring pins = "gpio8"; 77724ba675SRob Herring function = "gsbi1"; 78724ba675SRob Herring drive-strength = <12>; 79724ba675SRob Herring bias-disable; 80724ba675SRob Herring output-low; 81724ba675SRob Herring }; 82724ba675SRob Herring 83724ba675SRob Herring clk-pins { 84724ba675SRob Herring pins = "gpio9"; 85724ba675SRob Herring function = "gsbi1"; 86724ba675SRob Herring drive-strength = <12>; 87724ba675SRob Herring bias-disable; 88724ba675SRob Herring }; 89724ba675SRob Herring }; 90724ba675SRob Herring}; 91724ba675SRob Herring 9231c4b741SDmitry Baryshkov&pm8921 { 9331c4b741SDmitry Baryshkov interrupts-extended = <&msmgpio 104 IRQ_TYPE_LEVEL_LOW>; 9431c4b741SDmitry Baryshkov}; 9531c4b741SDmitry Baryshkov 966b605696SDmitry Baryshkov&pm8921_keypad { 97724ba675SRob Herring linux,keymap = < 98724ba675SRob Herring MATRIX_KEY(0, 0, KEY_VOLUMEUP) 99724ba675SRob Herring MATRIX_KEY(0, 1, KEY_VOLUMEDOWN) 100724ba675SRob Herring MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS) 101724ba675SRob Herring MATRIX_KEY(0, 3, KEY_CAMERA) 102724ba675SRob Herring >; 103724ba675SRob Herring keypad,num-rows = <1>; 104724ba675SRob Herring keypad,num-columns = <5>; 105*61023dd0SDmitry Baryshkov 106*61023dd0SDmitry Baryshkov status = "okay"; 107724ba675SRob Herring}; 108724ba675SRob Herring 109724ba675SRob Herring&rpm { 110724ba675SRob Herring regulators { 111724ba675SRob Herring compatible = "qcom,rpm-pm8921-regulators"; 112724ba675SRob Herring vin_lvs1_3_6-supply = <&pm8921_s4>; 113724ba675SRob Herring vin_lvs2-supply = <&pm8921_s4>; 114724ba675SRob Herring vin_lvs4_5_7-supply = <&pm8921_s4>; 115724ba675SRob Herring vdd_ncp-supply = <&pm8921_l6>; 116724ba675SRob Herring vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; 117724ba675SRob Herring vdd_l21_l23_l29-supply = <&pm8921_s8>; 118724ba675SRob Herring vdd_l24-supply = <&pm8921_s1>; 119724ba675SRob Herring vdd_l25-supply = <&pm8921_s1>; 120724ba675SRob Herring vdd_l27-supply = <&pm8921_s7>; 121724ba675SRob Herring vdd_l28-supply = <&pm8921_s7>; 122724ba675SRob Herring 123724ba675SRob Herring /* Buck SMPS */ 124724ba675SRob Herring pm8921_s1: s1 { 125724ba675SRob Herring regulator-always-on; 126724ba675SRob Herring regulator-min-microvolt = <1225000>; 127724ba675SRob Herring regulator-max-microvolt = <1225000>; 128724ba675SRob Herring qcom,switch-mode-frequency = <3200000>; 129724ba675SRob Herring bias-pull-down; 130724ba675SRob Herring }; 131724ba675SRob Herring 132724ba675SRob Herring pm8921_s2: s2 { 133724ba675SRob Herring regulator-min-microvolt = <1300000>; 134724ba675SRob Herring regulator-max-microvolt = <1300000>; 135724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 136724ba675SRob Herring bias-pull-down; 137724ba675SRob Herring }; 138724ba675SRob Herring 139724ba675SRob Herring pm8921_s3: s3 { 140724ba675SRob Herring regulator-min-microvolt = <500000>; 141724ba675SRob Herring regulator-max-microvolt = <1150000>; 142724ba675SRob Herring qcom,switch-mode-frequency = <4800000>; 143724ba675SRob Herring bias-pull-down; 144724ba675SRob Herring }; 145724ba675SRob Herring 146724ba675SRob Herring pm8921_s4: s4 { 147724ba675SRob Herring regulator-always-on; 148724ba675SRob Herring regulator-min-microvolt = <1800000>; 149724ba675SRob Herring regulator-max-microvolt = <1800000>; 150724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 151724ba675SRob Herring bias-pull-down; 152724ba675SRob Herring qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>; 153724ba675SRob Herring }; 154724ba675SRob Herring 155724ba675SRob Herring pm8921_s7: s7 { 156724ba675SRob Herring regulator-min-microvolt = <1150000>; 157724ba675SRob Herring regulator-max-microvolt = <1150000>; 158724ba675SRob Herring qcom,switch-mode-frequency = <3200000>; 159724ba675SRob Herring bias-pull-down; 160724ba675SRob Herring }; 161724ba675SRob Herring 162724ba675SRob Herring pm8921_s8: s8 { 163724ba675SRob Herring regulator-always-on; 164724ba675SRob Herring regulator-min-microvolt = <2050000>; 165724ba675SRob Herring regulator-max-microvolt = <2050000>; 166724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 167724ba675SRob Herring bias-pull-down; 168724ba675SRob Herring }; 169724ba675SRob Herring 170724ba675SRob Herring /* PMOS LDO */ 171724ba675SRob Herring pm8921_l1: l1 { 172724ba675SRob Herring regulator-always-on; 173724ba675SRob Herring regulator-min-microvolt = <1050000>; 174724ba675SRob Herring regulator-max-microvolt = <1050000>; 175724ba675SRob Herring bias-pull-down; 176724ba675SRob Herring }; 177724ba675SRob Herring 178724ba675SRob Herring pm8921_l2: l2 { 179724ba675SRob Herring regulator-min-microvolt = <1200000>; 180724ba675SRob Herring regulator-max-microvolt = <1200000>; 181724ba675SRob Herring bias-pull-down; 182724ba675SRob Herring }; 183724ba675SRob Herring 184724ba675SRob Herring pm8921_l3: l3 { 185724ba675SRob Herring regulator-min-microvolt = <3075000>; 186724ba675SRob Herring regulator-max-microvolt = <3075000>; 187724ba675SRob Herring bias-pull-down; 188724ba675SRob Herring }; 189724ba675SRob Herring 190724ba675SRob Herring pm8921_l4: l4 { 191724ba675SRob Herring regulator-always-on; 192724ba675SRob Herring regulator-min-microvolt = <1800000>; 193724ba675SRob Herring regulator-max-microvolt = <1800000>; 194724ba675SRob Herring bias-pull-down; 195724ba675SRob Herring }; 196724ba675SRob Herring 197724ba675SRob Herring pm8921_l5: l5 { 198724ba675SRob Herring regulator-min-microvolt = <2950000>; 199724ba675SRob Herring regulator-max-microvolt = <2950000>; 200724ba675SRob Herring bias-pull-down; 201724ba675SRob Herring }; 202724ba675SRob Herring 203724ba675SRob Herring pm8921_l6: l6 { 204724ba675SRob Herring regulator-min-microvolt = <2950000>; 205724ba675SRob Herring regulator-max-microvolt = <2950000>; 206724ba675SRob Herring bias-pull-down; 207724ba675SRob Herring }; 208724ba675SRob Herring 209724ba675SRob Herring pm8921_l7: l7 { 210724ba675SRob Herring regulator-always-on; 211724ba675SRob Herring regulator-min-microvolt = <1850000>; 212724ba675SRob Herring regulator-max-microvolt = <2950000>; 213724ba675SRob Herring bias-pull-down; 214724ba675SRob Herring }; 215724ba675SRob Herring 216724ba675SRob Herring pm8921_l8: l8 { 217724ba675SRob Herring regulator-min-microvolt = <2800000>; 218724ba675SRob Herring regulator-max-microvolt = <3000000>; 219724ba675SRob Herring bias-pull-down; 220724ba675SRob Herring }; 221724ba675SRob Herring 222724ba675SRob Herring pm8921_l9: l9 { 223724ba675SRob Herring regulator-min-microvolt = <3000000>; 224724ba675SRob Herring regulator-max-microvolt = <3000000>; 225724ba675SRob Herring bias-pull-down; 226724ba675SRob Herring }; 227724ba675SRob Herring 228724ba675SRob Herring pm8921_l10: l10 { 229724ba675SRob Herring regulator-min-microvolt = <3000000>; 230724ba675SRob Herring regulator-max-microvolt = <3000000>; 231724ba675SRob Herring bias-pull-down; 232724ba675SRob Herring }; 233724ba675SRob Herring 234724ba675SRob Herring pm8921_l11: l11 { 235724ba675SRob Herring regulator-min-microvolt = <2850000>; 236724ba675SRob Herring regulator-max-microvolt = <2850000>; 237724ba675SRob Herring bias-pull-down; 238724ba675SRob Herring }; 239724ba675SRob Herring 240724ba675SRob Herring pm8921_l12: l12 { 241724ba675SRob Herring regulator-min-microvolt = <1200000>; 242724ba675SRob Herring regulator-max-microvolt = <1200000>; 243724ba675SRob Herring bias-pull-down; 244724ba675SRob Herring }; 245724ba675SRob Herring 246724ba675SRob Herring pm8921_l14: l14 { 247724ba675SRob Herring regulator-min-microvolt = <1800000>; 248724ba675SRob Herring regulator-max-microvolt = <1800000>; 249724ba675SRob Herring bias-pull-down; 250724ba675SRob Herring }; 251724ba675SRob Herring 252724ba675SRob Herring pm8921_l15: l15 { 253724ba675SRob Herring regulator-min-microvolt = <1800000>; 254724ba675SRob Herring regulator-max-microvolt = <2950000>; 255724ba675SRob Herring bias-pull-down; 256724ba675SRob Herring }; 257724ba675SRob Herring 258724ba675SRob Herring pm8921_l16: l16 { 259724ba675SRob Herring regulator-min-microvolt = <2800000>; 260724ba675SRob Herring regulator-max-microvolt = <2800000>; 261724ba675SRob Herring bias-pull-down; 262724ba675SRob Herring }; 263724ba675SRob Herring 264724ba675SRob Herring pm8921_l17: l17 { 265724ba675SRob Herring regulator-min-microvolt = <1800000>; 266724ba675SRob Herring regulator-max-microvolt = <2950000>; 267724ba675SRob Herring bias-pull-down; 268724ba675SRob Herring }; 269724ba675SRob Herring 270724ba675SRob Herring pm8921_l18: l18 { 271724ba675SRob Herring regulator-min-microvolt = <1300000>; 272724ba675SRob Herring regulator-max-microvolt = <1300000>; 273724ba675SRob Herring bias-pull-down; 274724ba675SRob Herring }; 275724ba675SRob Herring 276724ba675SRob Herring pm8921_l21: l21 { 277724ba675SRob Herring regulator-min-microvolt = <1900000>; 278724ba675SRob Herring regulator-max-microvolt = <1900000>; 279724ba675SRob Herring bias-pull-down; 280724ba675SRob Herring }; 281724ba675SRob Herring 282724ba675SRob Herring pm8921_l22: l22 { 283724ba675SRob Herring regulator-min-microvolt = <2750000>; 284724ba675SRob Herring regulator-max-microvolt = <2750000>; 285724ba675SRob Herring bias-pull-down; 286724ba675SRob Herring }; 287724ba675SRob Herring 288724ba675SRob Herring pm8921_l23: l23 { 289724ba675SRob Herring regulator-always-on; 290724ba675SRob Herring regulator-min-microvolt = <1800000>; 291724ba675SRob Herring regulator-max-microvolt = <1800000>; 292724ba675SRob Herring bias-pull-down; 293724ba675SRob Herring }; 294724ba675SRob Herring 295724ba675SRob Herring pm8921_l24: l24 { 296724ba675SRob Herring regulator-min-microvolt = <750000>; 297724ba675SRob Herring regulator-max-microvolt = <1150000>; 298724ba675SRob Herring bias-pull-down; 299724ba675SRob Herring }; 300724ba675SRob Herring 301724ba675SRob Herring pm8921_l25: l25 { 302724ba675SRob Herring regulator-always-on; 303724ba675SRob Herring regulator-min-microvolt = <1250000>; 304724ba675SRob Herring regulator-max-microvolt = <1250000>; 305724ba675SRob Herring bias-pull-down; 306724ba675SRob Herring }; 307724ba675SRob Herring 308724ba675SRob Herring /* Low Voltage Switch */ 309724ba675SRob Herring pm8921_lvs1: lvs1 { 310724ba675SRob Herring bias-pull-down; 311724ba675SRob Herring }; 312724ba675SRob Herring 313724ba675SRob Herring pm8921_lvs2: lvs2 { 314724ba675SRob Herring bias-pull-down; 315724ba675SRob Herring }; 316724ba675SRob Herring 317724ba675SRob Herring pm8921_lvs3: lvs3 { 318724ba675SRob Herring bias-pull-down; 319724ba675SRob Herring }; 320724ba675SRob Herring 321724ba675SRob Herring pm8921_lvs4: lvs4 { 322724ba675SRob Herring bias-pull-down; 323724ba675SRob Herring }; 324724ba675SRob Herring 325724ba675SRob Herring pm8921_lvs5: lvs5 { 326724ba675SRob Herring bias-pull-down; 327724ba675SRob Herring }; 328724ba675SRob Herring 329724ba675SRob Herring pm8921_lvs6: lvs6 { 330724ba675SRob Herring bias-pull-down; 331724ba675SRob Herring }; 332724ba675SRob Herring 333724ba675SRob Herring pm8921_lvs7: lvs7 { 334724ba675SRob Herring bias-pull-down; 335724ba675SRob Herring }; 336724ba675SRob Herring 337724ba675SRob Herring pm8921_ncp: ncp { 338724ba675SRob Herring regulator-min-microvolt = <1800000>; 339724ba675SRob Herring regulator-max-microvolt = <1800000>; 340724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 341724ba675SRob Herring }; 342724ba675SRob Herring }; 343724ba675SRob Herring}; 344724ba675SRob Herring 345724ba675SRob Herring/* eMMC */ 346724ba675SRob Herring&sdcc1 { 347724ba675SRob Herring status = "okay"; 348724ba675SRob Herring}; 349724ba675SRob Herring 350724ba675SRob Herring/* External micro SD card */ 351724ba675SRob Herring&sdcc3 { 352724ba675SRob Herring status = "okay"; 353724ba675SRob Herring}; 354