Add the support for S2MPS16 PMIC clock, which is functionally the same as the currently supported ones, with the exception of a different register. Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@xxxxxxxxx> --- drivers/clk/clk-s2mps11.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c index d4e9c3577..7c766d05d 100644 --- a/drivers/clk/clk-s2mps11.c +++ b/drivers/clk/clk-s2mps11.c @@ -14,6 +14,7 @@ #include <linux/mfd/samsung/s2mps11.h> #include <linux/mfd/samsung/s2mps13.h> #include <linux/mfd/samsung/s2mps14.h> +#include <linux/mfd/samsung/s2mps16.h> #include <linux/mfd/samsung/s5m8767.h> #include <linux/mfd/samsung/core.h> @@ -149,6 +150,9 @@ static int s2mps11_clk_probe(struct platform_device *pdev) case S2MPS14X: s2mps11_reg = S2MPS14_REG_RTCCTRL; break; + case S2MPS16X: + s2mps11_reg = S2MPS16_REG_RTC_BUF; + break; case S5M8767X: s2mps11_reg = S5M8767_REG_CTRL1; break; @@ -224,6 +228,7 @@ static const struct platform_device_id s2mps11_clk_id[] = { { "s2mps11-clk", S2MPS11X}, { "s2mps13-clk", S2MPS13X}, { "s2mps14-clk", S2MPS14X}, + { "s2mps16-clk", S2MPS16X}, { "s5m8767-clk", S5M8767X}, { }, }; @@ -249,6 +254,9 @@ static const struct of_device_id s2mps11_dt_match[] __used = { }, { .compatible = "samsung,s2mps14-clk", .data = (void *)S2MPS14X, + }, { + .compatible = "samsung,s2mps16-clk", + .data = (void *)S2MPS16X, }, { .compatible = "samsung,s5m8767-clk", .data = (void *)S5M8767X, -- 2.43.0