# \[PATCH v5 6/6\] mfd: axp20x: add battery power supply cell for AXP813

- From: Quentin Schulz \<hidden\>
- Date: 2018-02-28 10:37:01 
- List: linux-devicetree
- Page: https://ratatoskr.run/linux-devicetree/2018/02/5216520
- Thread: https://ratatoskr.run/linux-pm/2018/02/5216521/t.md

```text
As axp20x-battery-power-supply now supports AXP813, add a cell for it.

Signed-off-by: Quentin Schulz <redacted>
Acked-for-MFD-by: Lee Jones [ref]
Reviewed-by: Chen-Yu Tsai <redacted>
---
 drivers/mfd/axp20x.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index e5516aa..aaf2acb 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -888,6 +888,9 @@ static struct mfd_cell axp813_cells[] = {
 	}, {
 		.name			= "axp813-adc",
 		.of_compatible		= "x-powers,axp813-adc",
+	}, {
+		.name		= "axp20x-battery-power-supply",
+		.of_compatible	= "x-powers,axp813-battery-power-supply",
 	},
 };
 
-- 
git-series 0.9.1
```
