2019-05-29 22:17:58 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2015-08-18 02:43:59 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015, Sony Mobile Communications AB.
|
|
|
|
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/of.h>
|
|
|
|
#include <linux/of_device.h>
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <linux/regulator/driver.h>
|
|
|
|
#include <linux/soc/qcom/smd-rpm.h>
|
|
|
|
|
|
|
|
struct qcom_rpm_reg {
|
|
|
|
struct device *dev;
|
|
|
|
|
|
|
|
struct qcom_smd_rpm *rpm;
|
|
|
|
|
|
|
|
u32 type;
|
|
|
|
u32 id;
|
|
|
|
|
|
|
|
struct regulator_desc desc;
|
|
|
|
|
|
|
|
int is_enabled;
|
|
|
|
int uV;
|
2019-01-23 03:01:47 +08:00
|
|
|
u32 load;
|
|
|
|
|
|
|
|
unsigned int enabled_updated:1;
|
|
|
|
unsigned int uv_updated:1;
|
|
|
|
unsigned int load_updated:1;
|
2015-08-18 02:43:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct rpm_regulator_req {
|
2015-09-03 06:46:51 +08:00
|
|
|
__le32 key;
|
|
|
|
__le32 nbytes;
|
|
|
|
__le32 value;
|
2015-08-18 02:43:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#define RPM_KEY_SWEN 0x6e657773 /* "swen" */
|
|
|
|
#define RPM_KEY_UV 0x00007675 /* "uv" */
|
|
|
|
#define RPM_KEY_MA 0x0000616d /* "ma" */
|
|
|
|
|
2019-01-23 03:01:47 +08:00
|
|
|
static int rpm_reg_write_active(struct qcom_rpm_reg *vreg)
|
2015-08-18 02:43:59 +08:00
|
|
|
{
|
2019-01-23 03:01:47 +08:00
|
|
|
struct rpm_regulator_req req[3];
|
|
|
|
int reqlen = 0;
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
if (vreg->enabled_updated) {
|
|
|
|
req[reqlen].key = cpu_to_le32(RPM_KEY_SWEN);
|
|
|
|
req[reqlen].nbytes = cpu_to_le32(sizeof(u32));
|
|
|
|
req[reqlen].value = cpu_to_le32(vreg->is_enabled);
|
|
|
|
reqlen++;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vreg->uv_updated && vreg->is_enabled) {
|
|
|
|
req[reqlen].key = cpu_to_le32(RPM_KEY_UV);
|
|
|
|
req[reqlen].nbytes = cpu_to_le32(sizeof(u32));
|
|
|
|
req[reqlen].value = cpu_to_le32(vreg->uV);
|
|
|
|
reqlen++;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vreg->load_updated && vreg->is_enabled) {
|
|
|
|
req[reqlen].key = cpu_to_le32(RPM_KEY_MA);
|
|
|
|
req[reqlen].nbytes = cpu_to_le32(sizeof(u32));
|
|
|
|
req[reqlen].value = cpu_to_le32(vreg->load / 1000);
|
|
|
|
reqlen++;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!reqlen)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
ret = qcom_rpm_smd_write(vreg->rpm, QCOM_SMD_RPM_ACTIVE_STATE,
|
|
|
|
vreg->type, vreg->id,
|
|
|
|
req, sizeof(req[0]) * reqlen);
|
|
|
|
if (!ret) {
|
|
|
|
vreg->enabled_updated = 0;
|
|
|
|
vreg->uv_updated = 0;
|
|
|
|
vreg->load_updated = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
2015-08-18 02:43:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static int rpm_reg_enable(struct regulator_dev *rdev)
|
|
|
|
{
|
|
|
|
struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
|
|
|
|
int ret;
|
|
|
|
|
2019-01-23 03:01:47 +08:00
|
|
|
vreg->is_enabled = 1;
|
|
|
|
vreg->enabled_updated = 1;
|
2015-08-18 02:43:59 +08:00
|
|
|
|
2019-01-23 03:01:47 +08:00
|
|
|
ret = rpm_reg_write_active(vreg);
|
|
|
|
if (ret)
|
|
|
|
vreg->is_enabled = 0;
|
2015-08-18 02:43:59 +08:00
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int rpm_reg_is_enabled(struct regulator_dev *rdev)
|
|
|
|
{
|
|
|
|
struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
|
|
|
|
|
|
|
|
return vreg->is_enabled;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int rpm_reg_disable(struct regulator_dev *rdev)
|
|
|
|
{
|
|
|
|
struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
|
|
|
|
int ret;
|
|
|
|
|
2019-01-23 03:01:47 +08:00
|
|
|
vreg->is_enabled = 0;
|
|
|
|
vreg->enabled_updated = 1;
|
2015-08-18 02:43:59 +08:00
|
|
|
|
2019-01-23 03:01:47 +08:00
|
|
|
ret = rpm_reg_write_active(vreg);
|
|
|
|
if (ret)
|
|
|
|
vreg->is_enabled = 1;
|
2015-08-18 02:43:59 +08:00
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int rpm_reg_get_voltage(struct regulator_dev *rdev)
|
|
|
|
{
|
|
|
|
struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
|
|
|
|
|
|
|
|
return vreg->uV;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int rpm_reg_set_voltage(struct regulator_dev *rdev,
|
|
|
|
int min_uV,
|
|
|
|
int max_uV,
|
|
|
|
unsigned *selector)
|
|
|
|
{
|
|
|
|
struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
|
2019-01-23 03:01:47 +08:00
|
|
|
int ret;
|
|
|
|
int old_uV = vreg->uV;
|
2015-08-18 02:43:59 +08:00
|
|
|
|
2019-01-23 03:01:47 +08:00
|
|
|
vreg->uV = min_uV;
|
|
|
|
vreg->uv_updated = 1;
|
2015-08-18 02:43:59 +08:00
|
|
|
|
2019-01-23 03:01:47 +08:00
|
|
|
ret = rpm_reg_write_active(vreg);
|
|
|
|
if (ret)
|
|
|
|
vreg->uV = old_uV;
|
2015-08-18 02:43:59 +08:00
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int rpm_reg_set_load(struct regulator_dev *rdev, int load_uA)
|
|
|
|
{
|
|
|
|
struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
|
2019-01-23 03:01:47 +08:00
|
|
|
u32 old_load = vreg->load;
|
|
|
|
int ret;
|
2015-08-18 02:43:59 +08:00
|
|
|
|
2019-01-23 03:01:47 +08:00
|
|
|
vreg->load = load_uA;
|
|
|
|
vreg->load_updated = 1;
|
|
|
|
ret = rpm_reg_write_active(vreg);
|
|
|
|
if (ret)
|
|
|
|
vreg->load = old_load;
|
2015-08-18 02:43:59 +08:00
|
|
|
|
2019-01-23 03:01:47 +08:00
|
|
|
return ret;
|
2015-08-18 02:43:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static const struct regulator_ops rpm_smps_ldo_ops = {
|
|
|
|
.enable = rpm_reg_enable,
|
|
|
|
.disable = rpm_reg_disable,
|
|
|
|
.is_enabled = rpm_reg_is_enabled,
|
2016-06-02 18:23:15 +08:00
|
|
|
.list_voltage = regulator_list_voltage_linear_range,
|
2015-08-18 02:43:59 +08:00
|
|
|
|
|
|
|
.get_voltage = rpm_reg_get_voltage,
|
|
|
|
.set_voltage = rpm_reg_set_voltage,
|
|
|
|
|
|
|
|
.set_load = rpm_reg_set_load,
|
|
|
|
};
|
|
|
|
|
2016-06-03 19:23:09 +08:00
|
|
|
static const struct regulator_ops rpm_smps_ldo_ops_fixed = {
|
|
|
|
.enable = rpm_reg_enable,
|
|
|
|
.disable = rpm_reg_disable,
|
|
|
|
.is_enabled = rpm_reg_is_enabled,
|
|
|
|
|
|
|
|
.get_voltage = rpm_reg_get_voltage,
|
|
|
|
.set_voltage = rpm_reg_set_voltage,
|
|
|
|
|
|
|
|
.set_load = rpm_reg_set_load,
|
|
|
|
};
|
|
|
|
|
2015-08-18 02:43:59 +08:00
|
|
|
static const struct regulator_ops rpm_switch_ops = {
|
|
|
|
.enable = rpm_reg_enable,
|
|
|
|
.disable = rpm_reg_disable,
|
|
|
|
.is_enabled = rpm_reg_is_enabled,
|
|
|
|
};
|
|
|
|
|
2018-03-27 23:53:01 +08:00
|
|
|
static const struct regulator_ops rpm_bob_ops = {
|
|
|
|
.enable = rpm_reg_enable,
|
|
|
|
.disable = rpm_reg_disable,
|
|
|
|
.is_enabled = rpm_reg_is_enabled,
|
|
|
|
|
|
|
|
.get_voltage = rpm_reg_get_voltage,
|
|
|
|
.set_voltage = rpm_reg_set_voltage,
|
|
|
|
};
|
|
|
|
|
2020-06-23 13:17:50 +08:00
|
|
|
static const struct regulator_ops rpm_mp5496_ops = {
|
|
|
|
.enable = rpm_reg_enable,
|
|
|
|
.disable = rpm_reg_disable,
|
|
|
|
.is_enabled = rpm_reg_is_enabled,
|
|
|
|
.list_voltage = regulator_list_voltage_linear_range,
|
|
|
|
|
|
|
|
.set_voltage = rpm_reg_set_voltage,
|
|
|
|
};
|
|
|
|
|
2015-12-15 13:30:45 +08:00
|
|
|
static const struct regulator_desc pma8084_hfsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-12-15 13:30:45 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(375000, 0, 95, 12500),
|
|
|
|
REGULATOR_LINEAR_RANGE(1550000, 96, 158, 25000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 159,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pma8084_ftsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-12-15 13:30:45 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(350000, 0, 184, 5000),
|
2016-07-12 05:50:08 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1280000, 185, 261, 10000),
|
2015-12-15 13:30:45 +08:00
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
2016-07-12 05:50:08 +08:00
|
|
|
.n_voltages = 262,
|
2015-12-15 13:30:45 +08:00
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pma8084_pldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2016-07-12 05:50:08 +08:00
|
|
|
REGULATOR_LINEAR_RANGE( 750000, 0, 63, 12500),
|
|
|
|
REGULATOR_LINEAR_RANGE(1550000, 64, 126, 25000),
|
|
|
|
REGULATOR_LINEAR_RANGE(3100000, 127, 163, 50000),
|
2015-12-15 13:30:45 +08:00
|
|
|
},
|
2016-07-12 05:50:08 +08:00
|
|
|
.n_linear_ranges = 3,
|
|
|
|
.n_voltages = 164,
|
2015-12-15 13:30:45 +08:00
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pma8084_nldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-12-15 13:30:45 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(750000, 0, 63, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 64,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pma8084_switch = {
|
|
|
|
.ops = &rpm_switch_ops,
|
|
|
|
};
|
|
|
|
|
2015-08-18 02:43:59 +08:00
|
|
|
static const struct regulator_desc pm8x41_hfsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-08-18 02:43:59 +08:00
|
|
|
REGULATOR_LINEAR_RANGE( 375000, 0, 95, 12500),
|
2016-07-12 05:50:09 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1575000, 96, 158, 25000),
|
2015-08-18 02:43:59 +08:00
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 159,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8841_ftsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-08-18 02:43:59 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(350000, 0, 184, 5000),
|
2016-07-12 05:50:07 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1280000, 185, 261, 10000),
|
2015-08-18 02:43:59 +08:00
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
2016-07-12 05:50:07 +08:00
|
|
|
.n_voltages = 262,
|
2015-08-18 02:43:59 +08:00
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8941_boost = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2016-07-12 05:50:07 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(4000000, 0, 30, 50000),
|
2015-08-18 02:43:59 +08:00
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
2016-07-12 05:50:07 +08:00
|
|
|
.n_voltages = 31,
|
2015-08-18 02:43:59 +08:00
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8941_pldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2016-07-12 05:50:07 +08:00
|
|
|
REGULATOR_LINEAR_RANGE( 750000, 0, 63, 12500),
|
|
|
|
REGULATOR_LINEAR_RANGE(1550000, 64, 126, 25000),
|
|
|
|
REGULATOR_LINEAR_RANGE(3100000, 127, 163, 50000),
|
2015-08-18 02:43:59 +08:00
|
|
|
},
|
2016-07-12 05:50:07 +08:00
|
|
|
.n_linear_ranges = 3,
|
|
|
|
.n_voltages = 164,
|
2015-08-18 02:43:59 +08:00
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8941_nldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-08-18 02:43:59 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(750000, 0, 63, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 64,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8941_lnldo = {
|
|
|
|
.fixed_uV = 1740000,
|
2015-08-19 11:17:53 +08:00
|
|
|
.n_voltages = 1,
|
2016-06-03 19:23:09 +08:00
|
|
|
.ops = &rpm_smps_ldo_ops_fixed,
|
2015-08-18 02:43:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8941_switch = {
|
|
|
|
.ops = &rpm_switch_ops,
|
|
|
|
};
|
|
|
|
|
2015-12-15 13:30:44 +08:00
|
|
|
static const struct regulator_desc pm8916_pldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-12-15 13:30:44 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(750000, 0, 208, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 209,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8916_nldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-12-15 13:30:44 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(375000, 0, 93, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 94,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8916_buck_lvo_smps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-12-15 13:30:44 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(375000, 0, 95, 12500),
|
|
|
|
REGULATOR_LINEAR_RANGE(750000, 96, 127, 25000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 128,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8916_buck_hvo_smps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2015-12-15 13:30:44 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1550000, 0, 31, 25000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 32,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
2019-09-21 17:50:41 +08:00
|
|
|
static const struct regulator_desc pm8950_hfsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2019-09-21 17:50:41 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(375000, 0, 95, 12500),
|
|
|
|
REGULATOR_LINEAR_RANGE(1550000, 96, 127, 25000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 128,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8950_ftsmps2p5 = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2019-09-21 17:50:41 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(80000, 0, 255, 5000),
|
|
|
|
REGULATOR_LINEAR_RANGE(160000, 256, 460, 10000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 461,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8950_ult_nldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2019-09-21 17:50:41 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(375000, 0, 202, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 203,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8950_ult_pldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2019-09-21 17:50:41 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1750000, 0, 127, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 128,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8950_pldo_lv = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2019-09-21 17:50:41 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1500000, 0, 16, 25000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 17,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8950_pldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2019-09-21 17:50:41 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(975000, 0, 164, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 165,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
2020-10-04 16:34:12 +08:00
|
|
|
static const struct regulator_desc pm8953_lnldo = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(1380000, 8, 15, 120000),
|
|
|
|
REGULATOR_LINEAR_RANGE(690000, 0, 7, 60000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 16,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8953_ult_nldo = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(375000, 0, 93, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 94,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
2019-09-21 17:50:41 +08:00
|
|
|
|
2017-01-18 18:46:37 +08:00
|
|
|
static const struct regulator_desc pm8994_hfsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2017-01-18 18:46:37 +08:00
|
|
|
REGULATOR_LINEAR_RANGE( 375000, 0, 95, 12500),
|
|
|
|
REGULATOR_LINEAR_RANGE(1550000, 96, 158, 25000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 159,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8994_ftsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2017-01-18 18:46:37 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(350000, 0, 199, 5000),
|
|
|
|
REGULATOR_LINEAR_RANGE(700000, 200, 349, 10000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 350,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8994_nldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2017-01-18 18:46:37 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(750000, 0, 63, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 64,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8994_pldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2017-01-18 18:46:37 +08:00
|
|
|
REGULATOR_LINEAR_RANGE( 750000, 0, 63, 12500),
|
|
|
|
REGULATOR_LINEAR_RANGE(1550000, 64, 126, 25000),
|
|
|
|
REGULATOR_LINEAR_RANGE(3100000, 127, 163, 50000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 3,
|
|
|
|
.n_voltages = 164,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8994_switch = {
|
|
|
|
.ops = &rpm_switch_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8994_lnldo = {
|
|
|
|
.fixed_uV = 1740000,
|
|
|
|
.n_voltages = 1,
|
|
|
|
.ops = &rpm_smps_ldo_ops_fixed,
|
|
|
|
};
|
|
|
|
|
2020-03-24 12:14:24 +08:00
|
|
|
static const struct regulator_desc pmi8994_ftsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2020-03-24 12:14:24 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(350000, 0, 199, 5000),
|
|
|
|
REGULATOR_LINEAR_RANGE(700000, 200, 349, 10000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 350,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pmi8994_hfsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2020-03-24 12:14:24 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(350000, 0, 80, 12500),
|
|
|
|
REGULATOR_LINEAR_RANGE(700000, 81, 141, 25000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 2,
|
|
|
|
.n_voltages = 142,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pmi8994_bby = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2020-03-24 12:14:24 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(3000000, 0, 44, 50000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 45,
|
|
|
|
.ops = &rpm_bob_ops,
|
|
|
|
};
|
|
|
|
|
2018-03-27 23:53:01 +08:00
|
|
|
static const struct regulator_desc pm8998_ftsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-03-27 23:53:01 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(320000, 0, 258, 4000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 259,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8998_hfsmps = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-03-27 23:53:01 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(320000, 0, 215, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 216,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8998_nldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-03-27 23:53:01 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(312000, 0, 127, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 128,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8998_pldo = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-03-27 23:53:01 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1664000, 0, 255, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 256,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8998_pldo_lv = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-03-27 23:53:01 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1256000, 0, 127, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 128,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm8998_switch = {
|
|
|
|
.ops = &rpm_switch_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pmi8998_bob = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-03-27 23:53:01 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1824000, 0, 83, 32000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 84,
|
|
|
|
.ops = &rpm_bob_ops,
|
|
|
|
};
|
|
|
|
|
2020-09-26 20:55:47 +08:00
|
|
|
static const struct regulator_desc pm660_ftsmps = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(355000, 0, 199, 5000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 200,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm660_hfsmps = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(320000, 0, 216, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 217,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm660_ht_nldo = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(312000, 0, 124, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 125,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm660_ht_lvpldo = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(1504000, 0, 62, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 63,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm660_nldo660 = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(320000, 0, 123, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 124,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm660_pldo660 = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(1504000, 0, 255, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 256,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pm660l_bob = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(1800000, 0, 84, 32000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 85,
|
|
|
|
.ops = &rpm_bob_ops,
|
|
|
|
};
|
|
|
|
|
2018-09-20 09:40:20 +08:00
|
|
|
static const struct regulator_desc pms405_hfsmps3 = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-09-20 09:40:20 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(320000, 0, 215, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 216,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pms405_nldo300 = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-09-20 09:40:20 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(312000, 0, 127, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 128,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pms405_nldo1200 = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-09-20 09:40:20 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(312000, 0, 127, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 128,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pms405_pldo50 = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-09-20 09:40:20 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1664000, 0, 128, 16000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 129,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pms405_pldo150 = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-09-20 09:40:20 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1664000, 0, 128, 16000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 129,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc pms405_pldo600 = {
|
2020-05-08 23:43:36 +08:00
|
|
|
.linear_ranges = (struct linear_range[]) {
|
2018-09-20 09:40:20 +08:00
|
|
|
REGULATOR_LINEAR_RANGE(1256000, 0, 98, 8000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 99,
|
|
|
|
.ops = &rpm_smps_ldo_ops,
|
|
|
|
};
|
|
|
|
|
2020-06-23 13:17:50 +08:00
|
|
|
static const struct regulator_desc mp5496_smpa2 = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(725000, 0, 27, 12500),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 28,
|
|
|
|
.ops = &rpm_mp5496_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct regulator_desc mp5496_ldoa2 = {
|
|
|
|
.linear_ranges = (struct linear_range[]) {
|
|
|
|
REGULATOR_LINEAR_RANGE(1800000, 0, 60, 25000),
|
|
|
|
},
|
|
|
|
.n_linear_ranges = 1,
|
|
|
|
.n_voltages = 61,
|
|
|
|
.ops = &rpm_mp5496_ops,
|
|
|
|
};
|
|
|
|
|
2015-08-18 02:43:59 +08:00
|
|
|
struct rpm_regulator_data {
|
|
|
|
const char *name;
|
|
|
|
u32 type;
|
|
|
|
u32 id;
|
|
|
|
const struct regulator_desc *desc;
|
|
|
|
const char *supply;
|
|
|
|
};
|
|
|
|
|
2020-06-23 13:17:50 +08:00
|
|
|
static const struct rpm_regulator_data rpm_mp5496_regulators[] = {
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smpa2, "s2" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &mp5496_ldoa2, "l2" },
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2015-08-18 02:43:59 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pm8841_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPB, 1, &pm8x41_hfsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPB, 2, &pm8841_ftsmps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPB, 3, &pm8x41_hfsmps, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_SMPB, 4, &pm8841_ftsmps, "vdd_s4" },
|
|
|
|
{ "s5", QCOM_SMD_RPM_SMPB, 5, &pm8841_ftsmps, "vdd_s5" },
|
|
|
|
{ "s6", QCOM_SMD_RPM_SMPB, 6, &pm8841_ftsmps, "vdd_s6" },
|
|
|
|
{ "s7", QCOM_SMD_RPM_SMPB, 7, &pm8841_ftsmps, "vdd_s7" },
|
|
|
|
{ "s8", QCOM_SMD_RPM_SMPB, 8, &pm8841_ftsmps, "vdd_s8" },
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2015-12-15 13:30:44 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pm8916_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPA, 1, &pm8916_buck_lvo_smps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &pm8916_buck_lvo_smps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPA, 3, &pm8916_buck_lvo_smps, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_SMPA, 4, &pm8916_buck_hvo_smps, "vdd_s4" },
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOA, 1, &pm8916_nldo, "vdd_l1_l2_l3" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &pm8916_nldo, "vdd_l1_l2_l3" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOA, 3, &pm8916_nldo, "vdd_l1_l2_l3" },
|
|
|
|
{ "l4", QCOM_SMD_RPM_LDOA, 4, &pm8916_pldo, "vdd_l4_l5_l6" },
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOA, 5, &pm8916_pldo, "vdd_l4_l5_l6" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOA, 6, &pm8916_pldo, "vdd_l4_l5_l6" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOA, 7, &pm8916_pldo, "vdd_l7" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOA, 8, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_LDOA, 9, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_LDOA, 10, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18"},
|
|
|
|
{ "l11", QCOM_SMD_RPM_LDOA, 11, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18"},
|
|
|
|
{ "l12", QCOM_SMD_RPM_LDOA, 12, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18"},
|
|
|
|
{ "l13", QCOM_SMD_RPM_LDOA, 13, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18"},
|
|
|
|
{ "l14", QCOM_SMD_RPM_LDOA, 14, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18"},
|
|
|
|
{ "l15", QCOM_SMD_RPM_LDOA, 15, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18"},
|
|
|
|
{ "l16", QCOM_SMD_RPM_LDOA, 16, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18"},
|
|
|
|
{ "l17", QCOM_SMD_RPM_LDOA, 17, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18"},
|
|
|
|
{ "l18", QCOM_SMD_RPM_LDOA, 18, &pm8916_pldo, "vdd_l8_l9_l10_l11_l12_l13_l14_l15_l16_l17_l18"},
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2015-08-18 02:43:59 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pm8941_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPA, 1, &pm8x41_hfsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &pm8x41_hfsmps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPA, 3, &pm8x41_hfsmps, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_BOOST, 1, &pm8941_boost },
|
|
|
|
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOA, 1, &pm8941_nldo, "vdd_l1_l3" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &pm8941_nldo, "vdd_l2_lvs1_2_3" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOA, 3, &pm8941_nldo, "vdd_l1_l3" },
|
|
|
|
{ "l4", QCOM_SMD_RPM_LDOA, 4, &pm8941_nldo, "vdd_l4_l11" },
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOA, 5, &pm8941_lnldo, "vdd_l5_l7" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOA, 6, &pm8941_pldo, "vdd_l6_l12_l14_l15" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOA, 7, &pm8941_lnldo, "vdd_l5_l7" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOA, 8, &pm8941_pldo, "vdd_l8_l16_l18_l19" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_LDOA, 9, &pm8941_pldo, "vdd_l9_l10_l17_l22" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_LDOA, 10, &pm8941_pldo, "vdd_l9_l10_l17_l22" },
|
|
|
|
{ "l11", QCOM_SMD_RPM_LDOA, 11, &pm8941_nldo, "vdd_l4_l11" },
|
|
|
|
{ "l12", QCOM_SMD_RPM_LDOA, 12, &pm8941_pldo, "vdd_l6_l12_l14_l15" },
|
|
|
|
{ "l13", QCOM_SMD_RPM_LDOA, 13, &pm8941_pldo, "vdd_l13_l20_l23_l24" },
|
|
|
|
{ "l14", QCOM_SMD_RPM_LDOA, 14, &pm8941_pldo, "vdd_l6_l12_l14_l15" },
|
|
|
|
{ "l15", QCOM_SMD_RPM_LDOA, 15, &pm8941_pldo, "vdd_l6_l12_l14_l15" },
|
|
|
|
{ "l16", QCOM_SMD_RPM_LDOA, 16, &pm8941_pldo, "vdd_l8_l16_l18_l19" },
|
|
|
|
{ "l17", QCOM_SMD_RPM_LDOA, 17, &pm8941_pldo, "vdd_l9_l10_l17_l22" },
|
|
|
|
{ "l18", QCOM_SMD_RPM_LDOA, 18, &pm8941_pldo, "vdd_l8_l16_l18_l19" },
|
|
|
|
{ "l19", QCOM_SMD_RPM_LDOA, 19, &pm8941_pldo, "vdd_l8_l16_l18_l19" },
|
|
|
|
{ "l20", QCOM_SMD_RPM_LDOA, 20, &pm8941_pldo, "vdd_l13_l20_l23_l24" },
|
|
|
|
{ "l21", QCOM_SMD_RPM_LDOA, 21, &pm8941_pldo, "vdd_l21" },
|
|
|
|
{ "l22", QCOM_SMD_RPM_LDOA, 22, &pm8941_pldo, "vdd_l9_l10_l17_l22" },
|
|
|
|
{ "l23", QCOM_SMD_RPM_LDOA, 23, &pm8941_pldo, "vdd_l13_l20_l23_l24" },
|
|
|
|
{ "l24", QCOM_SMD_RPM_LDOA, 24, &pm8941_pldo, "vdd_l13_l20_l23_l24" },
|
|
|
|
|
|
|
|
{ "lvs1", QCOM_SMD_RPM_VSA, 1, &pm8941_switch, "vdd_l2_lvs1_2_3" },
|
|
|
|
{ "lvs2", QCOM_SMD_RPM_VSA, 2, &pm8941_switch, "vdd_l2_lvs1_2_3" },
|
|
|
|
{ "lvs3", QCOM_SMD_RPM_VSA, 3, &pm8941_switch, "vdd_l2_lvs1_2_3" },
|
|
|
|
|
|
|
|
{ "5vs1", QCOM_SMD_RPM_VSA, 4, &pm8941_switch, "vin_5vs" },
|
|
|
|
{ "5vs2", QCOM_SMD_RPM_VSA, 5, &pm8941_switch, "vin_5vs" },
|
|
|
|
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2015-12-15 13:30:45 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pma8084_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPA, 1, &pma8084_ftsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &pma8084_ftsmps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPA, 3, &pma8084_hfsmps, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_SMPA, 4, &pma8084_hfsmps, "vdd_s4" },
|
|
|
|
{ "s5", QCOM_SMD_RPM_SMPA, 5, &pma8084_hfsmps, "vdd_s5" },
|
|
|
|
{ "s6", QCOM_SMD_RPM_SMPA, 6, &pma8084_ftsmps, "vdd_s6" },
|
|
|
|
{ "s7", QCOM_SMD_RPM_SMPA, 7, &pma8084_ftsmps, "vdd_s7" },
|
|
|
|
{ "s8", QCOM_SMD_RPM_SMPA, 8, &pma8084_ftsmps, "vdd_s8" },
|
|
|
|
{ "s9", QCOM_SMD_RPM_SMPA, 9, &pma8084_ftsmps, "vdd_s9" },
|
|
|
|
{ "s10", QCOM_SMD_RPM_SMPA, 10, &pma8084_ftsmps, "vdd_s10" },
|
|
|
|
{ "s11", QCOM_SMD_RPM_SMPA, 11, &pma8084_ftsmps, "vdd_s11" },
|
|
|
|
{ "s12", QCOM_SMD_RPM_SMPA, 12, &pma8084_ftsmps, "vdd_s12" },
|
|
|
|
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOA, 1, &pma8084_nldo, "vdd_l1_l11" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &pma8084_nldo, "vdd_l2_l3_l4_l27" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOA, 3, &pma8084_nldo, "vdd_l2_l3_l4_l27" },
|
|
|
|
{ "l4", QCOM_SMD_RPM_LDOA, 4, &pma8084_nldo, "vdd_l2_l3_l4_l27" },
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOA, 5, &pma8084_pldo, "vdd_l5_l7" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOA, 6, &pma8084_pldo, "vdd_l6_l12_l14_l15_l26" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOA, 7, &pma8084_pldo, "vdd_l5_l7" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOA, 8, &pma8084_pldo, "vdd_l8" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_LDOA, 9, &pma8084_pldo, "vdd_l9_l10_l13_l20_l23_l24" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_LDOA, 10, &pma8084_pldo, "vdd_l9_l10_l13_l20_l23_l24" },
|
|
|
|
{ "l11", QCOM_SMD_RPM_LDOA, 11, &pma8084_nldo, "vdd_l1_l11" },
|
|
|
|
{ "l12", QCOM_SMD_RPM_LDOA, 12, &pma8084_pldo, "vdd_l6_l12_l14_l15_l26" },
|
|
|
|
{ "l13", QCOM_SMD_RPM_LDOA, 13, &pma8084_pldo, "vdd_l9_l10_l13_l20_l23_l24" },
|
|
|
|
{ "l14", QCOM_SMD_RPM_LDOA, 14, &pma8084_pldo, "vdd_l6_l12_l14_l15_l26" },
|
|
|
|
{ "l15", QCOM_SMD_RPM_LDOA, 15, &pma8084_pldo, "vdd_l6_l12_l14_l15_l26" },
|
|
|
|
{ "l16", QCOM_SMD_RPM_LDOA, 16, &pma8084_pldo, "vdd_l16_l25" },
|
|
|
|
{ "l17", QCOM_SMD_RPM_LDOA, 17, &pma8084_pldo, "vdd_l17" },
|
|
|
|
{ "l18", QCOM_SMD_RPM_LDOA, 18, &pma8084_pldo, "vdd_l18" },
|
|
|
|
{ "l19", QCOM_SMD_RPM_LDOA, 19, &pma8084_pldo, "vdd_l19" },
|
|
|
|
{ "l20", QCOM_SMD_RPM_LDOA, 20, &pma8084_pldo, "vdd_l9_l10_l13_l20_l23_l24" },
|
|
|
|
{ "l21", QCOM_SMD_RPM_LDOA, 21, &pma8084_pldo, "vdd_l21" },
|
|
|
|
{ "l22", QCOM_SMD_RPM_LDOA, 22, &pma8084_pldo, "vdd_l22" },
|
|
|
|
{ "l23", QCOM_SMD_RPM_LDOA, 23, &pma8084_pldo, "vdd_l9_l10_l13_l20_l23_l24" },
|
|
|
|
{ "l24", QCOM_SMD_RPM_LDOA, 24, &pma8084_pldo, "vdd_l9_l10_l13_l20_l23_l24" },
|
|
|
|
{ "l25", QCOM_SMD_RPM_LDOA, 25, &pma8084_pldo, "vdd_l16_l25" },
|
|
|
|
{ "l26", QCOM_SMD_RPM_LDOA, 26, &pma8084_pldo, "vdd_l6_l12_l14_l15_l26" },
|
|
|
|
{ "l27", QCOM_SMD_RPM_LDOA, 27, &pma8084_nldo, "vdd_l2_l3_l4_l27" },
|
|
|
|
|
|
|
|
{ "lvs1", QCOM_SMD_RPM_VSA, 1, &pma8084_switch },
|
|
|
|
{ "lvs2", QCOM_SMD_RPM_VSA, 2, &pma8084_switch },
|
|
|
|
{ "lvs3", QCOM_SMD_RPM_VSA, 3, &pma8084_switch },
|
|
|
|
{ "lvs4", QCOM_SMD_RPM_VSA, 4, &pma8084_switch },
|
|
|
|
{ "5vs1", QCOM_SMD_RPM_VSA, 5, &pma8084_switch },
|
|
|
|
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2019-09-21 17:50:41 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pm8950_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPA, 1, &pm8950_hfsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &pm8950_hfsmps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPA, 3, &pm8950_hfsmps, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_SMPA, 4, &pm8950_hfsmps, "vdd_s4" },
|
|
|
|
{ "s5", QCOM_SMD_RPM_SMPA, 5, &pm8950_ftsmps2p5, "vdd_s5" },
|
|
|
|
{ "s6", QCOM_SMD_RPM_SMPA, 6, &pm8950_hfsmps, "vdd_s6" },
|
|
|
|
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOA, 1, &pm8950_ult_nldo, "vdd_l1_l19" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &pm8950_ult_nldo, "vdd_l2_l23" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOA, 3, &pm8950_ult_nldo, "vdd_l3" },
|
|
|
|
{ "l4", QCOM_SMD_RPM_LDOA, 4, &pm8950_ult_pldo, "vdd_l4_l5_l6_l7_l16" },
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOA, 5, &pm8950_pldo_lv, "vdd_l4_l5_l6_l7_l16" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOA, 6, &pm8950_pldo_lv, "vdd_l4_l5_l6_l7_l16" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOA, 7, &pm8950_pldo_lv, "vdd_l4_l5_l6_l7_l16" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOA, 8, &pm8950_ult_pldo, "vdd_l8_l11_l12_l17_l22" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_LDOA, 9, &pm8950_ult_pldo, "vdd_l9_l10_l13_l14_l15_l18" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_LDOA, 10, &pm8950_ult_nldo, "vdd_l9_l10_l13_l14_l15_l18"},
|
|
|
|
{ "l11", QCOM_SMD_RPM_LDOA, 11, &pm8950_ult_pldo, "vdd_l8_l11_l12_l17_l22"},
|
|
|
|
{ "l12", QCOM_SMD_RPM_LDOA, 12, &pm8950_ult_pldo, "vdd_l8_l11_l12_l17_l22"},
|
|
|
|
{ "l13", QCOM_SMD_RPM_LDOA, 13, &pm8950_ult_pldo, "vdd_l9_l10_l13_l14_l15_l18"},
|
|
|
|
{ "l14", QCOM_SMD_RPM_LDOA, 14, &pm8950_ult_pldo, "vdd_l9_l10_l13_l14_l15_l18"},
|
|
|
|
{ "l15", QCOM_SMD_RPM_LDOA, 15, &pm8950_ult_pldo, "vdd_l9_l10_l13_l14_l15_l18"},
|
|
|
|
{ "l16", QCOM_SMD_RPM_LDOA, 16, &pm8950_ult_pldo, "vdd_l4_l5_l6_l7_l16"},
|
|
|
|
{ "l17", QCOM_SMD_RPM_LDOA, 17, &pm8950_ult_pldo, "vdd_l8_l11_l12_l17_l22"},
|
|
|
|
{ "l18", QCOM_SMD_RPM_LDOA, 18, &pm8950_ult_pldo, "vdd_l9_l10_l13_l14_l15_l18"},
|
|
|
|
{ "l19", QCOM_SMD_RPM_LDOA, 18, &pm8950_pldo, "vdd_l1_l19"},
|
|
|
|
{ "l20", QCOM_SMD_RPM_LDOA, 18, &pm8950_pldo, "vdd_l20"},
|
|
|
|
{ "l21", QCOM_SMD_RPM_LDOA, 18, &pm8950_pldo, "vdd_l21"},
|
|
|
|
{ "l22", QCOM_SMD_RPM_LDOA, 18, &pm8950_pldo, "vdd_l8_l11_l12_l17_l22"},
|
|
|
|
{ "l23", QCOM_SMD_RPM_LDOA, 18, &pm8950_pldo, "vdd_l2_l23"},
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2020-10-04 16:34:12 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pm8953_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPA, 1, &pm8998_hfsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &pm8998_hfsmps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPA, 3, &pm8998_hfsmps, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_SMPA, 4, &pm8998_hfsmps, "vdd_s4" },
|
|
|
|
{ "s5", QCOM_SMD_RPM_SMPA, 5, &pm8950_ftsmps2p5, "vdd_s5" },
|
|
|
|
{ "s6", QCOM_SMD_RPM_SMPA, 6, &pm8950_ftsmps2p5, "vdd_s6" },
|
|
|
|
{ "s7", QCOM_SMD_RPM_SMPA, 7, &pm8998_hfsmps, "vdd_s7" },
|
|
|
|
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOA, 1, &pm8953_ult_nldo, "vdd_l1" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &pm8953_ult_nldo, "vdd_l2_l3" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOA, 3, &pm8953_ult_nldo, "vdd_l2_l3" },
|
|
|
|
{ "l4", QCOM_SMD_RPM_LDOA, 4, &pm8950_ult_pldo, "vdd_l4_l5_l6_l7_l16_l19" },
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOA, 5, &pm8950_ult_pldo, "vdd_l4_l5_l6_l7_l16_l19" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOA, 6, &pm8950_ult_pldo, "vdd_l4_l5_l6_l7_l16_l19" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOA, 7, &pm8950_ult_pldo, "vdd_l4_l5_l6_l7_l16_l19" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOA, 8, &pm8950_ult_pldo, "vdd_l8_l11_l12_l13_l14_l15" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_LDOA, 9, &pm8950_ult_pldo, "vdd_l9_l10_l17_l18_l22" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_LDOA, 10, &pm8950_ult_pldo, "vdd_l9_l10_l17_l18_l22" },
|
|
|
|
{ "l11", QCOM_SMD_RPM_LDOA, 11, &pm8950_ult_pldo, "vdd_l8_l11_l12_l13_l14_l15" },
|
|
|
|
{ "l12", QCOM_SMD_RPM_LDOA, 12, &pm8950_ult_pldo, "vdd_l8_l11_l12_l13_l14_l15" },
|
|
|
|
{ "l13", QCOM_SMD_RPM_LDOA, 13, &pm8950_ult_pldo, "vdd_l8_l11_l12_l13_l14_l15" },
|
|
|
|
{ "l14", QCOM_SMD_RPM_LDOA, 14, &pm8950_ult_pldo, "vdd_l8_l11_l12_l13_l14_l15" },
|
|
|
|
{ "l15", QCOM_SMD_RPM_LDOA, 15, &pm8950_ult_pldo, "vdd_l8_l11_l12_l13_l14_l15" },
|
|
|
|
{ "l16", QCOM_SMD_RPM_LDOA, 16, &pm8950_ult_pldo, "vdd_l4_l5_l6_l7_l16_l19" },
|
|
|
|
{ "l17", QCOM_SMD_RPM_LDOA, 17, &pm8950_ult_pldo, "vdd_l9_l10_l17_l18_l22" },
|
|
|
|
{ "l18", QCOM_SMD_RPM_LDOA, 18, &pm8950_ult_pldo, "vdd_l9_l10_l17_l18_l22" },
|
|
|
|
{ "l19", QCOM_SMD_RPM_LDOA, 19, &pm8953_ult_nldo, "vdd_l4_l5_l6_l7_l16_l19" },
|
|
|
|
{ "l20", QCOM_SMD_RPM_LDOA, 20, &pm8953_lnldo, "vdd_l20" },
|
|
|
|
{ "l21", QCOM_SMD_RPM_LDOA, 21, &pm8953_lnldo, "vdd_l21" },
|
|
|
|
{ "l22", QCOM_SMD_RPM_LDOA, 22, &pm8950_ult_pldo, "vdd_l9_l10_l17_l18_l22" },
|
|
|
|
{ "l23", QCOM_SMD_RPM_LDOA, 23, &pm8953_ult_nldo, "vdd_l23" },
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2017-01-18 18:46:37 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pm8994_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPA, 1, &pm8994_ftsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &pm8994_ftsmps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPA, 3, &pm8994_hfsmps, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_SMPA, 4, &pm8994_hfsmps, "vdd_s4" },
|
|
|
|
{ "s5", QCOM_SMD_RPM_SMPA, 5, &pm8994_hfsmps, "vdd_s5" },
|
|
|
|
{ "s6", QCOM_SMD_RPM_SMPA, 6, &pm8994_ftsmps, "vdd_s6" },
|
|
|
|
{ "s7", QCOM_SMD_RPM_SMPA, 7, &pm8994_hfsmps, "vdd_s7" },
|
|
|
|
{ "s8", QCOM_SMD_RPM_SMPA, 8, &pm8994_ftsmps, "vdd_s8" },
|
|
|
|
{ "s9", QCOM_SMD_RPM_SMPA, 9, &pm8994_ftsmps, "vdd_s9" },
|
|
|
|
{ "s10", QCOM_SMD_RPM_SMPA, 10, &pm8994_ftsmps, "vdd_s10" },
|
|
|
|
{ "s11", QCOM_SMD_RPM_SMPA, 11, &pm8994_ftsmps, "vdd_s11" },
|
|
|
|
{ "s12", QCOM_SMD_RPM_SMPA, 12, &pm8994_ftsmps, "vdd_s12" },
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOA, 1, &pm8994_nldo, "vdd_l1" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &pm8994_nldo, "vdd_l2_l26_l28" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOA, 3, &pm8994_nldo, "vdd_l3_l11" },
|
|
|
|
{ "l4", QCOM_SMD_RPM_LDOA, 4, &pm8994_nldo, "vdd_l4_l27_l31" },
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOA, 5, &pm8994_lnldo, "vdd_l5_l7" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOA, 6, &pm8994_pldo, "vdd_l6_l12_l32" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOA, 7, &pm8994_lnldo, "vdd_l5_l7" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOA, 8, &pm8994_pldo, "vdd_l8_l16_l30" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_LDOA, 9, &pm8994_pldo, "vdd_l9_l10_l18_l22" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_LDOA, 10, &pm8994_pldo, "vdd_l9_l10_l18_l22" },
|
|
|
|
{ "l11", QCOM_SMD_RPM_LDOA, 11, &pm8994_nldo, "vdd_l3_l11" },
|
|
|
|
{ "l12", QCOM_SMD_RPM_LDOA, 12, &pm8994_pldo, "vdd_l6_l12_l32" },
|
|
|
|
{ "l13", QCOM_SMD_RPM_LDOA, 13, &pm8994_pldo, "vdd_l13_l19_l23_l24" },
|
|
|
|
{ "l14", QCOM_SMD_RPM_LDOA, 14, &pm8994_pldo, "vdd_l14_l15" },
|
|
|
|
{ "l15", QCOM_SMD_RPM_LDOA, 15, &pm8994_pldo, "vdd_l14_l15" },
|
|
|
|
{ "l16", QCOM_SMD_RPM_LDOA, 16, &pm8994_pldo, "vdd_l8_l16_l30" },
|
|
|
|
{ "l17", QCOM_SMD_RPM_LDOA, 17, &pm8994_pldo, "vdd_l17_l29" },
|
|
|
|
{ "l18", QCOM_SMD_RPM_LDOA, 18, &pm8994_pldo, "vdd_l9_l10_l18_l22" },
|
|
|
|
{ "l19", QCOM_SMD_RPM_LDOA, 19, &pm8994_pldo, "vdd_l13_l19_l23_l24" },
|
|
|
|
{ "l20", QCOM_SMD_RPM_LDOA, 20, &pm8994_pldo, "vdd_l20_l21" },
|
|
|
|
{ "l21", QCOM_SMD_RPM_LDOA, 21, &pm8994_pldo, "vdd_l20_l21" },
|
|
|
|
{ "l22", QCOM_SMD_RPM_LDOA, 22, &pm8994_pldo, "vdd_l9_l10_l18_l22" },
|
|
|
|
{ "l23", QCOM_SMD_RPM_LDOA, 23, &pm8994_pldo, "vdd_l13_l19_l23_l24" },
|
|
|
|
{ "l24", QCOM_SMD_RPM_LDOA, 24, &pm8994_pldo, "vdd_l13_l19_l23_l24" },
|
|
|
|
{ "l25", QCOM_SMD_RPM_LDOA, 25, &pm8994_pldo, "vdd_l25" },
|
|
|
|
{ "l26", QCOM_SMD_RPM_LDOA, 26, &pm8994_nldo, "vdd_l2_l26_l28" },
|
|
|
|
{ "l27", QCOM_SMD_RPM_LDOA, 27, &pm8994_nldo, "vdd_l4_l27_l31" },
|
|
|
|
{ "l28", QCOM_SMD_RPM_LDOA, 28, &pm8994_nldo, "vdd_l2_l26_l28" },
|
|
|
|
{ "l29", QCOM_SMD_RPM_LDOA, 29, &pm8994_pldo, "vdd_l17_l29" },
|
|
|
|
{ "l30", QCOM_SMD_RPM_LDOA, 30, &pm8994_pldo, "vdd_l8_l16_l30" },
|
|
|
|
{ "l31", QCOM_SMD_RPM_LDOA, 31, &pm8994_nldo, "vdd_l4_l27_l31" },
|
|
|
|
{ "l32", QCOM_SMD_RPM_LDOA, 32, &pm8994_pldo, "vdd_l6_l12_l32" },
|
|
|
|
{ "lvs1", QCOM_SMD_RPM_VSA, 1, &pm8994_switch, "vdd_lvs1_2" },
|
|
|
|
{ "lvs2", QCOM_SMD_RPM_VSA, 2, &pm8994_switch, "vdd_lvs1_2" },
|
|
|
|
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2020-03-24 12:14:24 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pmi8994_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPB, 1, &pmi8994_ftsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPB, 2, &pmi8994_hfsmps, "vdd_s2" },
|
2020-06-20 22:46:34 +08:00
|
|
|
{ "s3", QCOM_SMD_RPM_SMPB, 3, &pmi8994_hfsmps, "vdd_s3" },
|
2020-03-24 12:14:24 +08:00
|
|
|
{ "boost-bypass", QCOM_SMD_RPM_BBYB, 1, &pmi8994_bby, "vdd_bst_byp" },
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2018-03-27 23:53:01 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pm8998_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPA, 1, &pm8998_ftsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &pm8998_ftsmps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPA, 3, &pm8998_hfsmps, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_SMPA, 4, &pm8998_hfsmps, "vdd_s4" },
|
|
|
|
{ "s5", QCOM_SMD_RPM_SMPA, 5, &pm8998_hfsmps, "vdd_s5" },
|
|
|
|
{ "s6", QCOM_SMD_RPM_SMPA, 6, &pm8998_ftsmps, "vdd_s6" },
|
|
|
|
{ "s7", QCOM_SMD_RPM_SMPA, 7, &pm8998_ftsmps, "vdd_s7" },
|
|
|
|
{ "s8", QCOM_SMD_RPM_SMPA, 8, &pm8998_ftsmps, "vdd_s8" },
|
|
|
|
{ "s9", QCOM_SMD_RPM_SMPA, 9, &pm8998_ftsmps, "vdd_s9" },
|
|
|
|
{ "s10", QCOM_SMD_RPM_SMPA, 10, &pm8998_ftsmps, "vdd_s10" },
|
|
|
|
{ "s11", QCOM_SMD_RPM_SMPA, 11, &pm8998_ftsmps, "vdd_s11" },
|
|
|
|
{ "s12", QCOM_SMD_RPM_SMPA, 12, &pm8998_ftsmps, "vdd_s12" },
|
|
|
|
{ "s13", QCOM_SMD_RPM_SMPA, 13, &pm8998_ftsmps, "vdd_s13" },
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOA, 1, &pm8998_nldo, "vdd_l1_l27" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &pm8998_nldo, "vdd_l2_l8_l17" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOA, 3, &pm8998_nldo, "vdd_l3_l11" },
|
|
|
|
{ "l4", QCOM_SMD_RPM_LDOA, 4, &pm8998_nldo, "vdd_l4_l5" },
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOA, 5, &pm8998_nldo, "vdd_l4_l5" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOA, 6, &pm8998_pldo, "vdd_l6" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOA, 7, &pm8998_pldo_lv, "vdd_l7_l12_l14_l15" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOA, 8, &pm8998_nldo, "vdd_l2_l8_l17" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_LDOA, 9, &pm8998_pldo, "vdd_l9" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_LDOA, 10, &pm8998_pldo, "vdd_l10_l23_l25" },
|
|
|
|
{ "l11", QCOM_SMD_RPM_LDOA, 11, &pm8998_nldo, "vdd_l3_l11" },
|
|
|
|
{ "l12", QCOM_SMD_RPM_LDOA, 12, &pm8998_pldo_lv, "vdd_l7_l12_l14_l15" },
|
|
|
|
{ "l13", QCOM_SMD_RPM_LDOA, 13, &pm8998_pldo, "vdd_l13_l19_l21" },
|
|
|
|
{ "l14", QCOM_SMD_RPM_LDOA, 14, &pm8998_pldo_lv, "vdd_l7_l12_l14_l15" },
|
|
|
|
{ "l15", QCOM_SMD_RPM_LDOA, 15, &pm8998_pldo_lv, "vdd_l7_l12_l14_l15" },
|
|
|
|
{ "l16", QCOM_SMD_RPM_LDOA, 16, &pm8998_pldo, "vdd_l16_l28" },
|
|
|
|
{ "l17", QCOM_SMD_RPM_LDOA, 17, &pm8998_nldo, "vdd_l2_l8_l17" },
|
|
|
|
{ "l18", QCOM_SMD_RPM_LDOA, 18, &pm8998_pldo, "vdd_l18_l22" },
|
|
|
|
{ "l19", QCOM_SMD_RPM_LDOA, 19, &pm8998_pldo, "vdd_l13_l19_l21" },
|
|
|
|
{ "l20", QCOM_SMD_RPM_LDOA, 20, &pm8998_pldo, "vdd_l20_l24" },
|
|
|
|
{ "l21", QCOM_SMD_RPM_LDOA, 21, &pm8998_pldo, "vdd_l13_l19_l21" },
|
|
|
|
{ "l22", QCOM_SMD_RPM_LDOA, 22, &pm8998_pldo, "vdd_l18_l22" },
|
|
|
|
{ "l23", QCOM_SMD_RPM_LDOA, 23, &pm8998_pldo, "vdd_l10_l23_l25" },
|
|
|
|
{ "l24", QCOM_SMD_RPM_LDOA, 24, &pm8998_pldo, "vdd_l20_l24" },
|
|
|
|
{ "l25", QCOM_SMD_RPM_LDOA, 25, &pm8998_pldo, "vdd_l10_l23_l25" },
|
|
|
|
{ "l26", QCOM_SMD_RPM_LDOA, 26, &pm8998_nldo, "vdd_l26" },
|
|
|
|
{ "l27", QCOM_SMD_RPM_LDOA, 27, &pm8998_nldo, "vdd_l1_l27" },
|
|
|
|
{ "l28", QCOM_SMD_RPM_LDOA, 28, &pm8998_pldo, "vdd_l16_l28" },
|
|
|
|
{ "lvs1", QCOM_SMD_RPM_VSA, 1, &pm8998_switch, "vdd_lvs1_lvs2" },
|
|
|
|
{ "lvs2", QCOM_SMD_RPM_VSA, 2, &pm8998_switch, "vdd_lvs1_lvs2" },
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct rpm_regulator_data rpm_pmi8998_regulators[] = {
|
|
|
|
{ "bob", QCOM_SMD_RPM_BOBB, 1, &pmi8998_bob, "vdd_bob" },
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2020-09-26 20:55:47 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pm660_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPA, 1, &pm660_ftsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &pm660_ftsmps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPA, 3, &pm660_ftsmps, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_SMPA, 4, &pm660_hfsmps, "vdd_s4" },
|
|
|
|
{ "s5", QCOM_SMD_RPM_SMPA, 5, &pm660_hfsmps, "vdd_s5" },
|
|
|
|
{ "s6", QCOM_SMD_RPM_SMPA, 6, &pm660_hfsmps, "vdd_s6" },
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOA, 1, &pm660_nldo660, "vdd_l1_l6_l7" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &pm660_ht_nldo, "vdd_l2_l3" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOA, 3, &pm660_nldo660, "vdd_l2_l3" },
|
|
|
|
/* l4 is unaccessible on PM660 */
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOA, 5, &pm660_ht_nldo, "vdd_l5" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOA, 6, &pm660_ht_nldo, "vdd_l1_l6_l7" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOA, 7, &pm660_ht_nldo, "vdd_l1_l6_l7" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOA, 8, &pm660_ht_lvpldo, "vdd_l8_l9_l10_l11_l12_l13_l14" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_LDOA, 9, &pm660_ht_lvpldo, "vdd_l8_l9_l10_l11_l12_l13_l14" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_LDOA, 10, &pm660_ht_lvpldo, "vdd_l8_l9_l10_l11_l12_l13_l14" },
|
|
|
|
{ "l11", QCOM_SMD_RPM_LDOA, 11, &pm660_ht_lvpldo, "vdd_l8_l9_l10_l11_l12_l13_l14" },
|
|
|
|
{ "l12", QCOM_SMD_RPM_LDOA, 12, &pm660_ht_lvpldo, "vdd_l8_l9_l10_l11_l12_l13_l14" },
|
|
|
|
{ "l13", QCOM_SMD_RPM_LDOA, 13, &pm660_ht_lvpldo, "vdd_l8_l9_l10_l11_l12_l13_l14" },
|
|
|
|
{ "l14", QCOM_SMD_RPM_LDOA, 14, &pm660_ht_lvpldo, "vdd_l8_l9_l10_l11_l12_l13_l14" },
|
|
|
|
{ "l15", QCOM_SMD_RPM_LDOA, 15, &pm660_pldo660, "vdd_l15_l16_l17_l18_l19" },
|
|
|
|
{ "l16", QCOM_SMD_RPM_LDOA, 16, &pm660_pldo660, "vdd_l15_l16_l17_l18_l19" },
|
|
|
|
{ "l17", QCOM_SMD_RPM_LDOA, 17, &pm660_pldo660, "vdd_l15_l16_l17_l18_l19" },
|
|
|
|
{ "l18", QCOM_SMD_RPM_LDOA, 18, &pm660_pldo660, "vdd_l15_l16_l17_l18_l19" },
|
|
|
|
{ "l19", QCOM_SMD_RPM_LDOA, 19, &pm660_pldo660, "vdd_l15_l16_l17_l18_l19" },
|
|
|
|
{ }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct rpm_regulator_data rpm_pm660l_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPB, 1, &pm660_ftsmps, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPB, 2, &pm660_ftsmps, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_RWCX, 0, &pm660_ftsmps, "vdd_s3_s4" },
|
|
|
|
{ "s5", QCOM_SMD_RPM_RWMX, 0, &pm660_ftsmps, "vdd_s5" },
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOB, 1, &pm660_nldo660, "vdd_l1_l9_l10" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOB, 2, &pm660_pldo660, "vdd_l2" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOB, 3, &pm660_pldo660, "vdd_l3_l5_l7_l8" },
|
|
|
|
{ "l4", QCOM_SMD_RPM_LDOB, 4, &pm660_pldo660, "vdd_l4_l6" },
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOB, 5, &pm660_pldo660, "vdd_l3_l5_l7_l8" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOB, 6, &pm660_pldo660, "vdd_l4_l6" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOB, 7, &pm660_pldo660, "vdd_l3_l5_l7_l8" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOB, 8, &pm660_pldo660, "vdd_l3_l5_l7_l8" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_RWLC, 0, &pm660_ht_nldo, "vdd_l1_l9_l10" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_RWLM, 0, &pm660_ht_nldo, "vdd_l1_l9_l10" },
|
|
|
|
{ "bob", QCOM_SMD_RPM_BOBB, 1, &pm660l_bob, "vdd_bob", },
|
|
|
|
{ }
|
|
|
|
};
|
|
|
|
|
2018-09-20 09:40:20 +08:00
|
|
|
static const struct rpm_regulator_data rpm_pms405_regulators[] = {
|
|
|
|
{ "s1", QCOM_SMD_RPM_SMPA, 1, &pms405_hfsmps3, "vdd_s1" },
|
|
|
|
{ "s2", QCOM_SMD_RPM_SMPA, 2, &pms405_hfsmps3, "vdd_s2" },
|
|
|
|
{ "s3", QCOM_SMD_RPM_SMPA, 3, &pms405_hfsmps3, "vdd_s3" },
|
|
|
|
{ "s4", QCOM_SMD_RPM_SMPA, 4, &pms405_hfsmps3, "vdd_s4" },
|
|
|
|
{ "s5", QCOM_SMD_RPM_SMPA, 5, &pms405_hfsmps3, "vdd_s5" },
|
|
|
|
{ "l1", QCOM_SMD_RPM_LDOA, 1, &pms405_nldo1200, "vdd_l1_l2" },
|
|
|
|
{ "l2", QCOM_SMD_RPM_LDOA, 2, &pms405_nldo1200, "vdd_l1_l2" },
|
|
|
|
{ "l3", QCOM_SMD_RPM_LDOA, 3, &pms405_nldo1200, "vdd_l3_l8" },
|
|
|
|
{ "l4", QCOM_SMD_RPM_LDOA, 4, &pms405_nldo300, "vdd_l4" },
|
|
|
|
{ "l5", QCOM_SMD_RPM_LDOA, 5, &pms405_pldo600, "vdd_l5_l6" },
|
|
|
|
{ "l6", QCOM_SMD_RPM_LDOA, 6, &pms405_pldo600, "vdd_l5_l6" },
|
|
|
|
{ "l7", QCOM_SMD_RPM_LDOA, 7, &pms405_pldo150, "vdd_l7" },
|
|
|
|
{ "l8", QCOM_SMD_RPM_LDOA, 8, &pms405_nldo1200, "vdd_l3_l8" },
|
|
|
|
{ "l9", QCOM_SMD_RPM_LDOA, 9, &pms405_nldo1200, "vdd_l9" },
|
|
|
|
{ "l10", QCOM_SMD_RPM_LDOA, 10, &pms405_pldo50, "vdd_l10_l11_l12_l13" },
|
|
|
|
{ "l11", QCOM_SMD_RPM_LDOA, 11, &pms405_pldo150, "vdd_l10_l11_l12_l13" },
|
|
|
|
{ "l12", QCOM_SMD_RPM_LDOA, 12, &pms405_pldo150, "vdd_l10_l11_l12_l13" },
|
|
|
|
{ "l13", QCOM_SMD_RPM_LDOA, 13, &pms405_pldo150, "vdd_l10_l11_l12_l13" },
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
2015-08-18 02:43:59 +08:00
|
|
|
static const struct of_device_id rpm_of_match[] = {
|
2020-06-23 13:17:50 +08:00
|
|
|
{ .compatible = "qcom,rpm-mp5496-regulators", .data = &rpm_mp5496_regulators },
|
2015-08-18 02:43:59 +08:00
|
|
|
{ .compatible = "qcom,rpm-pm8841-regulators", .data = &rpm_pm8841_regulators },
|
2015-12-15 13:30:44 +08:00
|
|
|
{ .compatible = "qcom,rpm-pm8916-regulators", .data = &rpm_pm8916_regulators },
|
2015-08-18 02:43:59 +08:00
|
|
|
{ .compatible = "qcom,rpm-pm8941-regulators", .data = &rpm_pm8941_regulators },
|
2019-09-21 17:50:41 +08:00
|
|
|
{ .compatible = "qcom,rpm-pm8950-regulators", .data = &rpm_pm8950_regulators },
|
2020-10-04 16:34:12 +08:00
|
|
|
{ .compatible = "qcom,rpm-pm8953-regulators", .data = &rpm_pm8953_regulators },
|
2017-01-18 18:46:37 +08:00
|
|
|
{ .compatible = "qcom,rpm-pm8994-regulators", .data = &rpm_pm8994_regulators },
|
2018-03-27 23:53:01 +08:00
|
|
|
{ .compatible = "qcom,rpm-pm8998-regulators", .data = &rpm_pm8998_regulators },
|
2020-09-26 20:55:47 +08:00
|
|
|
{ .compatible = "qcom,rpm-pm660-regulators", .data = &rpm_pm660_regulators },
|
|
|
|
{ .compatible = "qcom,rpm-pm660l-regulators", .data = &rpm_pm660l_regulators },
|
2015-12-15 13:30:45 +08:00
|
|
|
{ .compatible = "qcom,rpm-pma8084-regulators", .data = &rpm_pma8084_regulators },
|
2020-03-24 12:14:24 +08:00
|
|
|
{ .compatible = "qcom,rpm-pmi8994-regulators", .data = &rpm_pmi8994_regulators },
|
2018-03-27 23:53:01 +08:00
|
|
|
{ .compatible = "qcom,rpm-pmi8998-regulators", .data = &rpm_pmi8998_regulators },
|
2018-09-20 09:40:20 +08:00
|
|
|
{ .compatible = "qcom,rpm-pms405-regulators", .data = &rpm_pms405_regulators },
|
2015-08-18 02:43:59 +08:00
|
|
|
{}
|
|
|
|
};
|
|
|
|
MODULE_DEVICE_TABLE(of, rpm_of_match);
|
|
|
|
|
|
|
|
static int rpm_reg_probe(struct platform_device *pdev)
|
|
|
|
{
|
|
|
|
const struct rpm_regulator_data *reg;
|
|
|
|
const struct of_device_id *match;
|
|
|
|
struct regulator_config config = { };
|
|
|
|
struct regulator_dev *rdev;
|
|
|
|
struct qcom_rpm_reg *vreg;
|
|
|
|
struct qcom_smd_rpm *rpm;
|
|
|
|
|
|
|
|
rpm = dev_get_drvdata(pdev->dev.parent);
|
|
|
|
if (!rpm) {
|
|
|
|
dev_err(&pdev->dev, "unable to retrieve handle to rpm\n");
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
|
|
|
match = of_match_device(rpm_of_match, &pdev->dev);
|
2017-07-07 13:36:10 +08:00
|
|
|
if (!match) {
|
|
|
|
dev_err(&pdev->dev, "failed to match device\n");
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
2015-08-18 02:43:59 +08:00
|
|
|
for (reg = match->data; reg->name; reg++) {
|
|
|
|
vreg = devm_kzalloc(&pdev->dev, sizeof(*vreg), GFP_KERNEL);
|
|
|
|
if (!vreg)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
vreg->dev = &pdev->dev;
|
|
|
|
vreg->type = reg->type;
|
|
|
|
vreg->id = reg->id;
|
|
|
|
vreg->rpm = rpm;
|
|
|
|
|
|
|
|
memcpy(&vreg->desc, reg->desc, sizeof(vreg->desc));
|
|
|
|
|
|
|
|
vreg->desc.id = -1;
|
|
|
|
vreg->desc.owner = THIS_MODULE;
|
|
|
|
vreg->desc.type = REGULATOR_VOLTAGE;
|
|
|
|
vreg->desc.name = reg->name;
|
|
|
|
vreg->desc.supply_name = reg->supply;
|
|
|
|
vreg->desc.of_match = reg->name;
|
|
|
|
|
|
|
|
config.dev = &pdev->dev;
|
|
|
|
config.driver_data = vreg;
|
|
|
|
rdev = devm_regulator_register(&pdev->dev, &vreg->desc, &config);
|
|
|
|
if (IS_ERR(rdev)) {
|
|
|
|
dev_err(&pdev->dev, "failed to register %s\n", reg->name);
|
|
|
|
return PTR_ERR(rdev);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static struct platform_driver rpm_reg_driver = {
|
|
|
|
.probe = rpm_reg_probe,
|
|
|
|
.driver = {
|
|
|
|
.name = "qcom_rpm_smd_regulator",
|
|
|
|
.of_match_table = rpm_of_match,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
static int __init rpm_reg_init(void)
|
|
|
|
{
|
|
|
|
return platform_driver_register(&rpm_reg_driver);
|
|
|
|
}
|
|
|
|
subsys_initcall(rpm_reg_init);
|
|
|
|
|
|
|
|
static void __exit rpm_reg_exit(void)
|
|
|
|
{
|
|
|
|
platform_driver_unregister(&rpm_reg_driver);
|
|
|
|
}
|
|
|
|
module_exit(rpm_reg_exit)
|
|
|
|
|
|
|
|
MODULE_DESCRIPTION("Qualcomm RPM regulator driver");
|
|
|
|
MODULE_LICENSE("GPL v2");
|