diff options
author | Chen-Yu Tsai <wens@csie.org> | 2018-07-12 12:04:50 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-07-27 03:13:26 -0400 |
commit | 99e19b7c48f852acd8341de4390931a9da699ee3 (patch) | |
tree | 86e9e945e3d8d8f195a212d08807ed902a23a1fb | |
parent | 06f4901092c26c24575dd0aa1f55cdf9a83434e8 (diff) |
mfd: axp20x: Support AXP806 in I2C mode
The Pine64 H64 board uses an AXP806 PMIC in I2C and self-working mode.
The H64 SoC does not have the usual RSB controller.
This patch adds AXP806 to the list of devices supported in I2C mode.
In theory, all RSB-based PMICs can also be used in I2C mode.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Icenowy Zheng <icenowy@aosc.io>
Tested-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/axp20x-i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c index d35a5fe6c950..a7b7c5423ea5 100644 --- a/drivers/mfd/axp20x-i2c.c +++ b/drivers/mfd/axp20x-i2c.c | |||
@@ -65,6 +65,7 @@ static const struct of_device_id axp20x_i2c_of_match[] = { | |||
65 | { .compatible = "x-powers,axp202", .data = (void *)AXP202_ID }, | 65 | { .compatible = "x-powers,axp202", .data = (void *)AXP202_ID }, |
66 | { .compatible = "x-powers,axp209", .data = (void *)AXP209_ID }, | 66 | { .compatible = "x-powers,axp209", .data = (void *)AXP209_ID }, |
67 | { .compatible = "x-powers,axp221", .data = (void *)AXP221_ID }, | 67 | { .compatible = "x-powers,axp221", .data = (void *)AXP221_ID }, |
68 | { .compatible = "x-powers,axp806", .data = (void *)AXP806_ID }, | ||
68 | { }, | 69 | { }, |
69 | }; | 70 | }; |
70 | MODULE_DEVICE_TABLE(of, axp20x_i2c_of_match); | 71 | MODULE_DEVICE_TABLE(of, axp20x_i2c_of_match); |
@@ -74,6 +75,7 @@ static const struct i2c_device_id axp20x_i2c_id[] = { | |||
74 | { "axp202", 0 }, | 75 | { "axp202", 0 }, |
75 | { "axp209", 0 }, | 76 | { "axp209", 0 }, |
76 | { "axp221", 0 }, | 77 | { "axp221", 0 }, |
78 | { "axp806", 0 }, | ||
77 | { }, | 79 | { }, |
78 | }; | 80 | }; |
79 | MODULE_DEVICE_TABLE(i2c, axp20x_i2c_id); | 81 | MODULE_DEVICE_TABLE(i2c, axp20x_i2c_id); |