.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
---|
2 | 2 | #include "qcom-msm8974pro.dtsi" |
---|
3 | | -#include "qcom-pm8841.dtsi" |
---|
4 | | -#include "qcom-pm8941.dtsi" |
---|
| 3 | +#include "qcom-pma8084.dtsi" |
---|
| 4 | +#include <dt-bindings/gpio/gpio.h> |
---|
| 5 | +#include <dt-bindings/input/input.h> |
---|
| 6 | +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
---|
5 | 7 | |
---|
6 | 8 | / { |
---|
7 | 9 | model = "Samsung Galaxy S5"; |
---|
.. | .. |
---|
14 | 16 | chosen { |
---|
15 | 17 | stdout-path = "serial0:115200n8"; |
---|
16 | 18 | }; |
---|
| 19 | + |
---|
| 20 | + smd { |
---|
| 21 | + rpm { |
---|
| 22 | + rpm_requests { |
---|
| 23 | + pma8084-regulators { |
---|
| 24 | + compatible = "qcom,rpm-pma8084-regulators"; |
---|
| 25 | + status = "okay"; |
---|
| 26 | + |
---|
| 27 | + pma8084_s1: s1 { |
---|
| 28 | + regulator-min-microvolt = <675000>; |
---|
| 29 | + regulator-max-microvolt = <1050000>; |
---|
| 30 | + }; |
---|
| 31 | + |
---|
| 32 | + pma8084_s2: s2 { |
---|
| 33 | + regulator-min-microvolt = <500000>; |
---|
| 34 | + regulator-max-microvolt = <1050000>; |
---|
| 35 | + }; |
---|
| 36 | + |
---|
| 37 | + pma8084_s3: s3 { |
---|
| 38 | + regulator-min-microvolt = <1300000>; |
---|
| 39 | + regulator-max-microvolt = <1300000>; |
---|
| 40 | + }; |
---|
| 41 | + |
---|
| 42 | + pma8084_s4: s4 { |
---|
| 43 | + regulator-min-microvolt = <1800000>; |
---|
| 44 | + regulator-max-microvolt = <1800000>; |
---|
| 45 | + }; |
---|
| 46 | + |
---|
| 47 | + pma8084_s5: s5 { |
---|
| 48 | + regulator-min-microvolt = <2150000>; |
---|
| 49 | + regulator-max-microvolt = <2150000>; |
---|
| 50 | + }; |
---|
| 51 | + |
---|
| 52 | + pma8084_s6: s6 { |
---|
| 53 | + regulator-min-microvolt = <1050000>; |
---|
| 54 | + regulator-max-microvolt = <1050000>; |
---|
| 55 | + }; |
---|
| 56 | + |
---|
| 57 | + pma8084_l1: l1 { |
---|
| 58 | + regulator-min-microvolt = <1225000>; |
---|
| 59 | + regulator-max-microvolt = <1225000>; |
---|
| 60 | + }; |
---|
| 61 | + |
---|
| 62 | + pma8084_l2: l2 { |
---|
| 63 | + regulator-min-microvolt = <1200000>; |
---|
| 64 | + regulator-max-microvolt = <1200000>; |
---|
| 65 | + }; |
---|
| 66 | + |
---|
| 67 | + pma8084_l3: l3 { |
---|
| 68 | + regulator-min-microvolt = <1050000>; |
---|
| 69 | + regulator-max-microvolt = <1200000>; |
---|
| 70 | + }; |
---|
| 71 | + |
---|
| 72 | + pma8084_l4: l4 { |
---|
| 73 | + regulator-min-microvolt = <1200000>; |
---|
| 74 | + regulator-max-microvolt = <1225000>; |
---|
| 75 | + }; |
---|
| 76 | + |
---|
| 77 | + pma8084_l5: l5 { |
---|
| 78 | + regulator-min-microvolt = <1800000>; |
---|
| 79 | + regulator-max-microvolt = <1800000>; |
---|
| 80 | + }; |
---|
| 81 | + |
---|
| 82 | + pma8084_l6: l6 { |
---|
| 83 | + regulator-min-microvolt = <1800000>; |
---|
| 84 | + regulator-max-microvolt = <1800000>; |
---|
| 85 | + }; |
---|
| 86 | + |
---|
| 87 | + pma8084_l7: l7 { |
---|
| 88 | + regulator-min-microvolt = <1800000>; |
---|
| 89 | + regulator-max-microvolt = <1800000>; |
---|
| 90 | + }; |
---|
| 91 | + |
---|
| 92 | + pma8084_l8: l8 { |
---|
| 93 | + regulator-min-microvolt = <1800000>; |
---|
| 94 | + regulator-max-microvolt = <1800000>; |
---|
| 95 | + }; |
---|
| 96 | + |
---|
| 97 | + pma8084_l9: l9 { |
---|
| 98 | + regulator-min-microvolt = <1800000>; |
---|
| 99 | + regulator-max-microvolt = <2950000>; |
---|
| 100 | + }; |
---|
| 101 | + |
---|
| 102 | + pma8084_l10: l10 { |
---|
| 103 | + regulator-min-microvolt = <1800000>; |
---|
| 104 | + regulator-max-microvolt = <2950000>; |
---|
| 105 | + }; |
---|
| 106 | + |
---|
| 107 | + pma8084_l11: l11 { |
---|
| 108 | + regulator-min-microvolt = <1300000>; |
---|
| 109 | + regulator-max-microvolt = <1300000>; |
---|
| 110 | + }; |
---|
| 111 | + |
---|
| 112 | + pma8084_l12: l12 { |
---|
| 113 | + regulator-min-microvolt = <1800000>; |
---|
| 114 | + regulator-max-microvolt = <1800000>; |
---|
| 115 | + }; |
---|
| 116 | + |
---|
| 117 | + pma8084_l13: l13 { |
---|
| 118 | + regulator-min-microvolt = <1800000>; |
---|
| 119 | + regulator-max-microvolt = <2950000>; |
---|
| 120 | + }; |
---|
| 121 | + |
---|
| 122 | + pma8084_l14: l14 { |
---|
| 123 | + regulator-min-microvolt = <1800000>; |
---|
| 124 | + regulator-max-microvolt = <1800000>; |
---|
| 125 | + }; |
---|
| 126 | + |
---|
| 127 | + pma8084_l15: l15 { |
---|
| 128 | + regulator-min-microvolt = <2050000>; |
---|
| 129 | + regulator-max-microvolt = <2050000>; |
---|
| 130 | + }; |
---|
| 131 | + |
---|
| 132 | + pma8084_l16: l16 { |
---|
| 133 | + regulator-min-microvolt = <2700000>; |
---|
| 134 | + regulator-max-microvolt = <2700000>; |
---|
| 135 | + }; |
---|
| 136 | + |
---|
| 137 | + pma8084_l17: l17 { |
---|
| 138 | + regulator-min-microvolt = <2850000>; |
---|
| 139 | + regulator-max-microvolt = <2850000>; |
---|
| 140 | + }; |
---|
| 141 | + |
---|
| 142 | + pma8084_l18: l18 { |
---|
| 143 | + regulator-min-microvolt = <2850000>; |
---|
| 144 | + regulator-max-microvolt = <2850000>; |
---|
| 145 | + }; |
---|
| 146 | + |
---|
| 147 | + pma8084_l19: l19 { |
---|
| 148 | + regulator-min-microvolt = <2900000>; |
---|
| 149 | + regulator-max-microvolt = <3300000>; |
---|
| 150 | + }; |
---|
| 151 | + |
---|
| 152 | + pma8084_l20: l20 { |
---|
| 153 | + regulator-min-microvolt = <2950000>; |
---|
| 154 | + regulator-max-microvolt = <2950000>; |
---|
| 155 | + |
---|
| 156 | + regulator-allow-set-load; |
---|
| 157 | + regulator-system-load = <200000>; |
---|
| 158 | + }; |
---|
| 159 | + |
---|
| 160 | + pma8084_l21: l21 { |
---|
| 161 | + regulator-min-microvolt = <2950000>; |
---|
| 162 | + regulator-max-microvolt = <2950000>; |
---|
| 163 | + }; |
---|
| 164 | + |
---|
| 165 | + pma8084_l22: l22 { |
---|
| 166 | + regulator-min-microvolt = <3000000>; |
---|
| 167 | + regulator-max-microvolt = <3300000>; |
---|
| 168 | + }; |
---|
| 169 | + |
---|
| 170 | + pma8084_l23: l23 { |
---|
| 171 | + regulator-min-microvolt = <3000000>; |
---|
| 172 | + regulator-max-microvolt = <3000000>; |
---|
| 173 | + }; |
---|
| 174 | + |
---|
| 175 | + pma8084_l24: l24 { |
---|
| 176 | + regulator-min-microvolt = <3075000>; |
---|
| 177 | + regulator-max-microvolt = <3075000>; |
---|
| 178 | + }; |
---|
| 179 | + |
---|
| 180 | + pma8084_l25: l25 { |
---|
| 181 | + regulator-min-microvolt = <2100000>; |
---|
| 182 | + regulator-max-microvolt = <2100000>; |
---|
| 183 | + }; |
---|
| 184 | + |
---|
| 185 | + pma8084_l26: l26 { |
---|
| 186 | + regulator-min-microvolt = <1800000>; |
---|
| 187 | + regulator-max-microvolt = <2050000>; |
---|
| 188 | + }; |
---|
| 189 | + |
---|
| 190 | + pma8084_l27: l27 { |
---|
| 191 | + regulator-min-microvolt = <1000000>; |
---|
| 192 | + regulator-max-microvolt = <1225000>; |
---|
| 193 | + }; |
---|
| 194 | + |
---|
| 195 | + pma8084_lvs1: lvs1 {}; |
---|
| 196 | + pma8084_lvs2: lvs2 {}; |
---|
| 197 | + pma8084_lvs3: lvs3 {}; |
---|
| 198 | + pma8084_lvs4: lvs4 {}; |
---|
| 199 | + |
---|
| 200 | + pma8084_5vs1: 5vs1 {}; |
---|
| 201 | + }; |
---|
| 202 | + }; |
---|
| 203 | + }; |
---|
| 204 | + }; |
---|
| 205 | + |
---|
| 206 | + /delete-node/ vreg-boost; |
---|
17 | 207 | }; |
---|
18 | 208 | |
---|
19 | 209 | &soc { |
---|
.. | .. |
---|
21 | 211 | status = "ok"; |
---|
22 | 212 | }; |
---|
23 | 213 | |
---|
| 214 | + gpio-keys { |
---|
| 215 | + compatible = "gpio-keys"; |
---|
| 216 | + input-name = "gpio-keys"; |
---|
| 217 | + |
---|
| 218 | + pinctrl-names = "default"; |
---|
| 219 | + pinctrl-0 = <&gpio_keys_pin_a>; |
---|
| 220 | + |
---|
| 221 | + volume-down { |
---|
| 222 | + label = "volume_down"; |
---|
| 223 | + gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>; |
---|
| 224 | + linux,input-type = <1>; |
---|
| 225 | + linux,code = <KEY_VOLUMEDOWN>; |
---|
| 226 | + debounce-interval = <15>; |
---|
| 227 | + }; |
---|
| 228 | + |
---|
| 229 | + home-key { |
---|
| 230 | + label = "home_key"; |
---|
| 231 | + gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>; |
---|
| 232 | + linux,input-type = <1>; |
---|
| 233 | + linux,code = <KEY_HOMEPAGE>; |
---|
| 234 | + wakeup-source; |
---|
| 235 | + debounce-interval = <15>; |
---|
| 236 | + }; |
---|
| 237 | + |
---|
| 238 | + volume-up { |
---|
| 239 | + label = "volume_up"; |
---|
| 240 | + gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>; |
---|
| 241 | + linux,input-type = <1>; |
---|
| 242 | + linux,code = <KEY_VOLUMEUP>; |
---|
| 243 | + debounce-interval = <15>; |
---|
| 244 | + }; |
---|
| 245 | + }; |
---|
| 246 | + |
---|
| 247 | + pinctrl@fd510000 { |
---|
| 248 | + sdhc1_pin_a: sdhc1-pin-active { |
---|
| 249 | + clk { |
---|
| 250 | + pins = "sdc1_clk"; |
---|
| 251 | + drive-strength = <4>; |
---|
| 252 | + bias-disable; |
---|
| 253 | + }; |
---|
| 254 | + |
---|
| 255 | + cmd-data { |
---|
| 256 | + pins = "sdc1_cmd", "sdc1_data"; |
---|
| 257 | + drive-strength = <4>; |
---|
| 258 | + bias-pull-up; |
---|
| 259 | + }; |
---|
| 260 | + }; |
---|
| 261 | + }; |
---|
| 262 | + |
---|
| 263 | + sdhci@f9824900 { |
---|
| 264 | + status = "ok"; |
---|
| 265 | + |
---|
| 266 | + vmmc-supply = <&pma8084_l20>; |
---|
| 267 | + vqmmc-supply = <&pma8084_s4>; |
---|
| 268 | + |
---|
| 269 | + bus-width = <8>; |
---|
| 270 | + non-removable; |
---|
| 271 | + |
---|
| 272 | + pinctrl-names = "default"; |
---|
| 273 | + pinctrl-0 = <&sdhc1_pin_a>; |
---|
| 274 | + }; |
---|
| 275 | + |
---|
| 276 | + usb@f9a55000 { |
---|
| 277 | + status = "ok"; |
---|
| 278 | + |
---|
| 279 | + phys = <&usb_hs1_phy>; |
---|
| 280 | + phy-select = <&tcsr 0xb000 0>; |
---|
| 281 | + /*extcon = <&smbb>, <&usb_id>;*/ |
---|
| 282 | + /*vbus-supply = <&chg_otg>;*/ |
---|
| 283 | + |
---|
| 284 | + hnp-disable; |
---|
| 285 | + srp-disable; |
---|
| 286 | + adp-disable; |
---|
| 287 | + |
---|
| 288 | + ulpi { |
---|
| 289 | + phy@a { |
---|
| 290 | + status = "ok"; |
---|
| 291 | + |
---|
| 292 | + v1p8-supply = <&pma8084_l6>; |
---|
| 293 | + v3p3-supply = <&pma8084_l24>; |
---|
| 294 | + |
---|
| 295 | + /*extcon = <&smbb>;*/ |
---|
| 296 | + qcom,init-seq = /bits/ 8 <0x1 0x64>; |
---|
| 297 | + }; |
---|
| 298 | + }; |
---|
| 299 | + }; |
---|
| 300 | + |
---|
| 301 | + pinctrl@fd510000 { |
---|
| 302 | + i2c6_pins: i2c6 { |
---|
| 303 | + mux { |
---|
| 304 | + pins = "gpio29", "gpio30"; |
---|
| 305 | + function = "blsp_i2c6"; |
---|
| 306 | + |
---|
| 307 | + drive-strength = <2>; |
---|
| 308 | + bias-disable; |
---|
| 309 | + }; |
---|
| 310 | + }; |
---|
| 311 | + }; |
---|
| 312 | + |
---|
| 313 | + i2c@f9928000 { |
---|
| 314 | + status = "okay"; |
---|
| 315 | + |
---|
| 316 | + pinctrl-names = "default"; |
---|
| 317 | + pinctrl-0 = <&i2c6_pins>; |
---|
| 318 | + |
---|
| 319 | + pmic@60 { |
---|
| 320 | + reg = <0x60>; |
---|
| 321 | + compatible = "maxim,max77826"; |
---|
| 322 | + |
---|
| 323 | + regulators { |
---|
| 324 | + max77826_ldo1: LDO1 { |
---|
| 325 | + regulator-min-microvolt = <1200000>; |
---|
| 326 | + regulator-max-microvolt = <1200000>; |
---|
| 327 | + }; |
---|
| 328 | + |
---|
| 329 | + max77826_ldo2: LDO2 { |
---|
| 330 | + regulator-min-microvolt = <1000000>; |
---|
| 331 | + regulator-max-microvolt = <1000000>; |
---|
| 332 | + }; |
---|
| 333 | + |
---|
| 334 | + max77826_ldo3: LDO3 { |
---|
| 335 | + regulator-min-microvolt = <1200000>; |
---|
| 336 | + regulator-max-microvolt = <1200000>; |
---|
| 337 | + }; |
---|
| 338 | + |
---|
| 339 | + max77826_ldo4: LDO4 { |
---|
| 340 | + regulator-min-microvolt = <1800000>; |
---|
| 341 | + regulator-max-microvolt = <1800000>; |
---|
| 342 | + }; |
---|
| 343 | + |
---|
| 344 | + max77826_ldo5: LDO5 { |
---|
| 345 | + regulator-min-microvolt = <1800000>; |
---|
| 346 | + regulator-max-microvolt = <1800000>; |
---|
| 347 | + }; |
---|
| 348 | + |
---|
| 349 | + max77826_ldo6: LDO6 { |
---|
| 350 | + regulator-min-microvolt = <1800000>; |
---|
| 351 | + regulator-max-microvolt = <3300000>; |
---|
| 352 | + }; |
---|
| 353 | + |
---|
| 354 | + max77826_ldo7: LDO7 { |
---|
| 355 | + regulator-min-microvolt = <1800000>; |
---|
| 356 | + regulator-max-microvolt = <1800000>; |
---|
| 357 | + }; |
---|
| 358 | + |
---|
| 359 | + max77826_ldo8: LDO8 { |
---|
| 360 | + regulator-min-microvolt = <1800000>; |
---|
| 361 | + regulator-max-microvolt = <3300000>; |
---|
| 362 | + }; |
---|
| 363 | + |
---|
| 364 | + max77826_ldo9: LDO9 { |
---|
| 365 | + regulator-min-microvolt = <1800000>; |
---|
| 366 | + regulator-max-microvolt = <1800000>; |
---|
| 367 | + }; |
---|
| 368 | + |
---|
| 369 | + max77826_ldo10: LDO10 { |
---|
| 370 | + regulator-min-microvolt = <2800000>; |
---|
| 371 | + regulator-max-microvolt = <2950000>; |
---|
| 372 | + }; |
---|
| 373 | + |
---|
| 374 | + max77826_ldo11: LDO11 { |
---|
| 375 | + regulator-min-microvolt = <2700000>; |
---|
| 376 | + regulator-max-microvolt = <2950000>; |
---|
| 377 | + }; |
---|
| 378 | + |
---|
| 379 | + max77826_ldo12: LDO12 { |
---|
| 380 | + regulator-min-microvolt = <2500000>; |
---|
| 381 | + regulator-max-microvolt = <3300000>; |
---|
| 382 | + }; |
---|
| 383 | + |
---|
| 384 | + max77826_ldo13: LDO13 { |
---|
| 385 | + regulator-min-microvolt = <3300000>; |
---|
| 386 | + regulator-max-microvolt = <3300000>; |
---|
| 387 | + }; |
---|
| 388 | + |
---|
| 389 | + max77826_ldo14: LDO14 { |
---|
| 390 | + regulator-min-microvolt = <3300000>; |
---|
| 391 | + regulator-max-microvolt = <3300000>; |
---|
| 392 | + }; |
---|
| 393 | + |
---|
| 394 | + max77826_ldo15: LDO15 { |
---|
| 395 | + regulator-min-microvolt = <1800000>; |
---|
| 396 | + regulator-max-microvolt = <1800000>; |
---|
| 397 | + }; |
---|
| 398 | + |
---|
| 399 | + max77826_buck: BUCK { |
---|
| 400 | + regulator-min-microvolt = <1225000>; |
---|
| 401 | + regulator-max-microvolt = <1225000>; |
---|
| 402 | + }; |
---|
| 403 | + |
---|
| 404 | + max77826_buckboost: BUCKBOOST { |
---|
| 405 | + regulator-min-microvolt = <3400000>; |
---|
| 406 | + regulator-max-microvolt = <3400000>; |
---|
| 407 | + }; |
---|
| 408 | + }; |
---|
| 409 | + }; |
---|
| 410 | + }; |
---|
| 411 | +}; |
---|
| 412 | + |
---|
| 413 | +&spmi_bus { |
---|
| 414 | + pma8084@0 { |
---|
| 415 | + gpios@c000 { |
---|
| 416 | + gpio_keys_pin_a: gpio-keys-active { |
---|
| 417 | + pins = "gpio2", "gpio3", "gpio5"; |
---|
| 418 | + function = "normal"; |
---|
| 419 | + |
---|
| 420 | + bias-pull-up; |
---|
| 421 | + power-source = <PMA8084_GPIO_S4>; |
---|
| 422 | + }; |
---|
| 423 | + }; |
---|
| 424 | + }; |
---|
24 | 425 | }; |
---|