Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: s2mps11: add support for S2MPG10 PMIC clock

Add support for Samsung's S2MPG10 PMIC clock, which is similar to the
existing PMIC clocks supported by this driver.

S2MPG10 has three clock outputs @ 32kHz: AP, peri1 and peri2.

Acked-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

André Draszik and committed by
Stephen Boyd
823699cc b92ef17f

+8
+8
drivers/clk/clk-s2mps11.c
··· 11 11 #include <linux/regmap.h> 12 12 #include <linux/clk-provider.h> 13 13 #include <linux/platform_device.h> 14 + #include <linux/mfd/samsung/s2mpg10.h> 14 15 #include <linux/mfd/samsung/s2mps11.h> 15 16 #include <linux/mfd/samsung/s2mps13.h> 16 17 #include <linux/mfd/samsung/s2mps14.h> ··· 141 140 clk_data->num = S2MPS11_CLKS_NUM; 142 141 143 142 switch (hwid) { 143 + case S2MPG10: 144 + s2mps11_reg = S2MPG10_PMIC_RTCBUF; 145 + break; 144 146 case S2MPS11X: 145 147 s2mps11_reg = S2MPS11_REG_RTC_CTRL; 146 148 break; ··· 225 221 } 226 222 227 223 static const struct platform_device_id s2mps11_clk_id[] = { 224 + { "s2mpg10-clk", S2MPG10}, 228 225 { "s2mps11-clk", S2MPS11X}, 229 226 { "s2mps13-clk", S2MPS13X}, 230 227 { "s2mps14-clk", S2MPS14X}, ··· 246 241 */ 247 242 static const struct of_device_id s2mps11_dt_match[] __used = { 248 243 { 244 + .compatible = "samsung,s2mpg10-clk", 245 + .data = (void *)S2MPG10, 246 + }, { 249 247 .compatible = "samsung,s2mps11-clk", 250 248 .data = (void *)S2MPS11X, 251 249 }, {