aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/pmic/max77663.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/pmic/max77663.c')
-rw-r--r--drivers/power/pmic/max77663.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/power/pmic/max77663.c b/drivers/power/pmic/max77663.c
index fac97ed221..68c3cbbc64 100644
--- a/drivers/power/pmic/max77663.c
+++ b/drivers/power/pmic/max77663.c
@@ -44,7 +44,16 @@ static int max77663_read(struct udevice *dev, uint reg, uint8_t *buff, int len)
static int max77663_bind(struct udevice *dev)
{
ofnode regulators_node;
- int children;
+ int children, ret;
+
+ if (IS_ENABLED(CONFIG_SYSRESET_MAX77663)) {
+ ret = device_bind_driver(dev, MAX77663_RST_DRIVER,
+ "sysreset", NULL);
+ if (ret) {
+ log_err("cannot bind SYSRESET (ret = %d)\n", ret);
+ return ret;
+ }
+ }
regulators_node = dev_read_subnode(dev, "regulators");
if (!ofnode_valid(regulators_node)) {