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

Add the necessary definitions for the PM8909 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@kernkonzept.com>
Link: https://lore.kernel.org/r/20230912-spmi-pm8909-v1-2-ba4b3bfaf87d@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Stephan Gerhold and committed by
Mark Brown
813d01a4 6f208720

+24
+24
drivers/regulator/qcom_spmi-regulator.c
··· 2168 2168 { } 2169 2169 }; 2170 2170 2171 + static const struct spmi_regulator_data pm8909_regulators[] = { 2172 + { "s1", 0x1400, "vdd_s1", }, 2173 + { "s2", 0x1700, "vdd_s2", }, 2174 + { "l1", 0x4000, "vdd_l1", }, 2175 + { "l2", 0x4100, "vdd_l2_l5", }, 2176 + { "l3", 0x4200, "vdd_l3_l6_l10", }, 2177 + { "l4", 0x4300, "vdd_l4_l7", }, 2178 + { "l5", 0x4400, "vdd_l2_l5", }, 2179 + { "l6", 0x4500, "vdd_l3_l6_l10", }, 2180 + { "l7", 0x4600, "vdd_l4_l7", }, 2181 + { "l8", 0x4700, "vdd_l8_l11_l15_l18", }, 2182 + { "l9", 0x4800, "vdd_l9_l12_l14_l17", }, 2183 + { "l10", 0x4900, "vdd_l3_l6_l10", }, 2184 + { "l11", 0x4a00, "vdd_l8_l11_l15_l18", }, 2185 + { "l12", 0x4b00, "vdd_l9_l12_l14_l17", }, 2186 + { "l13", 0x4c00, "vdd_l13", }, 2187 + { "l14", 0x4d00, "vdd_l9_l12_l14_l17", }, 2188 + { "l15", 0x4e00, "vdd_l8_l11_l15_l18", }, 2189 + { "l17", 0x5000, "vdd_l9_l12_l14_l17", }, 2190 + { "l18", 0x5100, "vdd_l8_l11_l15_l18", }, 2191 + { } 2192 + }; 2193 + 2171 2194 static const struct spmi_regulator_data pm8916_regulators[] = { 2172 2195 { "s1", 0x1400, "vdd_s1", }, 2173 2196 { "s2", 0x1700, "vdd_s2", }, ··· 2380 2357 { .compatible = "qcom,pm8005-regulators", .data = &pm8005_regulators }, 2381 2358 { .compatible = "qcom,pm8226-regulators", .data = &pm8226_regulators }, 2382 2359 { .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators }, 2360 + { .compatible = "qcom,pm8909-regulators", .data = &pm8909_regulators }, 2383 2361 { .compatible = "qcom,pm8916-regulators", .data = &pm8916_regulators }, 2384 2362 { .compatible = "qcom,pm8941-regulators", .data = &pm8941_regulators }, 2385 2363 { .compatible = "qcom,pm8950-regulators", .data = &pm8950_regulators },