| 1 |
// SPDX-License-Identifier: GPL-2.0-only |
| 2 |
#include "qcom-msm8974pro.dtsi" |
| 3 |
#include "pm8841.dtsi" |
| 4 |
#include "pm8941.dtsi" |
| 5 |
#include <dt-bindings/input/input.h> |
| 6 |
|
| 7 |
/ { |
| 8 |
model = "HTC One (M8)"; |
| 9 |
compatible = "htc,m8", "qcom,msm8974pro", "qcom,msm8974"; |
| 10 |
chassis-type = "handset"; |
| 11 |
|
| 12 |
aliases { |
| 13 |
mmc0 = &sdhc_1; |
| 14 |
}; |
| 15 |
|
| 16 |
gpio-keys { |
| 17 |
compatible = "gpio-keys"; |
| 18 |
|
| 19 |
pinctrl-0 = <&gpio_keys_default>; |
| 20 |
pinctrl-names = "default"; |
| 21 |
|
| 22 |
key-volume-down { |
| 23 |
label = "volume_down"; |
| 24 |
gpios = <&tlmm 27 GPIO_ACTIVE_LOW>; |
| 25 |
linux,code = <KEY_VOLUMEDOWN>; |
| 26 |
debounce-interval = <20>; |
| 27 |
wakeup-source; |
| 28 |
}; |
| 29 |
|
| 30 |
key-volume-up { |
| 31 |
label = "volume_up"; |
| 32 |
gpios = <&tlmm 28 GPIO_ACTIVE_LOW>; |
| 33 |
linux,code = <KEY_VOLUMEUP>; |
| 34 |
debounce-interval = <20>; |
| 35 |
wakeup-source; |
| 36 |
}; |
| 37 |
}; |
| 38 |
|
| 39 |
vreg_boost: vreg-boost { |
| 40 |
compatible = "regulator-fixed"; |
| 41 |
|
| 42 |
regulator-name = "vreg-boost"; |
| 43 |
regulator-min-microvolt = <3150000>; |
| 44 |
regulator-max-microvolt = <3150000>; |
| 45 |
|
| 46 |
regulator-always-on; |
| 47 |
regulator-boot-on; |
| 48 |
|
| 49 |
gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>; |
| 50 |
enable-active-high; |
| 51 |
|
| 52 |
pinctrl-0 = <&boost_bypass_n_pin>; |
| 53 |
pinctrl-names = "default"; |
| 54 |
}; |
| 55 |
|
| 56 |
vreg_vph_pwr: vreg-vph-pwr { |
| 57 |
compatible = "regulator-fixed"; |
| 58 |
regulator-name = "vph-pwr"; |
| 59 |
|
| 60 |
regulator-min-microvolt = <3600000>; |
| 61 |
regulator-max-microvolt = <3600000>; |
| 62 |
|
| 63 |
regulator-always-on; |
| 64 |
}; |
| 65 |
}; |
| 66 |
|
| 67 |
&pm8941_vib { |
| 68 |
status = "okay"; |
| 69 |
}; |
| 70 |
|
| 71 |
&pronto { |
| 72 |
vddmx-supply = <&pm8841_s1>; |
| 73 |
vddpx-supply = <&pm8941_s3>; |
| 74 |
|
| 75 |
pinctrl-0 = <&wcnss_pin_a>; |
| 76 |
pinctrl-names = "default"; |
| 77 |
|
| 78 |
status = "okay"; |
| 79 |
|
| 80 |
iris { |
| 81 |
vddxo-supply = <&pm8941_l6>; |
| 82 |
vddrfa-supply = <&pm8941_l11>; |
| 83 |
vddpa-supply = <&pm8941_l19>; |
| 84 |
vdddig-supply = <&pm8941_s3>; |
| 85 |
}; |
| 86 |
|
| 87 |
smd-edge { |
| 88 |
qcom,remote-pid = <4>; |
| 89 |
label = "pronto"; |
| 90 |
|
| 91 |
wcnss { |
| 92 |
status = "okay"; |
| 93 |
}; |
| 94 |
}; |
| 95 |
}; |
| 96 |
|
| 97 |
&rpm_requests { |
| 98 |
regulators-0 { |
| 99 |
compatible = "qcom,rpm-pm8841-regulators"; |
| 100 |
|
| 101 |
pm8841_s1: s1 { |
| 102 |
regulator-min-microvolt = <675000>; |
| 103 |
regulator-max-microvolt = <1050000>; |
| 104 |
}; |
| 105 |
|
| 106 |
pm8841_s3: s3 { |
| 107 |
regulator-min-microvolt = <1050000>; |
| 108 |
regulator-max-microvolt = <1050000>; |
| 109 |
}; |
| 110 |
}; |
| 111 |
|
| 112 |
regulators-1 { |
| 113 |
compatible = "qcom,rpm-pm8941-regulators"; |
| 114 |
|
| 115 |
vdd_l1_l3-supply = <&pm8941_s1>; |
| 116 |
vdd_l2_lvs1_2_3-supply = <&pm8941_s3>; |
| 117 |
vdd_l4_l11-supply = <&pm8941_s1>; |
| 118 |
vdd_l5_l7-supply = <&pm8941_s2>; |
| 119 |
vdd_l6_l12_l14_l15-supply = <&pm8941_s2>; |
| 120 |
vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>; |
| 121 |
vdd_l9_l10_l17_l22-supply = <&vreg_boost>; |
| 122 |
vdd_l13_l20_l23_l24-supply = <&vreg_boost>; |
| 123 |
vdd_l21-supply = <&vreg_boost>; |
| 124 |
|
| 125 |
pm8941_s1: s1 { |
| 126 |
regulator-min-microvolt = <1300000>; |
| 127 |
regulator-max-microvolt = <1300000>; |
| 128 |
regulator-always-on; |
| 129 |
regulator-boot-on; |
| 130 |
}; |
| 131 |
|
| 132 |
pm8941_s2: s2 { |
| 133 |
regulator-min-microvolt = <2150000>; |
| 134 |
regulator-max-microvolt = <2150000>; |
| 135 |
regulator-boot-on; |
| 136 |
}; |
| 137 |
|
| 138 |
pm8941_s3: s3 { |
| 139 |
regulator-min-microvolt = <1800000>; |
| 140 |
regulator-max-microvolt = <1800000>; |
| 141 |
regulator-always-on; |
| 142 |
regulator-boot-on; |
| 143 |
}; |
| 144 |
|
| 145 |
pm8941_l1: l1 { |
| 146 |
regulator-min-microvolt = <1225000>; |
| 147 |
regulator-max-microvolt = <1225000>; |
| 148 |
regulator-always-on; |
| 149 |
regulator-boot-on; |
| 150 |
}; |
| 151 |
|
| 152 |
pm8941_l2: l2 { |
| 153 |
regulator-min-microvolt = <1200000>; |
| 154 |
regulator-max-microvolt = <1200000>; |
| 155 |
}; |
| 156 |
|
| 157 |
pm8941_l3: l3 { |
| 158 |
regulator-min-microvolt = <1200000>; |
| 159 |
regulator-max-microvolt = <1200000>; |
| 160 |
}; |
| 161 |
|
| 162 |
pm8941_l4: l4 { |
| 163 |
regulator-min-microvolt = <1225000>; |
| 164 |
regulator-max-microvolt = <1225000>; |
| 165 |
}; |
| 166 |
|
| 167 |
pm8941_l5: l5 { |
| 168 |
regulator-min-microvolt = <1800000>; |
| 169 |
regulator-max-microvolt = <1800000>; |
| 170 |
}; |
| 171 |
|
| 172 |
pm8941_l6: l6 { |
| 173 |
regulator-min-microvolt = <1800000>; |
| 174 |
regulator-max-microvolt = <1800000>; |
| 175 |
regulator-boot-on; |
| 176 |
}; |
| 177 |
|
| 178 |
pm8941_l7: l7 { |
| 179 |
regulator-min-microvolt = <1800000>; |
| 180 |
regulator-max-microvolt = <1800000>; |
| 181 |
regulator-boot-on; |
| 182 |
}; |
| 183 |
|
| 184 |
pm8941_l8: l8 { |
| 185 |
regulator-min-microvolt = <1800000>; |
| 186 |
regulator-max-microvolt = <1800000>; |
| 187 |
}; |
| 188 |
|
| 189 |
pm8941_l9: l9 { |
| 190 |
regulator-min-microvolt = <1800000>; |
| 191 |
regulator-max-microvolt = <2950000>; |
| 192 |
}; |
| 193 |
|
| 194 |
pm8941_l10: l10 { |
| 195 |
regulator-min-microvolt = <1800000>; |
| 196 |
regulator-max-microvolt = <2950000>; |
| 197 |
}; |
| 198 |
|
| 199 |
pm8941_l11: l11 { |
| 200 |
regulator-min-microvolt = <1225000>; |
| 201 |
regulator-max-microvolt = <1350000>; |
| 202 |
}; |
| 203 |
|
| 204 |
pm8941_l12: l12 { |
| 205 |
regulator-min-microvolt = <1800000>; |
| 206 |
regulator-max-microvolt = <1800000>; |
| 207 |
regulator-always-on; |
| 208 |
regulator-boot-on; |
| 209 |
}; |
| 210 |
|
| 211 |
pm8941_l13: l13 { |
| 212 |
regulator-min-microvolt = <1800000>; |
| 213 |
regulator-max-microvolt = <2950000>; |
| 214 |
regulator-boot-on; |
| 215 |
}; |
| 216 |
|
| 217 |
pm8941_l14: l14 { |
| 218 |
regulator-min-microvolt = <1800000>; |
| 219 |
regulator-max-microvolt = <1800000>; |
| 220 |
}; |
| 221 |
|
| 222 |
pm8941_l15: l15 { |
| 223 |
regulator-min-microvolt = <2050000>; |
| 224 |
regulator-max-microvolt = <2050000>; |
| 225 |
}; |
| 226 |
|
| 227 |
pm8941_l16: l16 { |
| 228 |
regulator-min-microvolt = <2700000>; |
| 229 |
regulator-max-microvolt = <2700000>; |
| 230 |
}; |
| 231 |
|
| 232 |
pm8941_l17: l17 { |
| 233 |
regulator-min-microvolt = <2850000>; |
| 234 |
regulator-max-microvolt = <2850000>; |
| 235 |
}; |
| 236 |
|
| 237 |
pm8941_l18: l18 { |
| 238 |
regulator-min-microvolt = <2850000>; |
| 239 |
regulator-max-microvolt = <2850000>; |
| 240 |
}; |
| 241 |
|
| 242 |
pm8941_l19: l19 { |
| 243 |
regulator-min-microvolt = <2900000>; |
| 244 |
regulator-max-microvolt = <3350000>; |
| 245 |
}; |
| 246 |
|
| 247 |
pm8941_l20: l20 { |
| 248 |
regulator-min-microvolt = <2950000>; |
| 249 |
regulator-max-microvolt = <2950000>; |
| 250 |
regulator-system-load = <200000>; |
| 251 |
regulator-allow-set-load; |
| 252 |
regulator-boot-on; |
| 253 |
}; |
| 254 |
|
| 255 |
pm8941_l21: l21 { |
| 256 |
regulator-min-microvolt = <2950000>; |
| 257 |
regulator-max-microvolt = <2950000>; |
| 258 |
regulator-boot-on; |
| 259 |
}; |
| 260 |
|
| 261 |
pm8941_l22: l22 { |
| 262 |
regulator-min-microvolt = <3300000>; |
| 263 |
regulator-max-microvolt = <3300000>; |
| 264 |
}; |
| 265 |
|
| 266 |
pm8941_l23: l23 { |
| 267 |
regulator-min-microvolt = <3000000>; |
| 268 |
regulator-max-microvolt = <3000000>; |
| 269 |
}; |
| 270 |
|
| 271 |
pm8941_l24: l24 { |
| 272 |
regulator-min-microvolt = <3075000>; |
| 273 |
regulator-max-microvolt = <3075000>; |
| 274 |
regulator-boot-on; |
| 275 |
}; |
| 276 |
}; |
| 277 |
}; |
| 278 |
|
| 279 |
&sdhc_1 { |
| 280 |
vmmc-supply = <&pm8941_l20>; |
| 281 |
vqmmc-supply = <&pm8941_s3>; |
| 282 |
|
| 283 |
pinctrl-0 = <&sdc1_on>; |
| 284 |
pinctrl-1 = <&sdc1_off>; |
| 285 |
pinctrl-names = "default", "sleep"; |
| 286 |
|
| 287 |
status = "okay"; |
| 288 |
}; |
| 289 |
|
| 290 |
&smbb { |
| 291 |
status = "okay"; |
| 292 |
}; |
| 293 |
|
| 294 |
&tlmm { |
| 295 |
gpio_keys_default: gpio-keys-default-state { |
| 296 |
pins = "gpio27", "gpio28"; |
| 297 |
function = "gpio"; |
| 298 |
bias-pull-up; |
| 299 |
}; |
| 300 |
|
| 301 |
sdc1_on: sdc1-on-state { |
| 302 |
clk-pins { |
| 303 |
pins = "sdc1_clk"; |
| 304 |
drive-strength = <10>; |
| 305 |
bias-disable; |
| 306 |
}; |
| 307 |
|
| 308 |
cmd-data-pins { |
| 309 |
pins = "sdc1_cmd", "sdc1_data"; |
| 310 |
drive-strength = <10>; |
| 311 |
bias-pull-up; |
| 312 |
}; |
| 313 |
}; |
| 314 |
|
| 315 |
wcnss_pin_a: wcnss-pin-active-state { |
| 316 |
pins = "gpio36", "gpio37", "gpio38", "gpio39", "gpio40"; |
| 317 |
function = "wlan"; |
| 318 |
drive-strength = <6>; |
| 319 |
bias-pull-down; |
| 320 |
}; |
| 321 |
}; |
| 322 |
|
| 323 |
&usb { |
| 324 |
phys = <&usb_hs1_phy>; |
| 325 |
phy-select = <&tcsr 0xb000 0>; |
| 326 |
extcon = <&smbb>, <&usb_id>; |
| 327 |
vbus-supply = <&chg_otg>; |
| 328 |
|
| 329 |
hnp-disable; |
| 330 |
srp-disable; |
| 331 |
adp-disable; |
| 332 |
|
| 333 |
status = "okay"; |
| 334 |
}; |
| 335 |
|
| 336 |
&usb_hs1_phy { |
| 337 |
v1p8-supply = <&pm8941_l6>; |
| 338 |
v3p3-supply = <&pm8941_l24>; |
| 339 |
extcon = <&smbb>; |
| 340 |
qcom,init-seq = /bits/ 8 <0x1 0x63>; |
| 341 |
status = "okay"; |
| 342 |
}; |