Home
last modified time | relevance | path

Searched full:rn5t618 (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/drivers/iio/adc/
H A Drn5t618-adc.c3 * ADC driver for the RICOH RN5T618 power management chip family
14 #include <linux/mfd/rn5t618.h>
40 struct rn5t618 *rn5t618; member
67 static int rn5t618_read_adc_reg(struct rn5t618 *rn5t618, int reg, u16 *val) in rn5t618_read_adc_reg() argument
72 ret = regmap_bulk_read(rn5t618->regmap, reg, data, sizeof(data)); in rn5t618_read_adc_reg()
88 regmap_write(adc->rn5t618->regmap, RN5T618_IR_ADC1, 0); in rn5t618_adc_irq()
89 regmap_write(adc->rn5t618->regmap, RN5T618_IR_ADC2, 0); in rn5t618_adc_irq()
91 ret = regmap_read(adc->rn5t618->regmap, RN5T618_IR_ADC3, &r); in rn5t618_adc_irq()
95 regmap_write(adc->rn5t618->regmap, RN5T618_IR_ADC3, 0); in rn5t618_adc_irq()
120 ret = regmap_update_bits(adc->rn5t618->regmap, RN5T618_ADCCNT3, in rn5t618_adc_read()
[all …]
H A DMakefile92 obj-$(CONFIG_RN5T618_ADC) += rn5t618-adc.o
H A DKconfig978 tristate "ADC for the RN5T618/RC5T619 family of chips"
982 RN5T618/619 series PMICs:
985 will be called rn5t618-adc.
/openbmc/linux/drivers/mfd/
H A Drn5t618.c3 * MFD core driver for Ricoh RN5T618 PMIC
14 #include <linux/mfd/rn5t618.h>
22 { .name = "rn5t618-regulator" },
23 { .name = "rn5t618-wdt" },
27 { .name = "rn5t618-adc" },
28 { .name = "rn5t618-power" },
29 { .name = "rn5t618-regulator" },
31 { .name = "rn5t618-wdt" },
89 static int rn5t618_irq_init(struct rn5t618 *rn5t618) in rn5t618_irq_init() argument
94 if (!rn5t618->irq) in rn5t618_irq_init()
[all …]
H A DMakefile227 obj-$(CONFIG_MFD_RN5T618) += rn5t618.o
H A DKconfig1264 RN5T618, RC5T619 PMIC.
/openbmc/linux/drivers/watchdog/
H A Drn5t618_wdt.c3 * Watchdog driver for Ricoh RN5T618 PMIC
9 #include <linux/mfd/rn5t618.h>
14 #define DRIVER_NAME "rn5t618-wdt"
28 struct rn5t618 *rn5t618; member
61 ret = regmap_update_bits(wdt->rn5t618->regmap, RN5T618_WATCHDOG, in rn5t618_wdt_set_timeout()
80 ret = regmap_update_bits(wdt->rn5t618->regmap, RN5T618_REPCNT, in rn5t618_wdt_start()
87 ret = regmap_update_bits(wdt->rn5t618->regmap, RN5T618_WATCHDOG, in rn5t618_wdt_start()
94 return regmap_update_bits(wdt->rn5t618->regmap, RN5T618_PWRIREN, in rn5t618_wdt_start()
103 return regmap_update_bits(wdt->rn5t618->regmap, RN5T618_WATCHDOG, in rn5t618_wdt_stop()
114 ret = regmap_read(wdt->rn5t618->regmap, RN5T618_WATCHDOG, &val); in rn5t618_wdt_ping()
[all …]
H A DKconfig617 tristate "Ricoh RN5T618 watchdog"
622 RN5T618 PMIC.
/openbmc/linux/drivers/power/supply/
H A Drn5t618_power.c3 * 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()
[all …]
H A DKconfig884 tristate "RN5T618 charger/fuel gauge support"
889 Say Y here to have support for RN5T618 PMIC family fuel gauge and charger.
/openbmc/linux/drivers/rtc/
H A Drtc-rc5t619.c15 #include <linux/mfd/rn5t618.h>
26 struct rn5t618 *rn5t618; member
73 err = regmap_update_bits(rtc->rn5t618->regmap, in rc5t619_rtc_periodic_disable()
79 err = regmap_update_bits(rtc->rn5t618->regmap, RN5T618_RTC_CTRL2, in rc5t619_rtc_periodic_disable()
95 err = regmap_read(rtc->rn5t618->regmap, RN5T618_RTC_CTRL2, &reg_data); in rc5t619_rtc_pon_setup()
102 err = regmap_write(rtc->rn5t618->regmap, RN5T618_RTC_CTRL2, reg_data); in rc5t619_rtc_pon_setup()
107 err = regmap_write(rtc->rn5t618->regmap, RN5T618_RTC_ADJUST, 0); in rc5t619_rtc_pon_setup()
111 return regmap_update_bits(rtc->rn5t618->regmap, in rc5t619_rtc_pon_setup()
125 err = regmap_read(rtc->rn5t618->regmap, RN5T618_RTC_CTRL2, &ctrl2); in rc5t619_rtc_read_time()
132 err = regmap_read(rtc->rn5t618->regmap, RN5T618_RTC_CTRL1, &ctrl1); in rc5t619_rtc_read_time()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dricoh,rn5t618.yaml4 $id: http://devicetree.org/schemas/mfd/ricoh,rn5t618.yaml#
7 title: Ricoh RN5T567/RN5T618/RC5T619 PMIC
13 Ricoh RN5T567/RN5T618/RC5T619 is a power management IC family which
16 The RN5T618/RC5T619 provides additionally a Li-ion battery charger,
37 const: ricoh,rn5t618
62 - ricoh,rn5t618
93 compatible = "ricoh,rn5t618";
/openbmc/linux/drivers/regulator/
H A Drn5t618-regulator.c3 * Regulator driver for Ricoh RN5T618 PMIC
8 #include <linux/mfd/rn5t618.h>
101 struct rn5t618 *rn5t618 = dev_get_drvdata(pdev->dev.parent); in rn5t618_regulator_probe() local
108 switch (rn5t618->variant) { in rn5t618_regulator_probe()
113 case RN5T618: in rn5t618_regulator_probe()
126 config.regmap = rn5t618->regmap; in rn5t618_regulator_probe()
145 .name = "rn5t618-regulator",
152 MODULE_ALIAS("platform:rn5t618-regulator");
154 MODULE_DESCRIPTION("RN5T618 regulator driver");
H A DMakefile135 obj-$(CONFIG_REGULATOR_RN5T618) += rn5t618-regulator.o
H A DKconfig1125 RN5T618 or RC5T619 PMIC.
/openbmc/linux/include/linux/mfd/
H A Drn5t618.h3 * MFD core driver for Ricoh RN5T618 PMIC
262 RN5T618, enumerator
266 /* RN5T618 IRQ definitions */
277 struct rn5t618 { struct
/openbmc/linux/arch/arm/boot/dts/amlogic/
H A Dmeson8-minix-neo-x8.dts49 compatible = "ricoh,rn5t618";
H A Dmeson8m2-mxiii-plus.dts116 compatible = "ricoh,rn5t618";
/openbmc/linux/
H A Dopengrok2.0.log[all...]
H A Dopengrok0.0.log[all...]
H A Dopengrok1.0.log[all...]