Home
last modified time | relevance | path

Searched refs:da9055 (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/linux/include/linux/mfd/da9055/
H A Dcore.h27 struct da9055 { struct
38 static inline int da9055_reg_read(struct da9055 *da9055, unsigned char reg) in da9055_reg_read() argument
42 ret = regmap_read(da9055->regmap, reg, &val); in da9055_reg_read()
49 static inline int da9055_reg_write(struct da9055 *da9055, unsigned char reg, in da9055_reg_write() argument
52 return regmap_write(da9055->regmap, reg, val); in da9055_reg_write()
55 static inline int da9055_group_read(struct da9055 *da9055, unsigned char reg, in da9055_group_read() argument
58 return regmap_bulk_read(da9055->regmap, reg, val, reg_cnt); in da9055_group_read()
61 static inline int da9055_group_write(struct da9055 *da9055, unsigned char reg, in da9055_group_write() argument
67 static inline int da9055_reg_update(struct da9055 *da9055, unsigned char reg, in da9055_reg_update() argument
75 int da9055_device_init(struct da9055 *da9055);
[all …]
H A Dpdata.h9 struct da9055;
19 int (*init) (struct da9055 *da9055);
/openbmc/linux/drivers/rtc/
H A Drtc-da9055.c20 struct da9055 *da9055; member
39 dev_err(rtc->da9055->dev, in da9055_rtc_enable_alarm()
56 static int da9055_read_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_read_alarm() argument
77 static int da9055_set_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_set_alarm() argument
112 static int da9055_rtc_get_alarm_status(struct da9055 *da9055) in da9055_rtc_get_alarm_status() argument
116 ret = da9055_reg_read(da9055, DA9055_REG_ALARM_Y); in da9055_rtc_get_alarm_status()
182 ret = da9055_read_alarm(rtc->da9055, tm); in da9055_rtc_read_alarm()
202 ret = da9055_set_alarm(rtc->da9055, tm); in da9055_rtc_set_alarm()
226 static int da9055_rtc_device_init(struct da9055 *da9055, in da9055_rtc_device_init() argument
276 rtc->da9055 = dev_get_drvdata(pdev->dev.parent); in da9055_rtc_probe()
[all …]
H A DMakefile46 obj-$(CONFIG_RTC_DRV_DA9055) += rtc-da9055.o
H A DKconfig1121 will be called rtc-da9055
/openbmc/linux/drivers/mfd/
H A Dda9055-i2c.c19 struct da9055 *da9055; in da9055_i2c_probe() local
22 da9055 = devm_kzalloc(&i2c->dev, sizeof(struct da9055), GFP_KERNEL); in da9055_i2c_probe()
23 if (!da9055) in da9055_i2c_probe()
27 if (IS_ERR(da9055->regmap)) { in da9055_i2c_probe()
28 ret = PTR_ERR(da9055->regmap); in da9055_i2c_probe()
34 da9055->dev = &i2c->dev; in da9055_i2c_probe()
35 da9055->chip_irq = i2c->irq; in da9055_i2c_probe()
37 i2c_set_clientdata(i2c, da9055); in da9055_i2c_probe()
39 return da9055_device_init(da9055); in da9055_i2c_probe()
44 struct da9055 *da9055 = i2c_get_clientdata(i2c); in da9055_i2c_remove() local
[all …]
H A Dda9055-core.c354 int da9055_device_init(struct da9055 *da9055) in da9055_device_init() argument
361 pdata->init(da9055); in da9055_device_init()
364 da9055->irq_base = -1; in da9055_device_init()
366 da9055->irq_base = pdata->irq_base; in da9055_device_init()
372 ret = regmap_add_irq_chip(da9055->regmap, da9055->chip_irq, in da9055_device_init()
375 &da9055->irq_data); in da9055_device_init()
379 da9055->irq_base = regmap_irq_chip_get_base(da9055->irq_data); in da9055_device_init()
390 mfd_remove_devices(da9055->dev); in da9055_device_init()
394 void da9055_device_exit(struct da9055 *da9055) in da9055_device_exit() argument
396 regmap_del_irq_chip(da9055->chip_irq, da9055->irq_data); in da9055_device_exit()
[all …]
H A DMakefile152 da9055-objs := da9055-core.o da9055-i2c.o
153 obj-$(CONFIG_MFD_DA9055) += da9055.o
/openbmc/linux/drivers/watchdog/
H A Dda9055_wdt.c33 struct da9055 *da9055; member
56 struct da9055 *da9055 = driver_data->da9055; in da9055_wdt_set_timeout() local
66 ret = da9055_reg_update(da9055, DA9055_REG_CONTROL_B, in da9055_wdt_set_timeout()
71 dev_err(da9055->dev, in da9055_wdt_set_timeout()
84 struct da9055 *da9055 = driver_data->da9055; in da9055_wdt_ping() local
93 return da9055_reg_update(da9055, DA9055_REG_CONTROL_E, in da9055_wdt_ping()
123 struct da9055 *da9055 = dev_get_drvdata(dev->parent); in da9055_wdt_probe() local
132 driver_data->da9055 = da9055; in da9055_wdt_probe()
151 dev_err(da9055->dev, "watchdog_register_device() failed: %d\n", in da9055_wdt_probe()
/openbmc/linux/drivers/hwmon/
H A Dda9055-hwmon.c33 struct da9055 *da9055; member
62 struct da9055 *da9055 = hwmon->da9055; in da9055_adc_manual_read() local
79 dev_err(da9055->dev, in da9055_adc_manual_read()
85 ret = da9055_reg_read(da9055, DA9055_REG_ADC_RES_H); in da9055_adc_manual_read()
92 ret = da9055_reg_read(da9055, DA9055_REG_ADC_RES_L); in da9055_adc_manual_read()
124 static int da9055_enable_auto_mode(struct da9055 *da9055, int channel) in da9055_enable_auto_mode() argument
132 static int da9055_disable_auto_mode(struct da9055 *da9055, int channel) in da9055_disable_auto_mode() argument
148 ret = da9055_enable_auto_mode(hwmon->da9055, channel); in da9055_auto_ch_show()
169 da9055_disable_auto_mode(hwmon->da9055, channel); in da9055_auto_ch_show()
232 ATTRIBUTE_GROUPS(da9055);
[all …]
H A DMakefile66 obj-$(CONFIG_SENSORS_DA9055)+= da9055-hwmon.o
H A DKconfig571 will be called da9055-hwmon.
/openbmc/linux/drivers/gpio/
H A Dgpio-da9055.c29 struct da9055 *da9055; member
40 ret = da9055_reg_read(gpio->da9055, (offset >> 1) + DA9055_REG_GPIO0_1); in da9055_gpio_get()
48 ret = da9055_reg_read(gpio->da9055, DA9055_REG_STATUS_B); in da9055_gpio_get()
53 ret = da9055_reg_read(gpio->da9055, DA9055_REG_GPIO_MODE0_2); in da9055_gpio_get()
66 da9055_reg_update(gpio->da9055, in da9055_gpio_set()
80 return da9055_reg_update(gpio->da9055, (offset >> 1) + in da9055_gpio_direction_input()
97 ret = da9055_reg_update(gpio->da9055, (offset >> 1) + in da9055_gpio_direction_output()
113 struct da9055 *da9055 = gpio->da9055; in da9055_gpio_to_irq() local
115 return regmap_irq_get_virq(da9055->irq_data, in da9055_gpio_to_irq()
141 gpio->da9055 = dev_get_drvdata(pdev->dev.parent); in da9055_gpio_probe()
[all …]
H A DMakefile52 obj-$(CONFIG_GPIO_DA9055) += gpio-da9055.o
H A DKconfig1270 If driver is built as a module it will be called gpio-da9055.
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dda9055.txt7 da9055-gpio : : GPIOs
8 da9055-regulator : : Regulators
9 da9055-onkey : : On key
10 da9055-rtc : : RTC
11 da9055-hwmon : : ADC
12 da9055-watchdog : : Watchdog
18 Documentation/devicetree/bindings/sound/da9055.txt
23 - compatible : Should be "dlg,da9055-pmic"
25 - interrupts: IRQ line info for da9055 chip.
48 pmic: da9055-pmic@5a {
[all …]
/openbmc/linux/drivers/regulator/
H A Dda9055-regulator.c76 struct da9055 *da9055; member
88 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode()
163 return da9055_reg_update(regulator->da9055, volt.reg_b, in da9055_ldo_set_mode()
180 ret = da9055_reg_read(regulator->da9055, info->conf.reg); in da9055_regulator_get_voltage_sel()
188 ret = da9055_reg_read(regulator->da9055, volt.reg_a); in da9055_regulator_get_voltage_sel()
190 ret = da9055_reg_read(regulator->da9055, volt.reg_b); in da9055_regulator_get_voltage_sel()
227 ret = da9055_reg_read(regulator->da9055, info->conf.reg); in da9055_regulator_set_voltage_sel()
512 struct da9055 *da9055 = dev_get_drvdata(pdev->dev.parent); in da9055_regulator_probe() local
527 regulator->da9055 = da9055; in da9055_regulator_probe()
528 config.dev = da9055->dev; in da9055_regulator_probe()
[all …]
H A DMakefile40 obj-$(CONFIG_REGULATOR_DA9055) += da9055-regulator.o
H A DKconfig301 will be called da9055-regulator.
/openbmc/linux/drivers/input/misc/
H A Dda9055_onkey.c18 struct da9055 *da9055; member
27 key_stat = da9055_reg_read(onkey->da9055, DA9055_REG_STATUS_A); in da9055_onkey_query()
29 dev_err(onkey->da9055->dev, in da9055_onkey_query()
73 struct da9055 *da9055 = dev_get_drvdata(pdev->dev.parent); in da9055_onkey_probe() local
95 onkey->da9055 = da9055; in da9055_onkey_probe()
140 irq = regmap_irq_get_virq(onkey->da9055->irq_data, irq); in da9055_onkey_remove()
/openbmc/linux/sound/soc/codecs/
H A Dda9055.c1122 if (da9055->mclk_rate) { in da9055_hw_params()
1136 if (da9055->mclk_rate && (da9055->mclk_rate != sysclk)) { in da9055_hw_params()
1138 if (!da9055->master) { in da9055_hw_params()
1180 (da9055->master != mode)) in da9055_set_dai_fmt()
1183 da9055->master = mode; in da9055_set_dai_fmt()
1254 da9055->mclk_rate = freq; in da9055_set_dai_sysclk()
1426 if (da9055->pdata) { in da9055_probe()
1477 struct da9055_priv *da9055; in da9055_i2c_probe() local
1483 if (!da9055) in da9055_i2c_probe()
1487 da9055->pdata = pdata; in da9055_i2c_probe()
[all …]
H A DMakefile113 snd-soc-da9055-objs := da9055.o
499 obj-$(CONFIG_SND_SOC_DA9055) += snd-soc-da9055.o
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dda9055.txt9 Documentation/devicetree/bindings/mfd/da9055.txt
13 - compatible: "dlg,da9055-codec"
19 codec: da9055-codec@1a {
20 compatible = "dlg,da9055-codec";
/openbmc/linux/Documentation/hwmon/
H A Dda9055.rst1 Kernel driver da9055
7 Prefix: 'da9055'
H A Dindex.rst59 da9055

12