1// SPDX-License-Identifier: GPL-2.0 2#include <dt-bindings/input/input.h> 3 4#include "qcom-msm8960.dtsi" 5 6/ { 7 model = "Qualcomm MSM8960 CDP"; 8 compatible = "qcom,msm8960-cdp", "qcom,msm8960"; 9 10 aliases { 11 serial0 = &gsbi5_serial; 12 }; 13 14 chosen { 15 stdout-path = "serial0:115200n8"; 16 }; 17 18 ext_l2: gpio-regulator { 19 compatible = "regulator-fixed"; 20 regulator-name = "ext_l2"; 21 gpio = <&msmgpio 91 0>; 22 startup-delay-us = <10000>; 23 enable-active-high; 24 }; 25}; 26 27&gsbi1 { 28 qcom,mode = <GSBI_PROT_SPI>; 29 pinctrl-names = "default"; 30 pinctrl-0 = <&spi1_default>; 31 status = "okay"; 32}; 33 34&gsbi1_spi { 35 status = "okay"; 36 37 ethernet@0 { 38 compatible = "micrel,ks8851"; 39 reg = <0>; 40 interrupt-parent = <&msmgpio>; 41 interrupts = <90 IRQ_TYPE_LEVEL_LOW>; 42 spi-max-frequency = <5400000>; 43 vdd-supply = <&ext_l2>; 44 vdd-io-supply = <&pm8921_lvs6>; 45 reset-gpios = <&msmgpio 89 0>; 46 }; 47}; 48 49&gsbi5 { 50 qcom,mode = <GSBI_PROT_I2C_UART>; 51 status = "okay"; 52}; 53 54&gsbi5_serial { 55 status = "okay"; 56}; 57 58&msmgpio { 59 spi1_default: spi1-default-state { 60 mosi-pins { 61 pins = "gpio6"; 62 function = "gsbi1"; 63 drive-strength = <12>; 64 bias-disable; 65 }; 66 67 miso-pins { 68 pins = "gpio7"; 69 function = "gsbi1"; 70 drive-strength = <12>; 71 bias-disable; 72 }; 73 74 cs-pins { 75 pins = "gpio8"; 76 function = "gsbi1"; 77 drive-strength = <12>; 78 bias-disable; 79 output-low; 80 }; 81 82 clk-pins { 83 pins = "gpio9"; 84 function = "gsbi1"; 85 drive-strength = <12>; 86 bias-disable; 87 }; 88 }; 89}; 90 91&pm8921 { 92 interrupts-extended = <&msmgpio 104 IRQ_TYPE_LEVEL_LOW>; 93}; 94 95&pm8921_keypad { 96 linux,keymap = < 97 MATRIX_KEY(0, 0, KEY_VOLUMEUP) 98 MATRIX_KEY(0, 1, KEY_VOLUMEDOWN) 99 MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS) 100 MATRIX_KEY(0, 3, KEY_CAMERA) 101 >; 102 keypad,num-rows = <1>; 103 keypad,num-columns = <5>; 104}; 105 106&rpm { 107 regulators { 108 compatible = "qcom,rpm-pm8921-regulators"; 109 vin_lvs1_3_6-supply = <&pm8921_s4>; 110 vin_lvs2-supply = <&pm8921_s4>; 111 vin_lvs4_5_7-supply = <&pm8921_s4>; 112 vdd_ncp-supply = <&pm8921_l6>; 113 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; 114 vdd_l21_l23_l29-supply = <&pm8921_s8>; 115 vdd_l24-supply = <&pm8921_s1>; 116 vdd_l25-supply = <&pm8921_s1>; 117 vdd_l27-supply = <&pm8921_s7>; 118 vdd_l28-supply = <&pm8921_s7>; 119 120 /* Buck SMPS */ 121 pm8921_s1: s1 { 122 regulator-always-on; 123 regulator-min-microvolt = <1225000>; 124 regulator-max-microvolt = <1225000>; 125 qcom,switch-mode-frequency = <3200000>; 126 bias-pull-down; 127 }; 128 129 pm8921_s2: s2 { 130 regulator-min-microvolt = <1300000>; 131 regulator-max-microvolt = <1300000>; 132 qcom,switch-mode-frequency = <1600000>; 133 bias-pull-down; 134 }; 135 136 pm8921_s3: s3 { 137 regulator-min-microvolt = <500000>; 138 regulator-max-microvolt = <1150000>; 139 qcom,switch-mode-frequency = <4800000>; 140 bias-pull-down; 141 }; 142 143 pm8921_s4: s4 { 144 regulator-always-on; 145 regulator-min-microvolt = <1800000>; 146 regulator-max-microvolt = <1800000>; 147 qcom,switch-mode-frequency = <1600000>; 148 bias-pull-down; 149 qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>; 150 }; 151 152 pm8921_s7: s7 { 153 regulator-min-microvolt = <1150000>; 154 regulator-max-microvolt = <1150000>; 155 qcom,switch-mode-frequency = <3200000>; 156 bias-pull-down; 157 }; 158 159 pm8921_s8: s8 { 160 regulator-always-on; 161 regulator-min-microvolt = <2050000>; 162 regulator-max-microvolt = <2050000>; 163 qcom,switch-mode-frequency = <1600000>; 164 bias-pull-down; 165 }; 166 167 /* PMOS LDO */ 168 pm8921_l1: l1 { 169 regulator-always-on; 170 regulator-min-microvolt = <1050000>; 171 regulator-max-microvolt = <1050000>; 172 bias-pull-down; 173 }; 174 175 pm8921_l2: l2 { 176 regulator-min-microvolt = <1200000>; 177 regulator-max-microvolt = <1200000>; 178 bias-pull-down; 179 }; 180 181 pm8921_l3: l3 { 182 regulator-min-microvolt = <3075000>; 183 regulator-max-microvolt = <3075000>; 184 bias-pull-down; 185 }; 186 187 pm8921_l4: l4 { 188 regulator-always-on; 189 regulator-min-microvolt = <1800000>; 190 regulator-max-microvolt = <1800000>; 191 bias-pull-down; 192 }; 193 194 pm8921_l5: l5 { 195 regulator-min-microvolt = <2950000>; 196 regulator-max-microvolt = <2950000>; 197 bias-pull-down; 198 }; 199 200 pm8921_l6: l6 { 201 regulator-min-microvolt = <2950000>; 202 regulator-max-microvolt = <2950000>; 203 bias-pull-down; 204 }; 205 206 pm8921_l7: l7 { 207 regulator-always-on; 208 regulator-min-microvolt = <1850000>; 209 regulator-max-microvolt = <2950000>; 210 bias-pull-down; 211 }; 212 213 pm8921_l8: l8 { 214 regulator-min-microvolt = <2800000>; 215 regulator-max-microvolt = <3000000>; 216 bias-pull-down; 217 }; 218 219 pm8921_l9: l9 { 220 regulator-min-microvolt = <3000000>; 221 regulator-max-microvolt = <3000000>; 222 bias-pull-down; 223 }; 224 225 pm8921_l10: l10 { 226 regulator-min-microvolt = <3000000>; 227 regulator-max-microvolt = <3000000>; 228 bias-pull-down; 229 }; 230 231 pm8921_l11: l11 { 232 regulator-min-microvolt = <2850000>; 233 regulator-max-microvolt = <2850000>; 234 bias-pull-down; 235 }; 236 237 pm8921_l12: l12 { 238 regulator-min-microvolt = <1200000>; 239 regulator-max-microvolt = <1200000>; 240 bias-pull-down; 241 }; 242 243 pm8921_l14: l14 { 244 regulator-min-microvolt = <1800000>; 245 regulator-max-microvolt = <1800000>; 246 bias-pull-down; 247 }; 248 249 pm8921_l15: l15 { 250 regulator-min-microvolt = <1800000>; 251 regulator-max-microvolt = <2950000>; 252 bias-pull-down; 253 }; 254 255 pm8921_l16: l16 { 256 regulator-min-microvolt = <2800000>; 257 regulator-max-microvolt = <2800000>; 258 bias-pull-down; 259 }; 260 261 pm8921_l17: l17 { 262 regulator-min-microvolt = <1800000>; 263 regulator-max-microvolt = <2950000>; 264 bias-pull-down; 265 }; 266 267 pm8921_l18: l18 { 268 regulator-min-microvolt = <1300000>; 269 regulator-max-microvolt = <1300000>; 270 bias-pull-down; 271 }; 272 273 pm8921_l21: l21 { 274 regulator-min-microvolt = <1900000>; 275 regulator-max-microvolt = <1900000>; 276 bias-pull-down; 277 }; 278 279 pm8921_l22: l22 { 280 regulator-min-microvolt = <2750000>; 281 regulator-max-microvolt = <2750000>; 282 bias-pull-down; 283 }; 284 285 pm8921_l23: l23 { 286 regulator-always-on; 287 regulator-min-microvolt = <1800000>; 288 regulator-max-microvolt = <1800000>; 289 bias-pull-down; 290 }; 291 292 pm8921_l24: l24 { 293 regulator-min-microvolt = <750000>; 294 regulator-max-microvolt = <1150000>; 295 bias-pull-down; 296 }; 297 298 pm8921_l25: l25 { 299 regulator-always-on; 300 regulator-min-microvolt = <1250000>; 301 regulator-max-microvolt = <1250000>; 302 bias-pull-down; 303 }; 304 305 /* Low Voltage Switch */ 306 pm8921_lvs1: lvs1 { 307 bias-pull-down; 308 }; 309 310 pm8921_lvs2: lvs2 { 311 bias-pull-down; 312 }; 313 314 pm8921_lvs3: lvs3 { 315 bias-pull-down; 316 }; 317 318 pm8921_lvs4: lvs4 { 319 bias-pull-down; 320 }; 321 322 pm8921_lvs5: lvs5 { 323 bias-pull-down; 324 }; 325 326 pm8921_lvs6: lvs6 { 327 bias-pull-down; 328 }; 329 330 pm8921_lvs7: lvs7 { 331 bias-pull-down; 332 }; 333 334 pm8921_ncp: ncp { 335 regulator-min-microvolt = <1800000>; 336 regulator-max-microvolt = <1800000>; 337 qcom,switch-mode-frequency = <1600000>; 338 }; 339 }; 340}; 341 342/* eMMC */ 343&sdcc1 { 344 status = "okay"; 345}; 346 347/* External micro SD card */ 348&sdcc3 { 349 status = "okay"; 350}; 351