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", },
102 chip_type = (unsigned long)of_device_get_match_data(&i2c->dev); in bd957x_i2c_probe()
108 usable_irqs = !!i2c->irq; in bd957x_i2c_probe()
120 dev_err(&i2c->dev, "Unknown device type"); in bd957x_i2c_probe()
121 return -EINVAL; in bd957x_i2c_probe()
126 dev_err(&i2c->dev, "Failed to initialize Regmap\n"); in bd957x_i2c_probe()
131 * BD9576 behaves badly. It kepts IRQ line asserted for the whole in bd957x_i2c_probe()
135 * provide IRQ resources to regulator driver - which then just omits in bd957x_i2c_probe()
143 regulators->resources = bd9576_regulator_irqs; in bd957x_i2c_probe()
144 regulators->num_resources = ARRAY_SIZE(bd9576_regulator_irqs); in bd957x_i2c_probe()
146 ret = devm_regmap_add_irq_chip(&i2c->dev, regmap, i2c->irq, in bd957x_i2c_probe()
150 dev_err(&i2c->dev, "Failed to add IRQ chip\n"); in bd957x_i2c_probe()
163 ret = devm_mfd_add_devices(&i2c->dev, PLATFORM_DEVID_AUTO, cells, in bd957x_i2c_probe()
166 dev_err(&i2c->dev, "Failed to create subdevices\n"); in bd957x_i2c_probe()
172 { .compatible = "rohm,bd9576", .data = (void *)ROHM_CHIP_TYPE_BD9576, },
180 .name = "rohm-bd957x",