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