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 PM8019 regulators

Add the necessary definitions for the PM8019 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-4-ba4b3bfaf87d@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Stephan Gerhold and committed by
Mark Brown
5b30cb2a 350aab7f

+23
+23
drivers/regulator/qcom_spmi-regulator.c
··· 2118 2118 { } 2119 2119 }; 2120 2120 2121 + static const struct spmi_regulator_data pm8019_regulators[] = { 2122 + { "s1", 0x1400, "vdd_s1", }, 2123 + { "s2", 0x1700, "vdd_s2", }, 2124 + { "s3", 0x1a00, "vdd_s3", }, 2125 + { "s4", 0x1d00, "vdd_s4", }, 2126 + { "l1", 0x4000, "vdd_l1", }, 2127 + { "l2", 0x4100, "vdd_l2_l3", }, 2128 + { "l3", 0x4200, "vdd_l2_l3", }, 2129 + { "l4", 0x4300, "vdd_l4_l5_l6", }, 2130 + { "l5", 0x4400, "vdd_l4_l5_l6", }, 2131 + { "l6", 0x4500, "vdd_l4_l5_l6", }, 2132 + { "l7", 0x4600, "vdd_l7_l8_l11", }, 2133 + { "l8", 0x4700, "vdd_l7_l8_l11", }, 2134 + { "l9", 0x4800, "vdd_l9", }, 2135 + { "l10", 0x4900, "vdd_l10", }, 2136 + { "l11", 0x4a00, "vdd_l7_l8_l11", }, 2137 + { "l12", 0x4b00, "vdd_l12", }, 2138 + { "l13", 0x4c00, "vdd_l13_l14", }, 2139 + { "l14", 0x4d00, "vdd_l13_l14", }, 2140 + { } 2141 + }; 2142 + 2121 2143 static const struct spmi_regulator_data pm8226_regulators[] = { 2122 2144 { "s1", 0x1400, "vdd_s1", }, 2123 2145 { "s2", 0x1700, "vdd_s2", }, ··· 2400 2378 { .compatible = "qcom,pm660l-regulators", .data = &pm660l_regulators }, 2401 2379 { .compatible = "qcom,pm8004-regulators", .data = &pm8004_regulators }, 2402 2380 { .compatible = "qcom,pm8005-regulators", .data = &pm8005_regulators }, 2381 + { .compatible = "qcom,pm8019-regulators", .data = &pm8019_regulators }, 2403 2382 { .compatible = "qcom,pm8226-regulators", .data = &pm8226_regulators }, 2404 2383 { .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators }, 2405 2384 { .compatible = "qcom,pm8909-regulators", .data = &pm8909_regulators },