mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-28 16:53:49 +00:00
mfd: sec-core: Add support for the Samsung s2dos05
S2DOS05 is a panel/touchscreen PMIC, often found in Samsung phones. We define regulator sub-device for which driver will be added in subsequent patch. The device also has ADC for power and current measurements. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20240617-starqltechn_integration_upstream-v5-2-ea1109029ba5@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
78c7da855d
commit
bf231e5feb
@ -34,6 +34,10 @@ static const struct mfd_cell s5m8767_devs[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct mfd_cell s2dos05_devs[] = {
|
||||
{ .name = "s2dos05-regulator", },
|
||||
};
|
||||
|
||||
static const struct mfd_cell s2mps11_devs[] = {
|
||||
{ .name = "s2mps11-regulator", },
|
||||
{ .name = "s2mps14-rtc", },
|
||||
@ -83,6 +87,9 @@ static const struct of_device_id sec_dt_match[] = {
|
||||
{
|
||||
.compatible = "samsung,s5m8767-pmic",
|
||||
.data = (void *)S5M8767X,
|
||||
}, {
|
||||
.compatible = "samsung,s2dos05",
|
||||
.data = (void *)S2DOS05,
|
||||
}, {
|
||||
.compatible = "samsung,s2mps11-pmic",
|
||||
.data = (void *)S2MPS11X,
|
||||
@ -339,6 +346,10 @@ static int sec_pmic_probe(struct i2c_client *i2c)
|
||||
sec_devs = s5m8767_devs;
|
||||
num_sec_devs = ARRAY_SIZE(s5m8767_devs);
|
||||
break;
|
||||
case S2DOS05:
|
||||
sec_devs = s2dos05_devs;
|
||||
num_sec_devs = ARRAY_SIZE(s2dos05_devs);
|
||||
break;
|
||||
case S2MPA01:
|
||||
sec_devs = s2mpa01_devs;
|
||||
num_sec_devs = ARRAY_SIZE(s2mpa01_devs);
|
||||
|
@ -37,6 +37,7 @@ struct gpio_desc;
|
||||
|
||||
enum sec_device_type {
|
||||
S5M8767X,
|
||||
S2DOS05,
|
||||
S2MPA01,
|
||||
S2MPS11X,
|
||||
S2MPS13X,
|
||||
|
Loading…
Reference in New Issue
Block a user