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_keypad { 92 linux,keymap = < 93 MATRIX_KEY(0, 0, KEY_VOLUMEUP) 94 MATRIX_KEY(0, 1, KEY_VOLUMEDOWN) 95 MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS) 96 MATRIX_KEY(0, 3, KEY_CAMERA) 97 >; 98 keypad,num-rows = <1>; 99 keypad,num-columns = <5>; 100}; 101 102&rpm { 103 regulators { 104 compatible = "qcom,rpm-pm8921-regulators"; 105 vin_lvs1_3_6-supply = <&pm8921_s4>; 106 vin_lvs2-supply = <&pm8921_s4>; 107 vin_lvs4_5_7-supply = <&pm8921_s4>; 108 vdd_ncp-supply = <&pm8921_l6>; 109 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; 110 vdd_l21_l23_l29-supply = <&pm8921_s8>; 111 vdd_l24-supply = <&pm8921_s1>; 112 vdd_l25-supply = <&pm8921_s1>; 113 vdd_l27-supply = <&pm8921_s7>; 114 vdd_l28-supply = <&pm8921_s7>; 115 116 /* Buck SMPS */ 117 pm8921_s1: s1 { 118 regulator-always-on; 119 regulator-min-microvolt = <1225000>; 120 regulator-max-microvolt = <1225000>; 121 qcom,switch-mode-frequency = <3200000>; 122 bias-pull-down; 123 }; 124 125 pm8921_s2: s2 { 126 regulator-min-microvolt = <1300000>; 127 regulator-max-microvolt = <1300000>; 128 qcom,switch-mode-frequency = <1600000>; 129 bias-pull-down; 130 }; 131 132 pm8921_s3: s3 { 133 regulator-min-microvolt = <500000>; 134 regulator-max-microvolt = <1150000>; 135 qcom,switch-mode-frequency = <4800000>; 136 bias-pull-down; 137 }; 138 139 pm8921_s4: s4 { 140 regulator-always-on; 141 regulator-min-microvolt = <1800000>; 142 regulator-max-microvolt = <1800000>; 143 qcom,switch-mode-frequency = <1600000>; 144 bias-pull-down; 145 qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>; 146 }; 147 148 pm8921_s7: s7 { 149 regulator-min-microvolt = <1150000>; 150 regulator-max-microvolt = <1150000>; 151 qcom,switch-mode-frequency = <3200000>; 152 bias-pull-down; 153 }; 154 155 pm8921_s8: s8 { 156 regulator-always-on; 157 regulator-min-microvolt = <2050000>; 158 regulator-max-microvolt = <2050000>; 159 qcom,switch-mode-frequency = <1600000>; 160 bias-pull-down; 161 }; 162 163 /* PMOS LDO */ 164 pm8921_l1: l1 { 165 regulator-always-on; 166 regulator-min-microvolt = <1050000>; 167 regulator-max-microvolt = <1050000>; 168 bias-pull-down; 169 }; 170 171 pm8921_l2: l2 { 172 regulator-min-microvolt = <1200000>; 173 regulator-max-microvolt = <1200000>; 174 bias-pull-down; 175 }; 176 177 pm8921_l3: l3 { 178 regulator-min-microvolt = <3075000>; 179 regulator-max-microvolt = <3075000>; 180 bias-pull-down; 181 }; 182 183 pm8921_l4: l4 { 184 regulator-always-on; 185 regulator-min-microvolt = <1800000>; 186 regulator-max-microvolt = <1800000>; 187 bias-pull-down; 188 }; 189 190 pm8921_l5: l5 { 191 regulator-min-microvolt = <2950000>; 192 regulator-max-microvolt = <2950000>; 193 bias-pull-down; 194 }; 195 196 pm8921_l6: l6 { 197 regulator-min-microvolt = <2950000>; 198 regulator-max-microvolt = <2950000>; 199 bias-pull-down; 200 }; 201 202 pm8921_l7: l7 { 203 regulator-always-on; 204 regulator-min-microvolt = <1850000>; 205 regulator-max-microvolt = <2950000>; 206 bias-pull-down; 207 }; 208 209 pm8921_l8: l8 { 210 regulator-min-microvolt = <2800000>; 211 regulator-max-microvolt = <3000000>; 212 bias-pull-down; 213 }; 214 215 pm8921_l9: l9 { 216 regulator-min-microvolt = <3000000>; 217 regulator-max-microvolt = <3000000>; 218 bias-pull-down; 219 }; 220 221 pm8921_l10: l10 { 222 regulator-min-microvolt = <3000000>; 223 regulator-max-microvolt = <3000000>; 224 bias-pull-down; 225 }; 226 227 pm8921_l11: l11 { 228 regulator-min-microvolt = <2850000>; 229 regulator-max-microvolt = <2850000>; 230 bias-pull-down; 231 }; 232 233 pm8921_l12: l12 { 234 regulator-min-microvolt = <1200000>; 235 regulator-max-microvolt = <1200000>; 236 bias-pull-down; 237 }; 238 239 pm8921_l14: l14 { 240 regulator-min-microvolt = <1800000>; 241 regulator-max-microvolt = <1800000>; 242 bias-pull-down; 243 }; 244 245 pm8921_l15: l15 { 246 regulator-min-microvolt = <1800000>; 247 regulator-max-microvolt = <2950000>; 248 bias-pull-down; 249 }; 250 251 pm8921_l16: l16 { 252 regulator-min-microvolt = <2800000>; 253 regulator-max-microvolt = <2800000>; 254 bias-pull-down; 255 }; 256 257 pm8921_l17: l17 { 258 regulator-min-microvolt = <1800000>; 259 regulator-max-microvolt = <2950000>; 260 bias-pull-down; 261 }; 262 263 pm8921_l18: l18 { 264 regulator-min-microvolt = <1300000>; 265 regulator-max-microvolt = <1300000>; 266 bias-pull-down; 267 }; 268 269 pm8921_l21: l21 { 270 regulator-min-microvolt = <1900000>; 271 regulator-max-microvolt = <1900000>; 272 bias-pull-down; 273 }; 274 275 pm8921_l22: l22 { 276 regulator-min-microvolt = <2750000>; 277 regulator-max-microvolt = <2750000>; 278 bias-pull-down; 279 }; 280 281 pm8921_l23: l23 { 282 regulator-always-on; 283 regulator-min-microvolt = <1800000>; 284 regulator-max-microvolt = <1800000>; 285 bias-pull-down; 286 }; 287 288 pm8921_l24: l24 { 289 regulator-min-microvolt = <750000>; 290 regulator-max-microvolt = <1150000>; 291 bias-pull-down; 292 }; 293 294 pm8921_l25: l25 { 295 regulator-always-on; 296 regulator-min-microvolt = <1250000>; 297 regulator-max-microvolt = <1250000>; 298 bias-pull-down; 299 }; 300 301 /* Low Voltage Switch */ 302 pm8921_lvs1: lvs1 { 303 bias-pull-down; 304 }; 305 306 pm8921_lvs2: lvs2 { 307 bias-pull-down; 308 }; 309 310 pm8921_lvs3: lvs3 { 311 bias-pull-down; 312 }; 313 314 pm8921_lvs4: lvs4 { 315 bias-pull-down; 316 }; 317 318 pm8921_lvs5: lvs5 { 319 bias-pull-down; 320 }; 321 322 pm8921_lvs6: lvs6 { 323 bias-pull-down; 324 }; 325 326 pm8921_lvs7: lvs7 { 327 bias-pull-down; 328 }; 329 330 pm8921_ncp: ncp { 331 regulator-min-microvolt = <1800000>; 332 regulator-max-microvolt = <1800000>; 333 qcom,switch-mode-frequency = <1600000>; 334 }; 335 }; 336}; 337 338/* eMMC */ 339&sdcc1 { 340 status = "okay"; 341}; 342 343/* External micro SD card */ 344&sdcc3 { 345 status = "okay"; 346}; 347