1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring#include <dt-bindings/input/input.h> 3724ba675SRob Herring 4724ba675SRob Herring#include "qcom-msm8960.dtsi" 5*5c903b85SDmitry 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>; 105724ba675SRob Herring}; 106724ba675SRob Herring 107724ba675SRob Herring&rpm { 108724ba675SRob Herring regulators { 109724ba675SRob Herring compatible = "qcom,rpm-pm8921-regulators"; 110724ba675SRob Herring vin_lvs1_3_6-supply = <&pm8921_s4>; 111724ba675SRob Herring vin_lvs2-supply = <&pm8921_s4>; 112724ba675SRob Herring vin_lvs4_5_7-supply = <&pm8921_s4>; 113724ba675SRob Herring vdd_ncp-supply = <&pm8921_l6>; 114724ba675SRob Herring vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; 115724ba675SRob Herring vdd_l21_l23_l29-supply = <&pm8921_s8>; 116724ba675SRob Herring vdd_l24-supply = <&pm8921_s1>; 117724ba675SRob Herring vdd_l25-supply = <&pm8921_s1>; 118724ba675SRob Herring vdd_l27-supply = <&pm8921_s7>; 119724ba675SRob Herring vdd_l28-supply = <&pm8921_s7>; 120724ba675SRob Herring 121724ba675SRob Herring /* Buck SMPS */ 122724ba675SRob Herring pm8921_s1: s1 { 123724ba675SRob Herring regulator-always-on; 124724ba675SRob Herring regulator-min-microvolt = <1225000>; 125724ba675SRob Herring regulator-max-microvolt = <1225000>; 126724ba675SRob Herring qcom,switch-mode-frequency = <3200000>; 127724ba675SRob Herring bias-pull-down; 128724ba675SRob Herring }; 129724ba675SRob Herring 130724ba675SRob Herring pm8921_s2: s2 { 131724ba675SRob Herring regulator-min-microvolt = <1300000>; 132724ba675SRob Herring regulator-max-microvolt = <1300000>; 133724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 134724ba675SRob Herring bias-pull-down; 135724ba675SRob Herring }; 136724ba675SRob Herring 137724ba675SRob Herring pm8921_s3: s3 { 138724ba675SRob Herring regulator-min-microvolt = <500000>; 139724ba675SRob Herring regulator-max-microvolt = <1150000>; 140724ba675SRob Herring qcom,switch-mode-frequency = <4800000>; 141724ba675SRob Herring bias-pull-down; 142724ba675SRob Herring }; 143724ba675SRob Herring 144724ba675SRob Herring pm8921_s4: s4 { 145724ba675SRob Herring regulator-always-on; 146724ba675SRob Herring regulator-min-microvolt = <1800000>; 147724ba675SRob Herring regulator-max-microvolt = <1800000>; 148724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 149724ba675SRob Herring bias-pull-down; 150724ba675SRob Herring qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>; 151724ba675SRob Herring }; 152724ba675SRob Herring 153724ba675SRob Herring pm8921_s7: s7 { 154724ba675SRob Herring regulator-min-microvolt = <1150000>; 155724ba675SRob Herring regulator-max-microvolt = <1150000>; 156724ba675SRob Herring qcom,switch-mode-frequency = <3200000>; 157724ba675SRob Herring bias-pull-down; 158724ba675SRob Herring }; 159724ba675SRob Herring 160724ba675SRob Herring pm8921_s8: s8 { 161724ba675SRob Herring regulator-always-on; 162724ba675SRob Herring regulator-min-microvolt = <2050000>; 163724ba675SRob Herring regulator-max-microvolt = <2050000>; 164724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 165724ba675SRob Herring bias-pull-down; 166724ba675SRob Herring }; 167724ba675SRob Herring 168724ba675SRob Herring /* PMOS LDO */ 169724ba675SRob Herring pm8921_l1: l1 { 170724ba675SRob Herring regulator-always-on; 171724ba675SRob Herring regulator-min-microvolt = <1050000>; 172724ba675SRob Herring regulator-max-microvolt = <1050000>; 173724ba675SRob Herring bias-pull-down; 174724ba675SRob Herring }; 175724ba675SRob Herring 176724ba675SRob Herring pm8921_l2: l2 { 177724ba675SRob Herring regulator-min-microvolt = <1200000>; 178724ba675SRob Herring regulator-max-microvolt = <1200000>; 179724ba675SRob Herring bias-pull-down; 180724ba675SRob Herring }; 181724ba675SRob Herring 182724ba675SRob Herring pm8921_l3: l3 { 183724ba675SRob Herring regulator-min-microvolt = <3075000>; 184724ba675SRob Herring regulator-max-microvolt = <3075000>; 185724ba675SRob Herring bias-pull-down; 186724ba675SRob Herring }; 187724ba675SRob Herring 188724ba675SRob Herring pm8921_l4: l4 { 189724ba675SRob Herring regulator-always-on; 190724ba675SRob Herring regulator-min-microvolt = <1800000>; 191724ba675SRob Herring regulator-max-microvolt = <1800000>; 192724ba675SRob Herring bias-pull-down; 193724ba675SRob Herring }; 194724ba675SRob Herring 195724ba675SRob Herring pm8921_l5: l5 { 196724ba675SRob Herring regulator-min-microvolt = <2950000>; 197724ba675SRob Herring regulator-max-microvolt = <2950000>; 198724ba675SRob Herring bias-pull-down; 199724ba675SRob Herring }; 200724ba675SRob Herring 201724ba675SRob Herring pm8921_l6: l6 { 202724ba675SRob Herring regulator-min-microvolt = <2950000>; 203724ba675SRob Herring regulator-max-microvolt = <2950000>; 204724ba675SRob Herring bias-pull-down; 205724ba675SRob Herring }; 206724ba675SRob Herring 207724ba675SRob Herring pm8921_l7: l7 { 208724ba675SRob Herring regulator-always-on; 209724ba675SRob Herring regulator-min-microvolt = <1850000>; 210724ba675SRob Herring regulator-max-microvolt = <2950000>; 211724ba675SRob Herring bias-pull-down; 212724ba675SRob Herring }; 213724ba675SRob Herring 214724ba675SRob Herring pm8921_l8: l8 { 215724ba675SRob Herring regulator-min-microvolt = <2800000>; 216724ba675SRob Herring regulator-max-microvolt = <3000000>; 217724ba675SRob Herring bias-pull-down; 218724ba675SRob Herring }; 219724ba675SRob Herring 220724ba675SRob Herring pm8921_l9: l9 { 221724ba675SRob Herring regulator-min-microvolt = <3000000>; 222724ba675SRob Herring regulator-max-microvolt = <3000000>; 223724ba675SRob Herring bias-pull-down; 224724ba675SRob Herring }; 225724ba675SRob Herring 226724ba675SRob Herring pm8921_l10: l10 { 227724ba675SRob Herring regulator-min-microvolt = <3000000>; 228724ba675SRob Herring regulator-max-microvolt = <3000000>; 229724ba675SRob Herring bias-pull-down; 230724ba675SRob Herring }; 231724ba675SRob Herring 232724ba675SRob Herring pm8921_l11: l11 { 233724ba675SRob Herring regulator-min-microvolt = <2850000>; 234724ba675SRob Herring regulator-max-microvolt = <2850000>; 235724ba675SRob Herring bias-pull-down; 236724ba675SRob Herring }; 237724ba675SRob Herring 238724ba675SRob Herring pm8921_l12: l12 { 239724ba675SRob Herring regulator-min-microvolt = <1200000>; 240724ba675SRob Herring regulator-max-microvolt = <1200000>; 241724ba675SRob Herring bias-pull-down; 242724ba675SRob Herring }; 243724ba675SRob Herring 244724ba675SRob Herring pm8921_l14: l14 { 245724ba675SRob Herring regulator-min-microvolt = <1800000>; 246724ba675SRob Herring regulator-max-microvolt = <1800000>; 247724ba675SRob Herring bias-pull-down; 248724ba675SRob Herring }; 249724ba675SRob Herring 250724ba675SRob Herring pm8921_l15: l15 { 251724ba675SRob Herring regulator-min-microvolt = <1800000>; 252724ba675SRob Herring regulator-max-microvolt = <2950000>; 253724ba675SRob Herring bias-pull-down; 254724ba675SRob Herring }; 255724ba675SRob Herring 256724ba675SRob Herring pm8921_l16: l16 { 257724ba675SRob Herring regulator-min-microvolt = <2800000>; 258724ba675SRob Herring regulator-max-microvolt = <2800000>; 259724ba675SRob Herring bias-pull-down; 260724ba675SRob Herring }; 261724ba675SRob Herring 262724ba675SRob Herring pm8921_l17: l17 { 263724ba675SRob Herring regulator-min-microvolt = <1800000>; 264724ba675SRob Herring regulator-max-microvolt = <2950000>; 265724ba675SRob Herring bias-pull-down; 266724ba675SRob Herring }; 267724ba675SRob Herring 268724ba675SRob Herring pm8921_l18: l18 { 269724ba675SRob Herring regulator-min-microvolt = <1300000>; 270724ba675SRob Herring regulator-max-microvolt = <1300000>; 271724ba675SRob Herring bias-pull-down; 272724ba675SRob Herring }; 273724ba675SRob Herring 274724ba675SRob Herring pm8921_l21: l21 { 275724ba675SRob Herring regulator-min-microvolt = <1900000>; 276724ba675SRob Herring regulator-max-microvolt = <1900000>; 277724ba675SRob Herring bias-pull-down; 278724ba675SRob Herring }; 279724ba675SRob Herring 280724ba675SRob Herring pm8921_l22: l22 { 281724ba675SRob Herring regulator-min-microvolt = <2750000>; 282724ba675SRob Herring regulator-max-microvolt = <2750000>; 283724ba675SRob Herring bias-pull-down; 284724ba675SRob Herring }; 285724ba675SRob Herring 286724ba675SRob Herring pm8921_l23: l23 { 287724ba675SRob Herring regulator-always-on; 288724ba675SRob Herring regulator-min-microvolt = <1800000>; 289724ba675SRob Herring regulator-max-microvolt = <1800000>; 290724ba675SRob Herring bias-pull-down; 291724ba675SRob Herring }; 292724ba675SRob Herring 293724ba675SRob Herring pm8921_l24: l24 { 294724ba675SRob Herring regulator-min-microvolt = <750000>; 295724ba675SRob Herring regulator-max-microvolt = <1150000>; 296724ba675SRob Herring bias-pull-down; 297724ba675SRob Herring }; 298724ba675SRob Herring 299724ba675SRob Herring pm8921_l25: l25 { 300724ba675SRob Herring regulator-always-on; 301724ba675SRob Herring regulator-min-microvolt = <1250000>; 302724ba675SRob Herring regulator-max-microvolt = <1250000>; 303724ba675SRob Herring bias-pull-down; 304724ba675SRob Herring }; 305724ba675SRob Herring 306724ba675SRob Herring /* Low Voltage Switch */ 307724ba675SRob Herring pm8921_lvs1: lvs1 { 308724ba675SRob Herring bias-pull-down; 309724ba675SRob Herring }; 310724ba675SRob Herring 311724ba675SRob Herring pm8921_lvs2: lvs2 { 312724ba675SRob Herring bias-pull-down; 313724ba675SRob Herring }; 314724ba675SRob Herring 315724ba675SRob Herring pm8921_lvs3: lvs3 { 316724ba675SRob Herring bias-pull-down; 317724ba675SRob Herring }; 318724ba675SRob Herring 319724ba675SRob Herring pm8921_lvs4: lvs4 { 320724ba675SRob Herring bias-pull-down; 321724ba675SRob Herring }; 322724ba675SRob Herring 323724ba675SRob Herring pm8921_lvs5: lvs5 { 324724ba675SRob Herring bias-pull-down; 325724ba675SRob Herring }; 326724ba675SRob Herring 327724ba675SRob Herring pm8921_lvs6: lvs6 { 328724ba675SRob Herring bias-pull-down; 329724ba675SRob Herring }; 330724ba675SRob Herring 331724ba675SRob Herring pm8921_lvs7: lvs7 { 332724ba675SRob Herring bias-pull-down; 333724ba675SRob Herring }; 334724ba675SRob Herring 335724ba675SRob Herring pm8921_ncp: ncp { 336724ba675SRob Herring regulator-min-microvolt = <1800000>; 337724ba675SRob Herring regulator-max-microvolt = <1800000>; 338724ba675SRob Herring qcom,switch-mode-frequency = <1600000>; 339724ba675SRob Herring }; 340724ba675SRob Herring }; 341724ba675SRob Herring}; 342724ba675SRob Herring 343724ba675SRob Herring/* eMMC */ 344724ba675SRob Herring&sdcc1 { 345724ba675SRob Herring status = "okay"; 346724ba675SRob Herring}; 347724ba675SRob Herring 348724ba675SRob Herring/* External micro SD card */ 349724ba675SRob Herring&sdcc3 { 350724ba675SRob Herring status = "okay"; 351724ba675SRob Herring}; 352