Lines Matching full:rn5t618

3  * Power supply driver for the RICOH RN5T618 power management chip family
16 #include <linux/mfd/rn5t618.h>
63 struct rn5t618 *rn5t618; member
123 ret = regmap_bulk_read(info->rn5t618->regmap, in rn5t618_battery_read_doublereg()
168 ret = regmap_read(info->rn5t618->regmap, RN5T618_CHGSTATE, &v); in rn5t618_battery_status()
188 ret = regmap_read(info->rn5t618->regmap, RN5T618_CHGSTATE, &v); in rn5t618_battery_present()
238 ret = regmap_read(info->rn5t618->regmap, RN5T618_SOC, &v); in rn5t618_battery_capacity()
307 return regmap_update_bits(info->rn5t618->regmap, in rn5t618_battery_set_current_limit()
318 ret = regmap_read(info->rn5t618->regmap, RN5T618_CHGISET, in rn5t618_battery_get_current_limit()
444 ret = regmap_read(info->rn5t618->regmap, RN5T618_CHGSTATE, &chgstate); in rn5t618_adp_get_property()
465 ret = regmap_read(info->rn5t618->regmap, in rn5t618_adp_get_property()
503 ret = regmap_write(info->rn5t618->regmap, RN5T618_REGISET1, in rn5t618_adp_set_property()
533 ret = regmap_read(info->rn5t618->regmap, RN5T618_GCHGDET, &regval); in rc5t619_usb_get_type()
564 ret = regmap_read(info->rn5t618->regmap, RN5T618_CHGSTATE, &chgstate); in rn5t618_usb_get_property()
585 if (!online || (info->rn5t618->variant != RC5T619)) in rn5t618_usb_get_property()
590 ret = regmap_read(info->rn5t618->regmap, RN5T618_CHGCTL1, in rn5t618_usb_get_property()
597 ret = regmap_read(info->rn5t618->regmap, in rn5t618_usb_get_property()
637 ret = regmap_write(info->rn5t618->regmap, RN5T618_REGISET2, in rn5t618_usb_set_property()
662 .name = "rn5t618-battery",
672 .name = "rn5t618-adp",
682 .name = "rn5t618-usb",
700 regmap_read(info->rn5t618->regmap, RN5T618_CHGERR_IRR, &err); in rn5t618_charger_irq()
701 regmap_read(info->rn5t618->regmap, RN5T618_CHGCTRL_IRR, &ctrl); in rn5t618_charger_irq()
702 regmap_read(info->rn5t618->regmap, RN5T618_CHGSTAT_IRR1, &stat1); in rn5t618_charger_irq()
703 regmap_read(info->rn5t618->regmap, RN5T618_CHGSTAT_IRR2, &stat2); in rn5t618_charger_irq()
705 regmap_write(info->rn5t618->regmap, RN5T618_CHGERR_IRR, 0); in rn5t618_charger_irq()
706 regmap_write(info->rn5t618->regmap, RN5T618_CHGCTRL_IRR, 0); in rn5t618_charger_irq()
707 regmap_write(info->rn5t618->regmap, RN5T618_CHGSTAT_IRR1, 0); in rn5t618_charger_irq()
708 regmap_write(info->rn5t618->regmap, RN5T618_CHGSTAT_IRR2, 0); in rn5t618_charger_irq()
732 info->rn5t618 = dev_get_drvdata(pdev->dev.parent); in rn5t618_power_probe()
751 ret = regmap_read(info->rn5t618->regmap, RN5T618_CONTROL, &v); in rn5t618_power_probe()
763 regmap_update_bits(info->rn5t618->regmap, RN5T618_CONTROL, in rn5t618_power_probe()
795 if (info->rn5t618->irq_data) in rn5t618_power_probe()
796 info->irq = regmap_irq_get_virq(info->rn5t618->irq_data, in rn5t618_power_probe()
820 .name = "rn5t618-power",
826 MODULE_ALIAS("platform:rn5t618-power");
827 MODULE_DESCRIPTION("Power supply driver for RICOH RN5T618");