1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2023, Luca Weiss <luca@z3ntu.x 4 */ 5 6 /dts-v1/; 7 8 #include "qcom-msm8226.dtsi" 9 #include "pm8226.dtsi" 10 11 /delete-node/ &adsp_region; 12 /delete-node/ &smem_region; 13 14 / { 15 model = "HTC One Mini 2"; 16 compatible = "htc,memul", "qcom,msm892 17 chassis-type = "handset"; 18 19 aliases { 20 mmc1 = &sdhc_2; /* SDC2 SD car 21 }; 22 23 gpio-keys { 24 compatible = "gpio-keys"; 25 26 key-power { 27 label = "Power"; 28 gpios = <&tlmm 106 GPI 29 linux,code = <KEY_POWE 30 debounce-interval = <1 31 }; 32 33 key-volume-down { 34 label = "Volume Down"; 35 gpios = <&tlmm 107 GPI 36 linux,code = <KEY_VOLU 37 debounce-interval = <1 38 }; 39 40 key-volume-up { 41 label = "Volume Up"; 42 gpios = <&tlmm 108 GPI 43 linux,code = <KEY_VOLU 44 debounce-interval = <1 45 }; 46 }; 47 48 reserved-memory { 49 unknown@5b00000 { 50 reg = <0x05b00000 0x20 51 no-map; 52 }; 53 54 unknown@7500000 { 55 reg = <0x07500000 0xb0 56 no-map; 57 }; 58 59 mpss_region: mpss@8000000 { 60 reg = <0x08000000 0x4f 61 no-map; 62 }; 63 64 unknown@cf00000 { 65 reg = <0x0cf00000 0x20 66 no-map; 67 }; 68 69 mba_region: mba@d100000 { 70 reg = <0x0d100000 0x3a 71 no-map; 72 }; 73 74 unknown@d13a000 { 75 reg = <0x0d13a000 0xc6 76 no-map; 77 }; 78 79 wcnss_region: wcnss@d200000 { 80 reg = <0x0d200000 0x65 81 no-map; 82 }; 83 84 unknown@d850000 { 85 reg = <0x0d850000 0x3b 86 no-map; 87 }; 88 89 adsp_region: adsp@dc00000 { 90 reg = <0x0dc00000 0x14 91 no-map; 92 }; 93 94 unknown@f000000 { 95 reg = <0x0f000000 0x50 96 no-map; 97 }; 98 99 venus_region: venus@f500000 { 100 reg = <0x0f500000 0x50 101 no-map; 102 }; 103 104 smem_region: smem@fa00000 { 105 reg = <0x0fa00000 0x10 106 no-map; 107 }; 108 109 unknown@fb00000 { 110 reg = <0x0fb00000 0x28 111 no-map; 112 }; 113 114 rmtfs@fd80000 { 115 compatible = "qcom,rmt 116 reg = <0x0fd80000 0x18 117 no-map; 118 119 qcom,client-id = <1>; 120 }; 121 122 unknown@ff00000 { 123 reg = <0x0ff00000 0x17 124 no-map; 125 }; 126 }; 127 }; 128 129 &adsp { 130 firmware-name = "qcom/msm8926/memul/ad 131 status = "okay"; 132 }; 133 134 &blsp1_i2c2 { 135 status = "okay"; 136 137 magnetometer@d { 138 compatible = "asahi-kasei,ak89 139 reg = <0x0d>; 140 interrupts-extended = <&tlmm 6 141 vdd-supply = <&pm8226_l19>; 142 vid-supply = <&pm8226_l28>; 143 }; 144 145 accelerometer@18 { 146 compatible = "bosch,bma250e"; 147 reg = <0x18>; 148 interrupts-extended = <&tlmm 6 149 vdd-supply = <&pm8226_l19>; 150 vddio-supply = <&pm8226_l28>; 151 }; 152 }; 153 154 &blsp1_i2c4 { 155 status = "okay"; 156 157 /* TFA9887 @ 34 */ 158 /* TFA9887 @ 35 */ 159 }; 160 161 &blsp1_i2c5 { 162 status = "okay"; 163 164 touchscreen@20 { 165 compatible = "syna,rmi4-i2c"; 166 reg = <0x20>; 167 168 interrupts-extended = <&tlmm 1 169 vdd-supply = <&pm8226_l19>; 170 171 syna,startup-delay-ms = <160>; 172 173 #address-cells = <1>; 174 #size-cells = <0>; 175 176 rmi4-f01@1 { 177 reg = <0x1>; 178 syna,nosleep-mode = <1 179 }; 180 181 rmi4-f12@12 { 182 reg = <0x12>; 183 syna,sensor-type = <1> 184 }; 185 }; 186 }; 187 188 &blsp1_i2c6 { 189 status = "okay"; 190 191 /* NCP6924 Camera Regulators @ 10 */ 192 /* PN544 NFC @ 28 */ 193 /* TPS61310 Flash/Torch @ 33 */ 194 }; 195 196 &pm8226_vib { 197 status = "okay"; 198 }; 199 200 &rpm_requests { 201 regulators { 202 compatible = "qcom,rpm-pm8226- 203 204 pm8226_s3: s3 { 205 regulator-min-microvol 206 regulator-max-microvol 207 }; 208 209 pm8226_s4: s4 { 210 regulator-min-microvol 211 regulator-max-microvol 212 }; 213 214 pm8226_s5: s5 { 215 regulator-min-microvol 216 regulator-max-microvol 217 }; 218 219 pm8226_l1: l1 { 220 regulator-min-microvol 221 regulator-max-microvol 222 }; 223 224 pm8226_l2: l2 { 225 regulator-min-microvol 226 regulator-max-microvol 227 }; 228 229 pm8226_l3: l3 { 230 regulator-min-microvol 231 regulator-max-microvol 232 }; 233 234 pm8226_l4: l4 { 235 regulator-min-microvol 236 regulator-max-microvol 237 }; 238 239 pm8226_l5: l5 { 240 regulator-min-microvol 241 regulator-max-microvol 242 }; 243 244 pm8226_l6: l6 { 245 regulator-min-microvol 246 regulator-max-microvol 247 }; 248 249 pm8226_l7: l7 { 250 regulator-min-microvol 251 regulator-max-microvol 252 }; 253 254 pm8226_l8: l8 { 255 regulator-min-microvol 256 regulator-max-microvol 257 }; 258 259 pm8226_l9: l9 { 260 regulator-min-microvol 261 regulator-max-microvol 262 }; 263 264 pm8226_l10: l10 { 265 regulator-min-microvol 266 regulator-max-microvol 267 }; 268 269 pm8226_l12: l12 { 270 regulator-min-microvol 271 regulator-max-microvol 272 }; 273 274 pm8226_l14: l14 { 275 regulator-min-microvol 276 regulator-max-microvol 277 }; 278 279 pm8226_l15: l15 { 280 regulator-min-microvol 281 regulator-max-microvol 282 }; 283 284 pm8226_l16: l16 { 285 regulator-min-microvol 286 regulator-max-microvol 287 }; 288 289 pm8226_l17: l17 { 290 regulator-min-microvol 291 regulator-max-microvol 292 }; 293 294 pm8226_l18: l18 { 295 regulator-min-microvol 296 regulator-max-microvol 297 }; 298 299 pm8226_l19: l19 { 300 regulator-min-microvol 301 regulator-max-microvol 302 }; 303 304 pm8226_l20: l20 { 305 regulator-min-microvol 306 regulator-max-microvol 307 }; 308 309 pm8226_l21: l21 { 310 regulator-min-microvol 311 regulator-max-microvol 312 regulator-allow-set-lo 313 }; 314 315 pm8226_l22: l22 { 316 regulator-min-microvol 317 regulator-max-microvol 318 }; 319 320 pm8226_l23: l23 { 321 regulator-min-microvol 322 regulator-max-microvol 323 }; 324 325 pm8226_l24: l24 { 326 regulator-min-microvol 327 regulator-max-microvol 328 }; 329 330 pm8226_l25: l25 { 331 regulator-min-microvol 332 regulator-max-microvol 333 }; 334 335 pm8226_l26: l26 { 336 regulator-min-microvol 337 regulator-max-microvol 338 }; 339 340 pm8226_l27: l27 { 341 regulator-min-microvol 342 regulator-max-microvol 343 }; 344 345 pm8226_l28: l28 { 346 regulator-min-microvol 347 regulator-max-microvol 348 }; 349 350 pm8226_lvs1: lvs1 {}; 351 }; 352 }; 353 354 &sdhc_2 { 355 vmmc-supply = <&pm8226_l18>; 356 vqmmc-supply = <&pm8226_l21>; 357 358 bus-width = <4>; 359 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 360 361 status = "okay"; 362 }; 363 364 &smbb { 365 qcom,fast-charge-safe-current = <17500 366 qcom,fast-charge-current-limit = <1750 367 qcom,fast-charge-safe-voltage = <43600 368 qcom,fast-charge-high-threshold-voltag 369 qcom,auto-recharge-threshold-voltage = 370 qcom,minimum-input-voltage = <4300000> 371 372 status = "okay"; 373 }; 374 375 &usb { 376 extcon = <&smbb>; 377 dr_mode = "peripheral"; 378 status = "okay"; 379 }; 380 381 &usb_hs_phy { 382 extcon = <&smbb>; 383 v1p8-supply = <&pm8226_l10>; 384 v3p3-supply = <&pm8226_l20>; 385 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.