Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

regulator: qcom_spmi: Add PMA8084 regulators

Add the necessary definitions for the PMA8084 PMIC to the
qcom_spmi-regulator driver to allow reading the actual voltages applied
to the hardware at runtime. This is mainly intended for debugging since
the regulators are usually controlled through the RPM firmware (via
qcom_smd-regulator).

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20230912-spmi-pm8909-v1-6-ba4b3bfaf87d@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Stephan Gerhold and committed by
Mark Brown
317aa3c4 f72d0423

+49
+49
drivers/regulator/qcom_spmi-regulator.c
··· 2359 2359 { } 2360 2360 }; 2361 2361 2362 + static const struct spmi_regulator_data pma8084_regulators[] = { 2363 + { "s1", 0x1400, "vdd_s1", }, 2364 + { "s2", 0x1700, "vdd_s2", }, 2365 + { "s3", 0x1a00, "vdd_s3", }, 2366 + { "s4", 0x1d00, "vdd_s4", }, 2367 + { "s5", 0x2000, "vdd_s5", }, 2368 + { "s6", 0x2300, "vdd_s6", }, 2369 + { "s7", 0x2600, "vdd_s7", }, 2370 + { "s8", 0x2900, "vdd_s8", }, 2371 + { "s9", 0x2c00, "vdd_s9", }, 2372 + { "s10", 0x2f00, "vdd_s10", }, 2373 + { "s11", 0x3200, "vdd_s11", }, 2374 + { "s12", 0x3500, "vdd_s12", }, 2375 + { "l1", 0x4000, "vdd_l1_l11", }, 2376 + { "l2", 0x4100, "vdd_l2_l3_l4_l27", }, 2377 + { "l3", 0x4200, "vdd_l2_l3_l4_l27", }, 2378 + { "l4", 0x4300, "vdd_l2_l3_l4_l27", }, 2379 + { "l5", 0x4400, "vdd_l5_l7", }, 2380 + { "l6", 0x4500, "vdd_l6_l12_l14_l15_l26", }, 2381 + { "l7", 0x4600, "vdd_l5_l7", }, 2382 + { "l8", 0x4700, "vdd_l8", }, 2383 + { "l9", 0x4800, "vdd_l9_l10_l13_l20_l23_l24", }, 2384 + { "l10", 0x4900, "vdd_l9_l10_l13_l20_l23_l24", }, 2385 + { "l11", 0x4a00, "vdd_l1_l11", }, 2386 + { "l12", 0x4b00, "vdd_l6_l12_l14_l15_l26", }, 2387 + { "l13", 0x4c00, "vdd_l9_l10_l13_l20_l23_l24", }, 2388 + { "l14", 0x4d00, "vdd_l6_l12_l14_l15_l26", }, 2389 + { "l15", 0x4e00, "vdd_l6_l12_l14_l15_l26", }, 2390 + { "l16", 0x4f00, "vdd_l16_l25", }, 2391 + { "l17", 0x5000, "vdd_l17", }, 2392 + { "l18", 0x5100, "vdd_l18", }, 2393 + { "l19", 0x5200, "vdd_l19", }, 2394 + { "l20", 0x5300, "vdd_l9_l10_l13_l20_l23_l24", }, 2395 + { "l21", 0x5400, "vdd_l21", }, 2396 + { "l22", 0x5500, "vdd_l22", }, 2397 + { "l23", 0x5600, "vdd_l9_l10_l13_l20_l23_l24", }, 2398 + { "l24", 0x5700, "vdd_l9_l10_l13_l20_l23_l24", }, 2399 + { "l25", 0x5800, "vdd_l16_l25", }, 2400 + { "l26", 0x5900, "vdd_l6_l12_l14_l15_l26", }, 2401 + { "l27", 0x5a00, "vdd_l2_l3_l4_l27", }, 2402 + { "lvs1", 0x8000, "vdd_lvs1_2", }, 2403 + { "lvs2", 0x8100, "vdd_lvs1_2", }, 2404 + { "lvs3", 0x8200, "vdd_lvs3_4", }, 2405 + { "lvs4", 0x8300, "vdd_lvs3_4", }, 2406 + { "5vs1", 0x8400, "vdd_5vs1", }, 2407 + { } 2408 + }; 2409 + 2362 2410 static const struct spmi_regulator_data pmi8994_regulators[] = { 2363 2411 { "s1", 0x1400, "vdd_s1", }, 2364 2412 { "s2", 0x1700, "vdd_s2", }, ··· 2456 2408 { .compatible = "qcom,pm8941-regulators", .data = &pm8941_regulators }, 2457 2409 { .compatible = "qcom,pm8950-regulators", .data = &pm8950_regulators }, 2458 2410 { .compatible = "qcom,pm8994-regulators", .data = &pm8994_regulators }, 2411 + { .compatible = "qcom,pma8084-regulators", .data = &pma8084_regulators }, 2459 2412 { .compatible = "qcom,pmi8994-regulators", .data = &pmi8994_regulators }, 2460 2413 { .compatible = "qcom,pmp8074-regulators", .data = &pmp8074_regulators }, 2461 2414 { .compatible = "qcom,pms405-regulators", .data = &pms405_regulators },