Home
last modified time | relevance | path

Searched refs:bd70528 (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.4/drivers/watchdog/
Dbd70528_wdt.c47 struct bd70528_data *bd70528 = container_of(data, struct bd70528_data, in bd70528_wdt_set() local
52 ret = regmap_read(bd70528->chip.regmap, BD70528_REG_WDT_CTRL, &tmp); in bd70528_wdt_set()
79 ret = regmap_write(bd70528->chip.regmap, BD70528_REG_WDT_CTRL, in bd70528_wdt_set()
85 ret = regmap_read(bd70528->chip.regmap, BD70528_REG_WDT_CTRL, &tmp); in bd70528_wdt_set()
87 dev_err(bd70528->chip.dev, in bd70528_wdt_set()
107 struct bd70528_data *bd70528 = container_of(data, struct bd70528_data, in bd70528_wdt_lock() local
110 mutex_lock(&bd70528->rtc_timer_lock); in bd70528_wdt_lock()
124 struct bd70528_data *bd70528 = container_of(data, struct bd70528_data, in bd70528_wdt_unlock() local
127 mutex_unlock(&bd70528->rtc_timer_lock); in bd70528_wdt_unlock()
226 struct rohm_regmap_dev *bd70528; in bd70528_wdt_probe() local
[all …]
/Linux-v5.4/drivers/rtc/
Drtc-bd70528.c50 static int bd70528_set_wake(struct rohm_regmap_dev *bd70528, in bd70528_set_wake() argument
56 ret = regmap_read(bd70528->regmap, BD70528_REG_WAKE_EN, &ctrl_reg); in bd70528_set_wake()
75 return regmap_write(bd70528->regmap, BD70528_REG_WAKE_EN, in bd70528_set_wake()
79 static int bd70528_set_elapsed_tmr(struct rohm_regmap_dev *bd70528, in bd70528_set_elapsed_tmr() argument
97 ret = regmap_read(bd70528->regmap, BD70528_REG_ELAPSED_TIMER_EN, in bd70528_set_elapsed_tmr()
117 return regmap_write(bd70528->regmap, BD70528_REG_ELAPSED_TIMER_EN, in bd70528_set_elapsed_tmr()
222 struct rohm_regmap_dev *bd70528 = r->mfd; in bd70528_set_alarm() local
224 ret = regmap_bulk_read(bd70528->regmap, BD70528_REG_RTC_WAKE_START, in bd70528_set_alarm()
231 ret = regmap_bulk_read(bd70528->regmap, BD70528_REG_RTC_ALM_START, in bd70528_set_alarm()
249 ret = regmap_bulk_write(bd70528->regmap, in bd70528_set_alarm()
[all …]
DMakefile41 obj-$(CONFIG_RTC_DRV_BD70528) += rtc-bd70528.o
DKconfig520 will be called rtc-bd70528.
/Linux-v5.4/drivers/mfd/
Drohm-bd70528.c223 struct bd70528_data *bd70528; in bd70528_i2c_probe() local
232 bd70528 = devm_kzalloc(&i2c->dev, sizeof(*bd70528), GFP_KERNEL); in bd70528_i2c_probe()
233 if (!bd70528) in bd70528_i2c_probe()
236 mutex_init(&bd70528->rtc_timer_lock); in bd70528_i2c_probe()
238 dev_set_drvdata(&i2c->dev, &bd70528->chip); in bd70528_i2c_probe()
240 bd70528->chip.chip_type = ROHM_CHIP_TYPE_BD70528; in bd70528_i2c_probe()
241 bd70528->chip.regmap = devm_regmap_init_i2c(i2c, &bd70528_regmap); in bd70528_i2c_probe()
242 if (IS_ERR(bd70528->chip.regmap)) { in bd70528_i2c_probe()
244 return PTR_ERR(bd70528->chip.regmap); in bd70528_i2c_probe()
268 ret = devm_regmap_add_irq_chip(&i2c->dev, bd70528->chip.regmap, in bd70528_i2c_probe()
[all …]
DMakefile255 obj-$(CONFIG_MFD_ROHM_BD70528) += rohm-bd70528.o
/Linux-v5.4/Documentation/devicetree/bindings/mfd/
Drohm,bd70528-pmic.txt12 - compatible : Should be "rohm,bd70528"
24 Please see ../regulator/rohm,bd70528-regulator.txt
39 compatible = "rohm,bd70528";
45 clock-output-names = "bd70528-32k-out";
/Linux-v5.4/drivers/gpio/
Dgpio-bd70528.c182 struct rohm_regmap_dev *bd70528; in bd70528_probe() local
185 bd70528 = dev_get_drvdata(pdev->dev.parent); in bd70528_probe()
186 if (!bd70528) { in bd70528_probe()
211 bdgpio->chip.regmap = bd70528->regmap; in bd70528_probe()
DMakefile37 obj-$(CONFIG_GPIO_BD70528) += gpio-bd70528.o
DKconfig995 will be called gpio-bd70528.
/Linux-v5.4/drivers/regulator/
Dbd70528-regulator.c248 struct rohm_regmap_dev *bd70528; in bd70528_probe() local
254 bd70528 = dev_get_drvdata(pdev->dev.parent); in bd70528_probe()
255 if (!bd70528) { in bd70528_probe()
260 config.regmap = bd70528->regmap; in bd70528_probe()
DMakefile30 obj-$(CONFIG_REGULATOR_BD70528) += bd70528-regulator.o
DKconfig195 will be called bd70528-regulator.
/Linux-v5.4/Documentation/devicetree/bindings/regulator/
Drohm,bd70528-regulator.txt9 Documentation/devicetree/bindings/mfd/rohm,bd70528-pmic.txt
/Linux-v5.4/drivers/power/supply/
DMakefile93 obj-$(CONFIG_CHARGER_BD70528) += bd70528-charger.o
DKconfig696 tristate "ROHM bd70528 charger driver"