提交 a84df1c7 编写于 作者: M Markuss Broks 提交者: Chanwoo Choi

extcon: sm5502: Add support for SM5703

SM5703 is another MFD from Silicon Mitus which has a very similar MUIC
unit to the one in SM5502. The only difference I've noticed is slightly different
configuration only enables the interrupts which are exactly the same as on SM5502.
If we make use of different interrupts in the future, this can be improved by having
a separate struct for SM5703, but the main functionality (detecting cable or OTG adapter)
is working properly.
Signed-off-by: NMarkuss Broks <markuss.broks@gmail.com>
Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
上级 9869ba6d
...@@ -156,7 +156,7 @@ config EXTCON_RT8973A ...@@ -156,7 +156,7 @@ config EXTCON_RT8973A
from abnormal high input voltage (up to 28V). from abnormal high input voltage (up to 28V).
config EXTCON_SM5502 config EXTCON_SM5502
tristate "Silicon Mitus SM5502/SM5504 EXTCON support" tristate "Silicon Mitus SM5502/SM5504/SM5703 EXTCON support"
depends on I2C depends on I2C
select IRQ_DOMAIN select IRQ_DOMAIN
select REGMAP_I2C select REGMAP_I2C
......
...@@ -798,6 +798,7 @@ static const struct sm5502_type sm5504_data = { ...@@ -798,6 +798,7 @@ static const struct sm5502_type sm5504_data = {
static const struct of_device_id sm5502_dt_match[] = { static const struct of_device_id sm5502_dt_match[] = {
{ .compatible = "siliconmitus,sm5502-muic", .data = &sm5502_data }, { .compatible = "siliconmitus,sm5502-muic", .data = &sm5502_data },
{ .compatible = "siliconmitus,sm5504-muic", .data = &sm5504_data }, { .compatible = "siliconmitus,sm5504-muic", .data = &sm5504_data },
{ .compatible = "siliconmitus,sm5703-muic", .data = &sm5502_data },
{ }, { },
}; };
MODULE_DEVICE_TABLE(of, sm5502_dt_match); MODULE_DEVICE_TABLE(of, sm5502_dt_match);
...@@ -830,6 +831,7 @@ static SIMPLE_DEV_PM_OPS(sm5502_muic_pm_ops, ...@@ -830,6 +831,7 @@ static SIMPLE_DEV_PM_OPS(sm5502_muic_pm_ops,
static const struct i2c_device_id sm5502_i2c_id[] = { static const struct i2c_device_id sm5502_i2c_id[] = {
{ "sm5502", (kernel_ulong_t)&sm5502_data }, { "sm5502", (kernel_ulong_t)&sm5502_data },
{ "sm5504", (kernel_ulong_t)&sm5504_data }, { "sm5504", (kernel_ulong_t)&sm5504_data },
{ "sm5703", (kernel_ulong_t)&sm5502_data },
{ } { }
}; };
MODULE_DEVICE_TABLE(i2c, sm5502_i2c_id); MODULE_DEVICE_TABLE(i2c, sm5502_i2c_id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册