lkml.org 
[lkml]   [2019]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 8/8] regulator: sy8824x: add SY20278 support
    Date
    The differences between SY8824C and SY20278 are different regs
    for mode/enable.

    Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
    ---
    drivers/regulator/sy8824x.c | 13 +++++++++++++
    1 file changed, 13 insertions(+)

    diff --git a/drivers/regulator/sy8824x.c b/drivers/regulator/sy8824x.c
    index 10d9180a0d77..f74ee7f36d74 100644
    --- a/drivers/regulator/sy8824x.c
    +++ b/drivers/regulator/sy8824x.c
    @@ -180,6 +180,15 @@ static const struct sy8824_config sy20276_cfg = {
    .vsel_count = 128,
    };

    +static const struct sy8824_config sy20278_cfg = {
    + .vol_reg = 0x00,
    + .mode_reg = 0x01,
    + .enable_reg = 0x01,
    + .vsel_min = 762500,
    + .vsel_step = 12500,
    + .vsel_count = 64,
    +};
    +
    static const struct of_device_id sy8824_dt_ids[] = {
    {
    .compatible = "silergy,sy8824c",
    @@ -193,6 +202,10 @@ static const struct of_device_id sy8824_dt_ids[] = {
    .compatible = "silergy,sy20276",
    .data = &sy20276_cfg
    },
    + {
    + .compatible = "silergy,sy20278",
    + .data = &sy20278_cfg
    + },
    { }
    };
    MODULE_DEVICE_TABLE(of, sy8824_dt_ids);
    --
    2.23.0.rc1
    \
     
     \ /
      Last update: 2019-08-28 08:15    [W:2.371 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site