1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2020, The Linux Foundation. A 3 * Copyright (c) 2020, The Linux Foundation. All rights reserved. 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include <dt-bindings/regulator/qcom,rpmh-regu 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9 #include <dt-bindings/sound/qcom,q6afe.h> 9 #include <dt-bindings/sound/qcom,q6afe.h> 10 #include <dt-bindings/sound/qcom,q6asm.h> 10 #include <dt-bindings/sound/qcom,q6asm.h> 11 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include "sm8250.dtsi" 12 #include "sm8250.dtsi" 13 #include "pm8150.dtsi" 13 #include "pm8150.dtsi" 14 #include "pm8150b.dtsi" 14 #include "pm8150b.dtsi" 15 #include "pm8150l.dtsi" 15 #include "pm8150l.dtsi" 16 #include "pm8009.dtsi" 16 #include "pm8009.dtsi" 17 17 18 / { 18 / { 19 model = "Qualcomm Technologies, Inc. S 19 model = "Qualcomm Technologies, Inc. SM8250 MTP"; 20 compatible = "qcom,sm8250-mtp", "qcom, 20 compatible = "qcom,sm8250-mtp", "qcom,sm8250"; 21 chassis-type = "handset"; << 22 21 23 aliases { 22 aliases { 24 serial0 = &uart12; 23 serial0 = &uart12; 25 }; 24 }; 26 25 27 wcd938x: audio-codec { << 28 compatible = "qcom,wcd9380-cod << 29 << 30 reset-gpios = <&tlmm 32 GPIO_A << 31 << 32 vdd-buck-supply = <&vreg_s4a_1 << 33 vdd-rxtx-supply = <&vreg_s4a_1 << 34 vdd-io-supply = <&vreg_s4a_1p8 << 35 vdd-mic-bias-supply = <&vreg_b << 36 << 37 qcom,micbias1-microvolt = <180 << 38 qcom,micbias2-microvolt = <180 << 39 qcom,micbias3-microvolt = <180 << 40 qcom,micbias4-microvolt = <180 << 41 qcom,mbhc-buttons-vthreshold-m << 42 qcom,mbhc-headset-vthreshold-m << 43 qcom,mbhc-headphone-vthreshold << 44 qcom,rx-device = <&wcd_rx>; << 45 qcom,tx-device = <&wcd_tx>; << 46 << 47 #sound-dai-cells = <1>; << 48 }; << 49 << 50 chosen { 26 chosen { 51 stdout-path = "serial0:115200n 27 stdout-path = "serial0:115200n8"; 52 }; 28 }; 53 29 54 thermal-zones { 30 thermal-zones { 55 camera-thermal { 31 camera-thermal { >> 32 polling-delay-passive = <0>; >> 33 polling-delay = <0>; 56 thermal-sensors = <&pm 34 thermal-sensors = <&pm8150l_adc_tm 0>; 57 35 58 trips { 36 trips { 59 active-config0 37 active-config0 { 60 temper 38 temperature = <125000>; 61 hyster 39 hysteresis = <1000>; 62 type = 40 type = "passive"; 63 }; 41 }; 64 }; 42 }; 65 }; 43 }; 66 44 67 conn-thermal { 45 conn-thermal { >> 46 polling-delay-passive = <0>; >> 47 polling-delay = <0>; 68 thermal-sensors = <&pm 48 thermal-sensors = <&pm8150b_adc_tm 0>; 69 49 70 trips { 50 trips { 71 active-config0 51 active-config0 { 72 temper 52 temperature = <125000>; 73 hyster 53 hysteresis = <1000>; 74 type = 54 type = "passive"; 75 }; 55 }; 76 }; 56 }; 77 }; 57 }; 78 58 79 mmw-pa1-thermal { 59 mmw-pa1-thermal { >> 60 polling-delay-passive = <0>; >> 61 polling-delay = <0>; 80 thermal-sensors = <&pm 62 thermal-sensors = <&pm8150_adc_tm 2>; 81 63 82 trips { 64 trips { 83 active-config0 65 active-config0 { 84 temper 66 temperature = <125000>; 85 hyster 67 hysteresis = <1000>; 86 type = 68 type = "passive"; 87 }; 69 }; 88 }; 70 }; 89 }; 71 }; 90 72 91 mmw-pa2-thermal { 73 mmw-pa2-thermal { >> 74 polling-delay-passive = <0>; >> 75 polling-delay = <0>; 92 thermal-sensors = <&pm 76 thermal-sensors = <&pm8150l_adc_tm 2>; 93 77 94 trips { 78 trips { 95 active-config0 79 active-config0 { 96 temper 80 temperature = <125000>; 97 hyster 81 hysteresis = <1000>; 98 type = 82 type = "passive"; 99 }; 83 }; 100 }; 84 }; 101 }; 85 }; 102 86 103 skin-msm-thermal { 87 skin-msm-thermal { >> 88 polling-delay-passive = <0>; >> 89 polling-delay = <0>; 104 thermal-sensors = <&pm 90 thermal-sensors = <&pm8150l_adc_tm 1>; 105 91 106 trips { 92 trips { 107 active-config0 93 active-config0 { 108 temper 94 temperature = <125000>; 109 hyster 95 hysteresis = <1000>; 110 type = 96 type = "passive"; 111 }; 97 }; 112 }; 98 }; 113 }; 99 }; 114 100 115 skin-thermal { 101 skin-thermal { >> 102 polling-delay-passive = <0>; >> 103 polling-delay = <0>; 116 thermal-sensors = <&pm 104 thermal-sensors = <&pm8150_adc_tm 1>; 117 105 118 trips { 106 trips { 119 active-config0 107 active-config0 { 120 temper 108 temperature = <125000>; 121 hyster 109 hysteresis = <1000>; 122 type = 110 type = "passive"; 123 }; 111 }; 124 }; 112 }; 125 }; 113 }; 126 114 127 xo-thermal { 115 xo-thermal { >> 116 polling-delay-passive = <0>; >> 117 polling-delay = <0>; 128 thermal-sensors = <&pm 118 thermal-sensors = <&pm8150_adc_tm 0>; 129 119 130 trips { 120 trips { 131 active-config0 121 active-config0 { 132 temper 122 temperature = <125000>; 133 hyster 123 hysteresis = <1000>; 134 type = 124 type = "passive"; 135 }; 125 }; 136 }; 126 }; 137 }; 127 }; 138 }; 128 }; 139 129 140 vph_pwr: vph-pwr-regulator { 130 vph_pwr: vph-pwr-regulator { 141 compatible = "regulator-fixed" 131 compatible = "regulator-fixed"; 142 regulator-name = "vph_pwr"; 132 regulator-name = "vph_pwr"; 143 regulator-min-microvolt = <370 133 regulator-min-microvolt = <3700000>; 144 regulator-max-microvolt = <370 134 regulator-max-microvolt = <3700000>; 145 }; 135 }; 146 136 147 vreg_s4a_1p8: pm8150-s4 { 137 vreg_s4a_1p8: pm8150-s4 { 148 compatible = "regulator-fixed" 138 compatible = "regulator-fixed"; 149 regulator-name = "vreg_s4a_1p8 139 regulator-name = "vreg_s4a_1p8"; 150 140 151 regulator-min-microvolt = <180 141 regulator-min-microvolt = <1800000>; 152 regulator-max-microvolt = <180 142 regulator-max-microvolt = <1800000>; 153 143 154 regulator-always-on; 144 regulator-always-on; 155 regulator-boot-on; 145 regulator-boot-on; 156 146 157 vin-supply = <&vph_pwr>; 147 vin-supply = <&vph_pwr>; 158 }; 148 }; 159 149 160 vreg_s6c_0p88: smpc6-regulator { 150 vreg_s6c_0p88: smpc6-regulator { 161 compatible = "regulator-fixed" 151 compatible = "regulator-fixed"; 162 regulator-name = "vreg_s6c_0p8 152 regulator-name = "vreg_s6c_0p88"; 163 153 164 regulator-min-microvolt = <880 154 regulator-min-microvolt = <880000>; 165 regulator-max-microvolt = <880 155 regulator-max-microvolt = <880000>; 166 regulator-always-on; 156 regulator-always-on; 167 vin-supply = <&vph_pwr>; 157 vin-supply = <&vph_pwr>; 168 }; 158 }; 169 }; 159 }; 170 160 171 &adsp { 161 &adsp { 172 status = "okay"; 162 status = "okay"; 173 firmware-name = "qcom/sm8250/adsp.mbn" 163 firmware-name = "qcom/sm8250/adsp.mbn"; 174 }; 164 }; 175 165 176 &apps_rsc { 166 &apps_rsc { 177 regulators-0 { !! 167 pm8150-rpmh-regulators { 178 compatible = "qcom,pm8150-rpmh 168 compatible = "qcom,pm8150-rpmh-regulators"; 179 qcom,pmic-id = "a"; 169 qcom,pmic-id = "a"; 180 170 181 vdd-s1-supply = <&vph_pwr>; 171 vdd-s1-supply = <&vph_pwr>; 182 vdd-s2-supply = <&vph_pwr>; 172 vdd-s2-supply = <&vph_pwr>; 183 vdd-s3-supply = <&vph_pwr>; 173 vdd-s3-supply = <&vph_pwr>; 184 vdd-s4-supply = <&vph_pwr>; 174 vdd-s4-supply = <&vph_pwr>; 185 vdd-s5-supply = <&vph_pwr>; 175 vdd-s5-supply = <&vph_pwr>; 186 vdd-s6-supply = <&vph_pwr>; 176 vdd-s6-supply = <&vph_pwr>; 187 vdd-s7-supply = <&vph_pwr>; 177 vdd-s7-supply = <&vph_pwr>; 188 vdd-s8-supply = <&vph_pwr>; 178 vdd-s8-supply = <&vph_pwr>; 189 vdd-s9-supply = <&vph_pwr>; 179 vdd-s9-supply = <&vph_pwr>; 190 vdd-s10-supply = <&vph_pwr>; 180 vdd-s10-supply = <&vph_pwr>; 191 vdd-l1-l8-l11-supply = <&vreg_ 181 vdd-l1-l8-l11-supply = <&vreg_s6c_0p88>; 192 vdd-l2-l10-supply = <&vreg_bob 182 vdd-l2-l10-supply = <&vreg_bob>; 193 vdd-l3-l4-l5-l18-supply = <&vr 183 vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p95>; 194 vdd-l6-l9-supply = <&vreg_s8c_ 184 vdd-l6-l9-supply = <&vreg_s8c_1p3>; 195 vdd-l7-l12-l14-l15-supply = <& 185 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>; 196 vdd-l13-l16-l17-supply = <&vre 186 vdd-l13-l16-l17-supply = <&vreg_bob>; 197 187 198 vreg_s5a_1p9: smps5 { 188 vreg_s5a_1p9: smps5 { 199 regulator-name = "vreg 189 regulator-name = "vreg_s5a_1p9"; 200 regulator-min-microvol 190 regulator-min-microvolt = <1904000>; 201 regulator-max-microvol 191 regulator-max-microvolt = <2000000>; 202 regulator-initial-mode 192 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 203 }; 193 }; 204 194 205 vreg_s6a_0p95: smps6 { 195 vreg_s6a_0p95: smps6 { 206 regulator-name = "vreg 196 regulator-name = "vreg_s6a_0p95"; 207 regulator-min-microvol 197 regulator-min-microvolt = <920000>; 208 regulator-max-microvol 198 regulator-max-microvolt = <1128000>; 209 regulator-initial-mode 199 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 210 }; 200 }; 211 201 212 vreg_l2a_3p1: ldo2 { 202 vreg_l2a_3p1: ldo2 { 213 regulator-name = "vreg 203 regulator-name = "vreg_l2a_3p1"; 214 regulator-min-microvol 204 regulator-min-microvolt = <3072000>; 215 regulator-max-microvol 205 regulator-max-microvolt = <3072000>; 216 regulator-initial-mode 206 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 217 }; 207 }; 218 208 219 vreg_l3a_0p9: ldo3 { 209 vreg_l3a_0p9: ldo3 { 220 regulator-name = "vreg 210 regulator-name = "vreg_l3a_0p9"; 221 regulator-min-microvol 211 regulator-min-microvolt = <928000>; 222 regulator-max-microvol 212 regulator-max-microvolt = <932000>; 223 regulator-initial-mode 213 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 224 }; 214 }; 225 215 226 vreg_l5a_0p875: ldo5 { 216 vreg_l5a_0p875: ldo5 { 227 regulator-name = "vreg 217 regulator-name = "vreg_l5a_0p875"; 228 regulator-min-microvol 218 regulator-min-microvolt = <880000>; 229 regulator-max-microvol 219 regulator-max-microvolt = <880000>; 230 regulator-initial-mode 220 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 231 }; 221 }; 232 222 233 vreg_l6a_1p2: ldo6 { 223 vreg_l6a_1p2: ldo6 { 234 regulator-name = "vreg 224 regulator-name = "vreg_l6a_1p2"; 235 regulator-min-microvol 225 regulator-min-microvolt = <1200000>; 236 regulator-max-microvol 226 regulator-max-microvolt = <1200000>; 237 regulator-initial-mode 227 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 238 }; 228 }; 239 229 240 vreg_l7a_1p7: ldo7 { 230 vreg_l7a_1p7: ldo7 { 241 regulator-name = "vreg 231 regulator-name = "vreg_l7a_1p7"; 242 regulator-min-microvol 232 regulator-min-microvolt = <1704000>; 243 regulator-max-microvol 233 regulator-max-microvolt = <1800000>; 244 regulator-initial-mode 234 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 245 }; 235 }; 246 236 247 vreg_l9a_1p2: ldo9 { 237 vreg_l9a_1p2: ldo9 { 248 regulator-name = "vreg 238 regulator-name = "vreg_l9a_1p2"; 249 regulator-min-microvol 239 regulator-min-microvolt = <1200000>; 250 regulator-max-microvol 240 regulator-max-microvolt = <1200000>; 251 regulator-initial-mode 241 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 252 }; 242 }; 253 243 254 vreg_l10a_1p8: ldo10 { 244 vreg_l10a_1p8: ldo10 { 255 regulator-name = "vreg 245 regulator-name = "vreg_l10a_1p8"; 256 regulator-min-microvol 246 regulator-min-microvolt = <1800000>; 257 regulator-max-microvol 247 regulator-max-microvolt = <1800000>; 258 regulator-initial-mode 248 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 259 }; 249 }; 260 250 261 vreg_l12a_1p8: ldo12 { 251 vreg_l12a_1p8: ldo12 { 262 regulator-name = "vreg 252 regulator-name = "vreg_l12a_1p8"; 263 regulator-min-microvol 253 regulator-min-microvolt = <1800000>; 264 regulator-max-microvol 254 regulator-max-microvolt = <1800000>; 265 regulator-initial-mode 255 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 266 }; 256 }; 267 257 268 vreg_l13a_ts_3p0: ldo13 { 258 vreg_l13a_ts_3p0: ldo13 { 269 regulator-name = "vreg 259 regulator-name = "vreg_l13a_ts_3p0"; 270 regulator-min-microvol 260 regulator-min-microvolt = <3008000>; 271 regulator-max-microvol 261 regulator-max-microvolt = <3008000>; 272 regulator-initial-mode 262 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 273 }; 263 }; 274 264 275 vreg_l14a_1p8: ldo14 { 265 vreg_l14a_1p8: ldo14 { 276 regulator-name = "vreg 266 regulator-name = "vreg_l14a_1p8"; 277 regulator-min-microvol 267 regulator-min-microvolt = <1800000>; 278 regulator-max-microvol 268 regulator-max-microvolt = <1880000>; 279 regulator-initial-mode 269 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 280 }; 270 }; 281 271 282 vreg_l15a_11ad_io_1p8: ldo15 { 272 vreg_l15a_11ad_io_1p8: ldo15 { 283 regulator-name = "vreg 273 regulator-name = "vreg_l15a_11ad_io_1p8"; 284 regulator-min-microvol 274 regulator-min-microvolt = <1800000>; 285 regulator-max-microvol 275 regulator-max-microvolt = <1800000>; 286 regulator-initial-mode 276 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 287 }; 277 }; 288 278 289 vreg_l16a_2p7: ldo16 { 279 vreg_l16a_2p7: ldo16 { 290 regulator-name = "vreg 280 regulator-name = "vreg_l16a_2p7"; 291 regulator-min-microvol 281 regulator-min-microvolt = <2704000>; 292 regulator-max-microvol 282 regulator-max-microvolt = <2960000>; 293 regulator-initial-mode 283 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 294 }; 284 }; 295 285 296 vreg_l17a_3p0: ldo17 { 286 vreg_l17a_3p0: ldo17 { 297 regulator-name = "vreg 287 regulator-name = "vreg_l17a_3p0"; 298 regulator-min-microvol 288 regulator-min-microvolt = <2856000>; 299 regulator-max-microvol 289 regulator-max-microvolt = <3008000>; 300 regulator-initial-mode 290 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 301 }; 291 }; 302 292 303 vreg_l18a_0p9: ldo18 { 293 vreg_l18a_0p9: ldo18 { 304 regulator-name = "vreg 294 regulator-name = "vreg_l18a_0p9"; 305 regulator-min-microvol 295 regulator-min-microvolt = <912000>; 306 regulator-max-microvol 296 regulator-max-microvolt = <912000>; 307 regulator-initial-mode 297 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 308 }; 298 }; 309 }; 299 }; 310 300 311 regulators-1 { !! 301 pm8150l-rpmh-regulators { 312 compatible = "qcom,pm8150l-rpm 302 compatible = "qcom,pm8150l-rpmh-regulators"; 313 qcom,pmic-id = "c"; 303 qcom,pmic-id = "c"; 314 304 315 vdd-s1-supply = <&vph_pwr>; 305 vdd-s1-supply = <&vph_pwr>; 316 vdd-s2-supply = <&vph_pwr>; 306 vdd-s2-supply = <&vph_pwr>; 317 vdd-s3-supply = <&vph_pwr>; 307 vdd-s3-supply = <&vph_pwr>; 318 vdd-s4-supply = <&vph_pwr>; 308 vdd-s4-supply = <&vph_pwr>; 319 vdd-s5-supply = <&vph_pwr>; 309 vdd-s5-supply = <&vph_pwr>; 320 vdd-s6-supply = <&vph_pwr>; 310 vdd-s6-supply = <&vph_pwr>; 321 vdd-s7-supply = <&vph_pwr>; 311 vdd-s7-supply = <&vph_pwr>; 322 vdd-s8-supply = <&vph_pwr>; 312 vdd-s8-supply = <&vph_pwr>; 323 vdd-l1-l8-supply = <&vreg_s4a_ 313 vdd-l1-l8-supply = <&vreg_s4a_1p8>; 324 vdd-l2-l3-supply = <&vreg_s8c_ 314 vdd-l2-l3-supply = <&vreg_s8c_1p3>; 325 vdd-l4-l5-l6-supply = <&vreg_b 315 vdd-l4-l5-l6-supply = <&vreg_bob>; 326 vdd-l7-l11-supply = <&vreg_bob 316 vdd-l7-l11-supply = <&vreg_bob>; 327 vdd-l9-l10-supply = <&vreg_bob 317 vdd-l9-l10-supply = <&vreg_bob>; 328 vdd-bob-supply = <&vph_pwr>; 318 vdd-bob-supply = <&vph_pwr>; 329 319 330 vreg_bob: bob { 320 vreg_bob: bob { 331 regulator-name = "vreg 321 regulator-name = "vreg_bob"; 332 regulator-min-microvol 322 regulator-min-microvolt = <3008000>; 333 regulator-max-microvol 323 regulator-max-microvolt = <4000000>; 334 regulator-initial-mode 324 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 335 }; 325 }; 336 326 337 vreg_s8c_1p3: smps8 { 327 vreg_s8c_1p3: smps8 { 338 regulator-name = "vreg 328 regulator-name = "vreg_s8c_1p3"; 339 regulator-min-microvol 329 regulator-min-microvolt = <1352000>; 340 regulator-max-microvol 330 regulator-max-microvolt = <1352000>; 341 regulator-initial-mode 331 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 342 }; 332 }; 343 333 344 vreg_l1c_1p8: ldo1 { 334 vreg_l1c_1p8: ldo1 { 345 regulator-name = "vreg 335 regulator-name = "vreg_l1c_1p8"; 346 regulator-min-microvol 336 regulator-min-microvolt = <1800000>; 347 regulator-max-microvol 337 regulator-max-microvolt = <1800000>; 348 regulator-initial-mode 338 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 349 }; 339 }; 350 340 351 vreg_l2c_1p2: ldo2 { 341 vreg_l2c_1p2: ldo2 { 352 regulator-name = "vreg 342 regulator-name = "vreg_l2c_1p2"; 353 regulator-min-microvol 343 regulator-min-microvolt = <1200000>; 354 regulator-max-microvol 344 regulator-max-microvolt = <1200000>; 355 regulator-initial-mode 345 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 356 }; 346 }; 357 347 358 vreg_l3c_0p92: ldo3 { 348 vreg_l3c_0p92: ldo3 { 359 regulator-name = "vreg 349 regulator-name = "vreg_l3c_0p92"; 360 regulator-min-microvol 350 regulator-min-microvolt = <920000>; 361 regulator-max-microvol 351 regulator-max-microvolt = <920000>; 362 regulator-initial-mode 352 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 363 }; 353 }; 364 354 365 vreg_l4c_1p7: ldo4 { 355 vreg_l4c_1p7: ldo4 { 366 regulator-name = "vreg 356 regulator-name = "vreg_l4c_1p7"; 367 regulator-min-microvol 357 regulator-min-microvolt = <1704000>; 368 regulator-max-microvol 358 regulator-max-microvolt = <2928000>; 369 regulator-initial-mode 359 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 370 }; 360 }; 371 361 372 vreg_l5c_1p8: ldo5 { 362 vreg_l5c_1p8: ldo5 { 373 regulator-name = "vreg 363 regulator-name = "vreg_l5c_1p8"; 374 regulator-min-microvol 364 regulator-min-microvolt = <1800000>; 375 regulator-max-microvol 365 regulator-max-microvolt = <2928000>; 376 regulator-initial-mode 366 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 377 }; 367 }; 378 368 379 vreg_l6c_2p9: ldo6 { 369 vreg_l6c_2p9: ldo6 { 380 regulator-name = "vreg 370 regulator-name = "vreg_l6c_2p9"; 381 regulator-min-microvol 371 regulator-min-microvolt = <1800000>; 382 regulator-max-microvol 372 regulator-max-microvolt = <2960000>; 383 regulator-initial-mode 373 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 384 }; 374 }; 385 375 386 vreg_l7c_cam_vcm0_2p85: ldo7 { 376 vreg_l7c_cam_vcm0_2p85: ldo7 { 387 regulator-name = "vreg 377 regulator-name = "vreg_l7c_cam_vcm0_2p85"; 388 regulator-min-microvol 378 regulator-min-microvolt = <2856000>; 389 regulator-max-microvol 379 regulator-max-microvolt = <3104000>; 390 regulator-initial-mode 380 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 391 }; 381 }; 392 382 393 vreg_l8c_1p8: ldo8 { 383 vreg_l8c_1p8: ldo8 { 394 regulator-name = "vreg 384 regulator-name = "vreg_l8c_1p8"; 395 regulator-min-microvol 385 regulator-min-microvolt = <1800000>; 396 regulator-max-microvol 386 regulator-max-microvolt = <1800000>; 397 regulator-initial-mode 387 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 398 }; 388 }; 399 389 400 vreg_l9c_2p9: ldo9 { 390 vreg_l9c_2p9: ldo9 { 401 regulator-name = "vreg 391 regulator-name = "vreg_l9c_2p9"; 402 regulator-min-microvol 392 regulator-min-microvolt = <2704000>; 403 regulator-max-microvol 393 regulator-max-microvolt = <2960000>; 404 regulator-initial-mode 394 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 405 }; 395 }; 406 396 407 vreg_l10c_3p0: ldo10 { 397 vreg_l10c_3p0: ldo10 { 408 regulator-name = "vreg 398 regulator-name = "vreg_l10c_3p0"; 409 regulator-min-microvol 399 regulator-min-microvolt = <3000000>; 410 regulator-max-microvol 400 regulator-max-microvolt = <3000000>; 411 regulator-initial-mode 401 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 412 }; 402 }; 413 403 414 vreg_l11c_3p3: ldo11 { 404 vreg_l11c_3p3: ldo11 { 415 regulator-name = "vreg 405 regulator-name = "vreg_l11c_3p3"; 416 regulator-min-microvol 406 regulator-min-microvolt = <3000000>; 417 regulator-max-microvol 407 regulator-max-microvolt = <3312000>; 418 regulator-initial-mode 408 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 419 }; 409 }; 420 }; 410 }; 421 411 422 regulators-2 { !! 412 pm8009-rpmh-regulators { 423 compatible = "qcom,pm8009-rpmh 413 compatible = "qcom,pm8009-rpmh-regulators"; 424 qcom,pmic-id = "f"; 414 qcom,pmic-id = "f"; 425 415 426 vdd-s1-supply = <&vph_pwr>; 416 vdd-s1-supply = <&vph_pwr>; 427 vdd-s2-supply = <&vreg_bob>; 417 vdd-s2-supply = <&vreg_bob>; 428 vdd-l2-supply = <&vreg_s8c_1p3 418 vdd-l2-supply = <&vreg_s8c_1p3>; 429 vdd-l5-l6-supply = <&vreg_bob> 419 vdd-l5-l6-supply = <&vreg_bob>; 430 vdd-l7-supply = <&vreg_s4a_1p8 420 vdd-l7-supply = <&vreg_s4a_1p8>; 431 421 432 vreg_l1f_cam_dvdd1_1p1: ldo1 { 422 vreg_l1f_cam_dvdd1_1p1: ldo1 { 433 regulator-name = "vreg 423 regulator-name = "vreg_l1f_cam_dvdd1_1p1"; 434 regulator-min-microvol 424 regulator-min-microvolt = <1104000>; 435 regulator-max-microvol 425 regulator-max-microvolt = <1104000>; 436 regulator-initial-mode 426 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 437 }; 427 }; 438 428 439 vreg_l2f_cam_dvdd0_1p2: ldo2 { 429 vreg_l2f_cam_dvdd0_1p2: ldo2 { 440 regulator-name = "vreg 430 regulator-name = "vreg_l2f_cam_dvdd0_1p2"; 441 regulator-min-microvol 431 regulator-min-microvolt = <1200000>; 442 regulator-max-microvol 432 regulator-max-microvolt = <1200000>; 443 regulator-initial-mode 433 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 444 }; 434 }; 445 435 446 vreg_l3f_cam_dvdd2_1p05: ldo3 436 vreg_l3f_cam_dvdd2_1p05: ldo3 { 447 regulator-name = "vreg 437 regulator-name = "vreg_l3f_cam_dvdd2_1p05"; 448 regulator-min-microvol 438 regulator-min-microvolt = <1056000>; 449 regulator-max-microvol 439 regulator-max-microvolt = <1056000>; 450 regulator-initial-mode 440 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 451 }; 441 }; 452 442 453 vreg_l5f_cam_avdd0_2p85: ldo5 443 vreg_l5f_cam_avdd0_2p85: ldo5 { 454 regulator-name = "vreg 444 regulator-name = "vreg_l5f_cam_avdd0_2p85"; 455 regulator-min-microvol 445 regulator-min-microvolt = <2800000>; 456 regulator-max-microvol 446 regulator-max-microvolt = <2800000>; 457 regulator-initial-mode 447 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 458 }; 448 }; 459 449 460 vreg_l6f_cam_avdd1_2p85: ldo6 450 vreg_l6f_cam_avdd1_2p85: ldo6 { 461 regulator-name = "vreg 451 regulator-name = "vreg_l6f_cam_avdd1_2p85"; 462 regulator-min-microvol 452 regulator-min-microvolt = <2856000>; 463 regulator-max-microvol 453 regulator-max-microvolt = <2856000>; 464 regulator-initial-mode 454 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 465 }; 455 }; 466 456 467 vreg_l7f_1p8: ldo7 { 457 vreg_l7f_1p8: ldo7 { 468 regulator-name = "vreg 458 regulator-name = "vreg_l7f_1p8"; 469 regulator-min-microvol 459 regulator-min-microvolt = <1800000>; 470 regulator-max-microvol 460 regulator-max-microvolt = <1800000>; 471 regulator-initial-mode 461 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 472 }; 462 }; 473 }; 463 }; 474 }; 464 }; 475 465 476 &cdsp { 466 &cdsp { 477 status = "okay"; 467 status = "okay"; 478 firmware-name = "qcom/sm8250/cdsp.mbn" 468 firmware-name = "qcom/sm8250/cdsp.mbn"; 479 }; 469 }; 480 470 481 &gmu { 471 &gmu { 482 status = "okay"; 472 status = "okay"; 483 }; 473 }; 484 474 485 &gpu { 475 &gpu { 486 status = "okay"; 476 status = "okay"; 487 477 488 zap-shader { 478 zap-shader { 489 memory-region = <&gpu_mem>; 479 memory-region = <&gpu_mem>; 490 firmware-name = "qcom/sm8250/a 480 firmware-name = "qcom/sm8250/a650_zap.mbn"; 491 }; 481 }; 492 }; 482 }; 493 483 494 &i2c1 { 484 &i2c1 { 495 status = "okay"; 485 status = "okay"; 496 clock-frequency = <1000000>; 486 clock-frequency = <1000000>; 497 487 498 /* NQ NFC chip @28 */ 488 /* NQ NFC chip @28 */ 499 }; 489 }; 500 490 501 &i2c13 { 491 &i2c13 { 502 status = "okay"; 492 status = "okay"; 503 493 504 /* st,stmfts @ 49 */ 494 /* st,stmfts @ 49 */ 505 }; 495 }; 506 496 507 &i2c15 { 497 &i2c15 { 508 status = "okay"; 498 status = "okay"; 509 499 510 /* smb1390 @ 10 */ 500 /* smb1390 @ 10 */ 511 /* rtc6226 @ 64 */ 501 /* rtc6226 @ 64 */ 512 }; 502 }; 513 503 514 &pm8150_adc { 504 &pm8150_adc { 515 channel@4c { !! 505 xo-therm@4c { 516 reg = <ADC5_XO_THERM_100K_PU>; 506 reg = <ADC5_XO_THERM_100K_PU>; 517 qcom,ratiometric; 507 qcom,ratiometric; 518 qcom,hw-settle-time = <200>; 508 qcom,hw-settle-time = <200>; 519 label = "xo_therm"; << 520 }; 509 }; 521 510 522 channel@4d { !! 511 skin-therm@4d { 523 reg = <ADC5_AMUX_THM1_100K_PU> 512 reg = <ADC5_AMUX_THM1_100K_PU>; 524 qcom,ratiometric; 513 qcom,ratiometric; 525 qcom,hw-settle-time = <200>; 514 qcom,hw-settle-time = <200>; 526 label = "skin_therm"; << 527 }; 515 }; 528 516 529 channel@4e { !! 517 pa-therm1@4e { 530 reg = <ADC5_AMUX_THM2_100K_PU> 518 reg = <ADC5_AMUX_THM2_100K_PU>; 531 qcom,ratiometric; 519 qcom,ratiometric; 532 qcom,hw-settle-time = <200>; 520 qcom,hw-settle-time = <200>; 533 label = "pa_therm1"; << 534 }; 521 }; 535 }; 522 }; 536 523 537 &pm8150_adc_tm { 524 &pm8150_adc_tm { 538 status = "okay"; 525 status = "okay"; 539 526 540 xo-therm@0 { 527 xo-therm@0 { 541 reg = <0>; 528 reg = <0>; 542 io-channels = <&pm8150_adc ADC 529 io-channels = <&pm8150_adc ADC5_XO_THERM_100K_PU>; 543 qcom,ratiometric; 530 qcom,ratiometric; 544 qcom,hw-settle-time-us = <200> 531 qcom,hw-settle-time-us = <200>; 545 }; 532 }; 546 533 547 skin-therm@1 { 534 skin-therm@1 { 548 reg = <1>; 535 reg = <1>; 549 io-channels = <&pm8150_adc ADC 536 io-channels = <&pm8150_adc ADC5_AMUX_THM1_100K_PU>; 550 qcom,ratiometric; 537 qcom,ratiometric; 551 qcom,hw-settle-time-us = <200> 538 qcom,hw-settle-time-us = <200>; 552 }; 539 }; 553 540 554 pa-therm1@2 { 541 pa-therm1@2 { 555 reg = <2>; 542 reg = <2>; 556 io-channels = <&pm8150_adc ADC 543 io-channels = <&pm8150_adc ADC5_AMUX_THM2_100K_PU>; 557 qcom,ratiometric; 544 qcom,ratiometric; 558 qcom,hw-settle-time-us = <200> 545 qcom,hw-settle-time-us = <200>; 559 }; 546 }; 560 }; 547 }; 561 548 562 &pm8150b_adc { 549 &pm8150b_adc { 563 channel@4f { !! 550 conn-therm@4f { 564 reg = <ADC5_AMUX_THM3_100K_PU> 551 reg = <ADC5_AMUX_THM3_100K_PU>; 565 qcom,ratiometric; 552 qcom,ratiometric; 566 qcom,hw-settle-time = <200>; 553 qcom,hw-settle-time = <200>; 567 label = "conn_therm"; << 568 }; 554 }; 569 }; 555 }; 570 556 571 &pm8150b_adc_tm { 557 &pm8150b_adc_tm { 572 status = "okay"; 558 status = "okay"; 573 559 574 conn-therm@0 { 560 conn-therm@0 { 575 reg = <0>; 561 reg = <0>; 576 io-channels = <&pm8150b_adc AD 562 io-channels = <&pm8150b_adc ADC5_AMUX_THM3_100K_PU>; 577 qcom,ratiometric; 563 qcom,ratiometric; 578 qcom,hw-settle-time-us = <200> 564 qcom,hw-settle-time-us = <200>; 579 }; 565 }; 580 }; 566 }; 581 567 582 &pm8150l_adc_tm { 568 &pm8150l_adc_tm { 583 status = "okay"; 569 status = "okay"; 584 570 585 camera-flash-therm@0 { 571 camera-flash-therm@0 { 586 reg = <0>; 572 reg = <0>; 587 io-channels = <&pm8150l_adc AD 573 io-channels = <&pm8150l_adc ADC5_AMUX_THM1_100K_PU>; 588 qcom,ratiometric; 574 qcom,ratiometric; 589 qcom,hw-settle-time-us = <200> 575 qcom,hw-settle-time-us = <200>; 590 }; 576 }; 591 577 592 skin-msm-therm@1 { 578 skin-msm-therm@1 { 593 reg = <1>; 579 reg = <1>; 594 io-channels = <&pm8150l_adc AD 580 io-channels = <&pm8150l_adc ADC5_AMUX_THM2_100K_PU>; 595 qcom,ratiometric; 581 qcom,ratiometric; 596 qcom,hw-settle-time-us = <200> 582 qcom,hw-settle-time-us = <200>; 597 }; 583 }; 598 584 599 pa-therm2@2 { 585 pa-therm2@2 { 600 reg = <2>; 586 reg = <2>; 601 io-channels = <&pm8150l_adc AD 587 io-channels = <&pm8150l_adc ADC5_AMUX_THM3_100K_PU>; 602 qcom,ratiometric; 588 qcom,ratiometric; 603 qcom,hw-settle-time-us = <200> 589 qcom,hw-settle-time-us = <200>; 604 }; 590 }; 605 }; 591 }; 606 592 607 &pm8150l_adc { 593 &pm8150l_adc { 608 channel@4d { !! 594 camera-flash-therm@4d { 609 reg = <ADC5_AMUX_THM1_100K_PU> 595 reg = <ADC5_AMUX_THM1_100K_PU>; 610 qcom,ratiometric; 596 qcom,ratiometric; 611 qcom,hw-settle-time = <200>; 597 qcom,hw-settle-time = <200>; 612 label = "camera_flash_therm"; << 613 }; 598 }; 614 599 615 channel@4e { !! 600 skin-msm-therm@4e { 616 reg = <ADC5_AMUX_THM2_100K_PU> 601 reg = <ADC5_AMUX_THM2_100K_PU>; 617 qcom,ratiometric; 602 qcom,ratiometric; 618 qcom,hw-settle-time = <200>; 603 qcom,hw-settle-time = <200>; 619 label = "skin_msm_therm"; << 620 }; 604 }; 621 605 622 channel@4f { !! 606 pa-therm2@4f { 623 reg = <ADC5_AMUX_THM3_100K_PU> 607 reg = <ADC5_AMUX_THM3_100K_PU>; 624 qcom,ratiometric; 608 qcom,ratiometric; 625 qcom,hw-settle-time = <200>; 609 qcom,hw-settle-time = <200>; 626 label = "pa_therm2"; << 627 }; 610 }; 628 }; 611 }; 629 612 630 &qupv3_id_0 { 613 &qupv3_id_0 { 631 status = "okay"; 614 status = "okay"; 632 }; 615 }; 633 616 634 &qupv3_id_1 { 617 &qupv3_id_1 { 635 status = "okay"; 618 status = "okay"; 636 }; 619 }; 637 620 638 &qupv3_id_2 { 621 &qupv3_id_2 { 639 status = "okay"; 622 status = "okay"; 640 }; 623 }; 641 624 642 &rxmacro { 625 &rxmacro { 643 status = "okay"; 626 status = "okay"; 644 }; 627 }; 645 628 646 &slpi { 629 &slpi { 647 status = "okay"; 630 status = "okay"; 648 firmware-name = "qcom/sm8250/slpi.mbn" 631 firmware-name = "qcom/sm8250/slpi.mbn"; 649 }; 632 }; 650 633 >> 634 &soc { >> 635 wcd938x: codec { >> 636 compatible = "qcom,wcd9380-codec"; >> 637 #sound-dai-cells = <1>; >> 638 reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; >> 639 vdd-buck-supply = <&vreg_s4a_1p8>; >> 640 vdd-rxtx-supply = <&vreg_s4a_1p8>; >> 641 vdd-io-supply = <&vreg_s4a_1p8>; >> 642 vdd-mic-bias-supply = <&vreg_bob>; >> 643 qcom,micbias1-microvolt = <1800000>; >> 644 qcom,micbias2-microvolt = <1800000>; >> 645 qcom,micbias3-microvolt = <1800000>; >> 646 qcom,micbias4-microvolt = <1800000>; >> 647 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; >> 648 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; >> 649 qcom,mbhc-headphone-vthreshold-microvolt = <50000>; >> 650 qcom,rx-device = <&wcd_rx>; >> 651 qcom,tx-device = <&wcd_tx>; >> 652 }; >> 653 }; >> 654 651 &sound { 655 &sound { 652 compatible = "qcom,sm8250-sndcard"; 656 compatible = "qcom,sm8250-sndcard"; 653 model = "SM8250-MTP-WCD9380-WSA8810-VA 657 model = "SM8250-MTP-WCD9380-WSA8810-VA-DMIC"; 654 audio-routing = 658 audio-routing = 655 "SpkrLeft IN", "WSA_SPK1 OUT", 659 "SpkrLeft IN", "WSA_SPK1 OUT", 656 "SpkrRight IN", "WSA_SPK2 OUT" 660 "SpkrRight IN", "WSA_SPK2 OUT", 657 "IN1_HPHL", "HPHL_OUT", 661 "IN1_HPHL", "HPHL_OUT", 658 "IN2_HPHR", "HPHR_OUT", 662 "IN2_HPHR", "HPHR_OUT", 659 "AMIC1", "MIC BIAS1", 663 "AMIC1", "MIC BIAS1", 660 "AMIC2", "MIC BIAS2", 664 "AMIC2", "MIC BIAS2", 661 "AMIC3", "MIC BIAS3", 665 "AMIC3", "MIC BIAS3", 662 "AMIC4", "MIC BIAS3", 666 "AMIC4", "MIC BIAS3", 663 "AMIC5", "MIC BIAS4", 667 "AMIC5", "MIC BIAS4", 664 "TX SWR_ADC0", "ADC1_OUTPUT", 668 "TX SWR_ADC0", "ADC1_OUTPUT", 665 "TX SWR_ADC1", "ADC2_OUTPUT", 669 "TX SWR_ADC1", "ADC2_OUTPUT", 666 "TX SWR_ADC2", "ADC3_OUTPUT", 670 "TX SWR_ADC2", "ADC3_OUTPUT", 667 "TX SWR_ADC3", "ADC4_OUTPUT", 671 "TX SWR_ADC3", "ADC4_OUTPUT", 668 "TX SWR_DMIC0", "DMIC1_OUTPUT" 672 "TX SWR_DMIC0", "DMIC1_OUTPUT", 669 "TX SWR_DMIC1", "DMIC2_OUTPUT" 673 "TX SWR_DMIC1", "DMIC2_OUTPUT", 670 "TX SWR_DMIC2", "DMIC3_OUTPUT" 674 "TX SWR_DMIC2", "DMIC3_OUTPUT", 671 "TX SWR_DMIC3", "DMIC4_OUTPUT" 675 "TX SWR_DMIC3", "DMIC4_OUTPUT", 672 "TX SWR_DMIC4", "DMIC5_OUTPUT" 676 "TX SWR_DMIC4", "DMIC5_OUTPUT", 673 "TX SWR_DMIC5", "DMIC6_OUTPUT" 677 "TX SWR_DMIC5", "DMIC6_OUTPUT", 674 "TX SWR_DMIC6", "DMIC7_OUTPUT" 678 "TX SWR_DMIC6", "DMIC7_OUTPUT", 675 "TX SWR_DMIC7", "DMIC8_OUTPUT" 679 "TX SWR_DMIC7", "DMIC8_OUTPUT"; 676 680 677 mm1-dai-link { 681 mm1-dai-link { 678 link-name = "MultiMedia1"; 682 link-name = "MultiMedia1"; 679 cpu { 683 cpu { 680 sound-dai = <&q6asmdai 684 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 681 }; 685 }; 682 }; 686 }; 683 687 684 mm2-dai-link { 688 mm2-dai-link { 685 link-name = "MultiMedia2"; 689 link-name = "MultiMedia2"; 686 cpu { 690 cpu { 687 sound-dai = <&q6asmdai 691 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; 688 }; 692 }; 689 }; 693 }; 690 694 691 mm3-dai-link { 695 mm3-dai-link { 692 link-name = "MultiMedia3"; 696 link-name = "MultiMedia3"; 693 cpu { 697 cpu { 694 sound-dai = <&q6asmdai 698 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; 695 }; 699 }; 696 }; 700 }; 697 701 698 wcd-playback-dai-link { 702 wcd-playback-dai-link { 699 link-name = "WCD Playback"; 703 link-name = "WCD Playback"; 700 cpu { 704 cpu { 701 sound-dai = <&q6afedai 705 sound-dai = <&q6afedai RX_CODEC_DMA_RX_0>; 702 }; 706 }; 703 codec { 707 codec { 704 sound-dai = <&wcd938x 708 sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>; 705 }; 709 }; 706 platform { 710 platform { 707 sound-dai = <&q6routin 711 sound-dai = <&q6routing>; 708 }; 712 }; 709 }; 713 }; 710 714 711 wcd-capture-dai-link { 715 wcd-capture-dai-link { 712 link-name = "WCD Capture"; 716 link-name = "WCD Capture"; 713 cpu { 717 cpu { 714 sound-dai = <&q6afedai 718 sound-dai = <&q6afedai TX_CODEC_DMA_TX_3>; 715 }; 719 }; 716 720 717 codec { 721 codec { 718 sound-dai = <&wcd938x 722 sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>; 719 }; 723 }; 720 platform { 724 platform { 721 sound-dai = <&q6routin 725 sound-dai = <&q6routing>; 722 }; 726 }; 723 }; 727 }; 724 728 725 wsa-dai-link { 729 wsa-dai-link { 726 link-name = "WSA Playback"; 730 link-name = "WSA Playback"; 727 cpu { 731 cpu { 728 sound-dai = <&q6afedai 732 sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>; 729 }; 733 }; 730 734 731 codec { 735 codec { 732 sound-dai = <&left_spk 736 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>; 733 }; 737 }; 734 platform { 738 platform { 735 sound-dai = <&q6routin 739 sound-dai = <&q6routing>; 736 }; 740 }; 737 }; 741 }; 738 742 739 va-dai-link { 743 va-dai-link { 740 link-name = "VA Capture"; 744 link-name = "VA Capture"; 741 cpu { 745 cpu { 742 sound-dai = <&q6afedai 746 sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>; 743 }; 747 }; 744 748 745 platform { 749 platform { 746 sound-dai = <&q6routin 750 sound-dai = <&q6routing>; 747 }; 751 }; 748 752 749 codec { 753 codec { 750 sound-dai = <&vamacro 754 sound-dai = <&vamacro 0>; 751 }; 755 }; 752 }; 756 }; 753 }; 757 }; 754 758 755 &swr0 { 759 &swr0 { 756 status = "okay"; !! 760 left_spkr: wsa8810-right@0,3{ 757 << 758 left_spkr: speaker@0,3 { << 759 compatible = "sdw10217211000"; 761 compatible = "sdw10217211000"; 760 reg = <0 3>; 762 reg = <0 3>; 761 powerdown-gpios = <&tlmm 26 GP !! 763 powerdown-gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>; 762 #thermal-sensor-cells = <0>; 764 #thermal-sensor-cells = <0>; 763 sound-name-prefix = "SpkrLeft" 765 sound-name-prefix = "SpkrLeft"; 764 #sound-dai-cells = <0>; 766 #sound-dai-cells = <0>; 765 }; 767 }; 766 768 767 right_spkr: speaker@0,4 { !! 769 right_spkr: wsa8810-left@0,4{ 768 compatible = "sdw10217211000"; 770 compatible = "sdw10217211000"; 769 reg = <0 4>; 771 reg = <0 4>; 770 powerdown-gpios = <&tlmm 127 G !! 772 powerdown-gpios = <&tlmm 127 GPIO_ACTIVE_HIGH>; 771 #thermal-sensor-cells = <0>; 773 #thermal-sensor-cells = <0>; 772 sound-name-prefix = "SpkrRight 774 sound-name-prefix = "SpkrRight"; 773 #sound-dai-cells = <0>; 775 #sound-dai-cells = <0>; 774 }; 776 }; 775 }; 777 }; 776 778 777 &swr1 { 779 &swr1 { 778 status = "okay"; 780 status = "okay"; 779 781 780 wcd_rx: wcd9380-rx@0,4 { 782 wcd_rx: wcd9380-rx@0,4 { 781 compatible = "sdw20217010d00"; 783 compatible = "sdw20217010d00"; 782 reg = <0 4>; 784 reg = <0 4>; 783 qcom,rx-port-mapping = <1 2 3 785 qcom,rx-port-mapping = <1 2 3 4 5>; 784 }; 786 }; 785 }; 787 }; 786 788 787 &swr2 { 789 &swr2 { 788 status = "okay"; 790 status = "okay"; 789 791 790 wcd_tx: wcd9380-tx@0,3 { 792 wcd_tx: wcd9380-tx@0,3 { 791 compatible = "sdw20217010d00"; 793 compatible = "sdw20217010d00"; 792 reg = <0 3>; 794 reg = <0 3>; 793 qcom,tx-port-mapping = <2 3 4 795 qcom,tx-port-mapping = <2 3 4 5>; 794 }; 796 }; 795 }; 797 }; 796 798 797 &tlmm { 799 &tlmm { 798 gpio-reserved-ranges = <28 4>, <40 4>; 800 gpio-reserved-ranges = <28 4>, <40 4>; 799 801 800 wcd938x_reset_default: wcd938x-reset-d !! 802 wcd938x_reset_default: wcd938x_reset_default { 801 pins = "gpio32"; !! 803 mux { 802 function = "gpio"; !! 804 pins = "gpio32"; 803 drive-strength = <16>; !! 805 function = "gpio"; 804 output-high; !! 806 }; >> 807 >> 808 config { >> 809 pins = "gpio32"; >> 810 drive-strength = <16>; >> 811 output-high; >> 812 }; 805 }; 813 }; 806 814 807 wcd938x_reset_sleep: wcd938x-reset-sle !! 815 wcd938x_reset_sleep: wcd938x_reset_sleep { 808 pins = "gpio32"; !! 816 mux { 809 function = "gpio"; !! 817 pins = "gpio32"; 810 drive-strength = <16>; !! 818 function = "gpio"; 811 bias-disable; !! 819 }; 812 output-low; !! 820 >> 821 config { >> 822 pins = "gpio32"; >> 823 drive-strength = <16>; >> 824 bias-disable; >> 825 output-low; >> 826 }; 813 }; 827 }; 814 }; 828 }; 815 829 816 &txmacro { 830 &txmacro { 817 status = "okay"; 831 status = "okay"; 818 }; 832 }; 819 833 820 &uart12 { 834 &uart12 { 821 status = "okay"; 835 status = "okay"; 822 }; 836 }; 823 837 824 &ufs_mem_hc { 838 &ufs_mem_hc { 825 status = "okay"; 839 status = "okay"; 826 840 827 vcc-supply = <&vreg_l17a_3p0>; 841 vcc-supply = <&vreg_l17a_3p0>; 828 vcc-max-microamp = <750000>; 842 vcc-max-microamp = <750000>; 829 vccq-supply = <&vreg_l6a_1p2>; 843 vccq-supply = <&vreg_l6a_1p2>; 830 vccq-max-microamp = <700000>; 844 vccq-max-microamp = <700000>; 831 vccq2-supply = <&vreg_s4a_1p8>; 845 vccq2-supply = <&vreg_s4a_1p8>; 832 vccq2-max-microamp = <750000>; 846 vccq2-max-microamp = <750000>; 833 }; 847 }; 834 848 835 &ufs_mem_phy { 849 &ufs_mem_phy { 836 status = "okay"; 850 status = "okay"; 837 851 838 vdda-phy-supply = <&vreg_l5a_0p875>; 852 vdda-phy-supply = <&vreg_l5a_0p875>; 839 vdda-pll-supply = <&vreg_l9a_1p2>; 853 vdda-pll-supply = <&vreg_l9a_1p2>; 840 }; 854 }; 841 855 842 &usb_1 { 856 &usb_1 { 843 status = "okay"; 857 status = "okay"; 844 }; 858 }; 845 859 846 &usb_1_dwc3 { 860 &usb_1_dwc3 { 847 dr_mode = "host"; 861 dr_mode = "host"; 848 }; 862 }; 849 863 850 &usb_1_hsphy { 864 &usb_1_hsphy { 851 status = "okay"; 865 status = "okay"; 852 866 853 vdda-pll-supply = <&vreg_l5a_0p875>; 867 vdda-pll-supply = <&vreg_l5a_0p875>; 854 vdda18-supply = <&vreg_l12a_1p8>; 868 vdda18-supply = <&vreg_l12a_1p8>; 855 vdda33-supply = <&vreg_l2a_3p1>; 869 vdda33-supply = <&vreg_l2a_3p1>; 856 }; 870 }; 857 871 858 &usb_1_qmpphy { 872 &usb_1_qmpphy { 859 status = "okay"; 873 status = "okay"; 860 874 861 vdda-phy-supply = <&vreg_l9a_1p2>; 875 vdda-phy-supply = <&vreg_l9a_1p2>; 862 vdda-pll-supply = <&vreg_l18a_0p9>; 876 vdda-pll-supply = <&vreg_l18a_0p9>; 863 }; 877 }; 864 878 865 &usb_2 { 879 &usb_2 { 866 status = "okay"; 880 status = "okay"; 867 }; 881 }; 868 882 869 &usb_2_dwc3 { 883 &usb_2_dwc3 { 870 dr_mode = "host"; 884 dr_mode = "host"; 871 }; 885 }; 872 886 873 &usb_2_hsphy { 887 &usb_2_hsphy { 874 status = "okay"; 888 status = "okay"; 875 889 876 vdda-pll-supply = <&vreg_l5a_0p875>; 890 vdda-pll-supply = <&vreg_l5a_0p875>; 877 vdda18-supply = <&vreg_l12a_1p8>; 891 vdda18-supply = <&vreg_l12a_1p8>; 878 vdda33-supply = <&vreg_l2a_3p1>; 892 vdda33-supply = <&vreg_l2a_3p1>; 879 }; 893 }; 880 894 881 &usb_2_qmpphy { 895 &usb_2_qmpphy { 882 status = "okay"; 896 status = "okay"; 883 897 884 vdda-phy-supply = <&vreg_l9a_1p2>; 898 vdda-phy-supply = <&vreg_l9a_1p2>; 885 vdda-pll-supply = <&vreg_l18a_0p9>; 899 vdda-pll-supply = <&vreg_l18a_0p9>; 886 }; 900 }; 887 901 888 &venus { 902 &venus { 889 status = "okay"; << 890 }; << 891 << 892 &wsamacro { << 893 status = "okay"; 903 status = "okay"; 894 }; 904 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.