@@ -445,6 +445,44 @@ static const struct regulator_desc pm8994_lnldo = {
445
445
.ops = & rpm_smps_ldo_ops_fixed ,
446
446
};
447
447
448
+ static const struct regulator_desc pmi8994_ftsmps = {
449
+ .linear_ranges = (struct regulator_linear_range []) {
450
+ REGULATOR_LINEAR_RANGE (350000 , 0 , 199 , 5000 ),
451
+ REGULATOR_LINEAR_RANGE (700000 , 200 , 349 , 10000 ),
452
+ },
453
+ .n_linear_ranges = 2 ,
454
+ .n_voltages = 350 ,
455
+ .ops = & rpm_smps_ldo_ops ,
456
+ };
457
+
458
+ static const struct regulator_desc pmi8994_hfsmps = {
459
+ .linear_ranges = (struct regulator_linear_range []) {
460
+ REGULATOR_LINEAR_RANGE (350000 , 0 , 80 , 12500 ),
461
+ REGULATOR_LINEAR_RANGE (700000 , 81 , 141 , 25000 ),
462
+ },
463
+ .n_linear_ranges = 2 ,
464
+ .n_voltages = 142 ,
465
+ .ops = & rpm_smps_ldo_ops ,
466
+ };
467
+
468
+ static const struct regulator_desc pmi8994_bby = {
469
+ .linear_ranges = (struct regulator_linear_range []) {
470
+ REGULATOR_LINEAR_RANGE (3000000 , 0 , 44 , 50000 ),
471
+ },
472
+ .n_linear_ranges = 1 ,
473
+ .n_voltages = 45 ,
474
+ .ops = & rpm_bob_ops ,
475
+ };
476
+
477
+ static const struct regulator_desc pmi8994_boost = {
478
+ .linear_ranges = (struct regulator_linear_range []) {
479
+ REGULATOR_LINEAR_RANGE (4000000 , 0 , 30 , 50000 ),
480
+ },
481
+ .n_linear_ranges = 1 ,
482
+ .n_voltages = 31 ,
483
+ .ops = & rpm_smps_ldo_ops ,
484
+ };
485
+
448
486
static const struct regulator_desc pm8998_ftsmps = {
449
487
.linear_ranges = (struct regulator_linear_range []) {
450
488
REGULATOR_LINEAR_RANGE (320000 , 0 , 258 , 4000 ),
@@ -780,6 +818,14 @@ static const struct rpm_regulator_data rpm_pm8994_regulators[] = {
780
818
{}
781
819
};
782
820
821
+ static const struct rpm_regulator_data rpm_pmi8994_regulators [] = {
822
+ { "s1" , QCOM_SMD_RPM_SMPB , 1 , & pmi8994_ftsmps , "vdd_s1" },
823
+ { "s2" , QCOM_SMD_RPM_SMPB , 2 , & pmi8994_hfsmps , "vdd_s2" },
824
+ { "s2" , QCOM_SMD_RPM_SMPB , 3 , & pmi8994_hfsmps , "vdd_s3" },
825
+ { "boost-bypass" , QCOM_SMD_RPM_BBYB , 1 , & pmi8994_bby , "vdd_bst_byp" },
826
+ {}
827
+ };
828
+
783
829
static const struct rpm_regulator_data rpm_pm8998_regulators [] = {
784
830
{ "s1" , QCOM_SMD_RPM_SMPA , 1 , & pm8998_ftsmps , "vdd_s1" },
785
831
{ "s2" , QCOM_SMD_RPM_SMPA , 2 , & pm8998_ftsmps , "vdd_s2" },
@@ -862,6 +908,7 @@ static const struct of_device_id rpm_of_match[] = {
862
908
{ .compatible = "qcom,rpm-pm8994-regulators" , .data = & rpm_pm8994_regulators },
863
909
{ .compatible = "qcom,rpm-pm8998-regulators" , .data = & rpm_pm8998_regulators },
864
910
{ .compatible = "qcom,rpm-pma8084-regulators" , .data = & rpm_pma8084_regulators },
911
+ { .compatible = "qcom,rpm-pmi8994-regulators" , .data = & rpm_pmi8994_regulators },
865
912
{ .compatible = "qcom,rpm-pmi8998-regulators" , .data = & rpm_pmi8998_regulators },
866
913
{ .compatible = "qcom,rpm-pms405-regulators" , .data = & rpm_pms405_regulators },
867
914
{}
0 commit comments