soc: qcom: spmi-pmic: add SUBTYPEs for Glymur/Kaanapali/SM8750 PMICs

On Glymur, Kaanapali, and SM8750, PMIC info is not being properly populated
in qcom_socinfo. Its shows `unknown` as PMIC subtypes are
not updated in the socinfo.

root@glymur-crd:/sys/kernel/debug/qcom_socinfo# cat pmic_model
unknown (92)
root@glymur-crd:/sys/kernel/debug/qcom_socinfo# cat pmic_model_array
unknown (92)
unknown (93)
unknown (98)
unknown (98)
unknown (97)
unknown (97)
unknown (96)
unknown (96)

Update the SUBTYPE info for PMICs present on Glymur,Kaanapali and
SM8750 boards, to fix this issue.

Also, there are some PMIC subtypes present in the socinfo but not
present in the spmi header file, add these entries to keep both definitions
aligned.

Signed-off-by: Raj Aryan <raryan@qti.qualcomm.com>
Link: https://lore.kernel.org/r/20260507-fury-v1-1-d24e4bb5b774@qti.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
Raj Aryan 2026-05-07 19:27:15 +05:30 committed by Bjorn Andersson
parent 79602b750b
commit 95e3c6fe70
2 changed files with 22 additions and 1 deletions

View File

@ -188,7 +188,15 @@ static const char *const pmic_models[] = {
[80] = "PM7550",
[82] = "PMC8380",
[83] = "SMB2360",
[86] = "PM8750B",
[87] = "PMD8028",
[91] = "PMIV0108",
[92] = "PMK8850",
[93] = "PMH0101",
[95] = "SMB2370",
[96] = "PMH0104",
[97] = "PMH0110",
[98] = "PMCX0102",
};
struct socinfo_params {

View File

@ -50,9 +50,22 @@
#define PMR735B_SUBTYPE 0x34
#define PM6350_SUBTYPE 0x36
#define PM4125_SUBTYPE 0x37
#define PM8010_SUBTYPE 0x41
#define PM8550VS_SUBTYPE 0x45
#define PM8550VE_SUBTYPE 0x46
#define PMR735D_SUBTYPE 0x48
#define PM8550_SUBTYPE 0x49
#define PMK8550_SUBTYPE 0x4a
#define PMM8650AU_SUBTYPE 0x4e
#define PMM8650AU_PSAIL_SUBTYPE 0x4f
#define PM8750B_SUBTYPE 0x56
#define PMD8028_SUBTYPE 0x57
#define PMK8850_SUBTYPE 0x5c
#define PMH0101_SUBTYPE 0x5d
#define SMB2370_SUBTYPE 0x5f
#define PMH0104_SUBTYPE 0x60
#define PMH0110_SUBTYPE 0x61
#define PMCX0102_SUBTYPE 0x62
#define PMI8998_FAB_ID_SMIC 0x11
#define PMI8998_FAB_ID_GF 0x30