Lines Matching +full:bd9576 +full:- +full:pmic

1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * ROHM BD9576MUF and BD9573MUF PMIC driver
13 #include <linux/mfd/rohm-bd957x.h>
14 #include <linux/mfd/rohm-generic.h>
28 * PMIC is populated in device-tree.
31 DEFINE_RES_IRQ_NAMED(BD9576_INT_THERM, "bd9576-temp"),
32 DEFINE_RES_IRQ_NAMED(BD9576_INT_OVD, "bd9576-ovd"),
33 DEFINE_RES_IRQ_NAMED(BD9576_INT_UVD, "bd9576-uvd"),
37 [BD957X_REGULATOR_CELL] = { .name = "bd9573-regulator", },
38 [BD957X_WDT_CELL] = { .name = "bd9576-wdt", },
42 [BD957X_REGULATOR_CELL] = { .name = "bd9576-regulator", },
43 [BD957X_WDT_CELL] = { .name = "bd9576-wdt", },
101 chip_type = (unsigned long)of_device_get_match_data(&i2c->dev); in bd957x_i2c_probe()
107 usable_irqs = !!i2c->irq; in bd957x_i2c_probe()
119 dev_err(&i2c->dev, "Unknown device type"); in bd957x_i2c_probe()
120 return -EINVAL; in bd957x_i2c_probe()
125 return dev_err_probe(&i2c->dev, PTR_ERR(regmap), in bd957x_i2c_probe()
129 * BD9576 behaves badly. It kepts IRQ line asserted for the whole in bd957x_i2c_probe()
133 * provide IRQ resources to regulator driver - which then just omits in bd957x_i2c_probe()
141 regulators->resources = bd9576_regulator_irqs; in bd957x_i2c_probe()
142 regulators->num_resources = ARRAY_SIZE(bd9576_regulator_irqs); in bd957x_i2c_probe()
144 ret = devm_regmap_add_irq_chip(&i2c->dev, regmap, i2c->irq, in bd957x_i2c_probe()
148 return dev_err_probe(&i2c->dev, ret, in bd957x_i2c_probe()
161 ret = devm_mfd_add_devices(&i2c->dev, PLATFORM_DEVID_AUTO, cells, in bd957x_i2c_probe()
164 dev_err_probe(&i2c->dev, ret, "Failed to create subdevices\n"); in bd957x_i2c_probe()
170 { .compatible = "rohm,bd9576", .data = (void *)ROHM_CHIP_TYPE_BD9576, },
178 .name = "rohm-bd957x",