Home
last modified time | relevance | path

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

12

/linux-6.6.21/include/linux/mfd/da9055/
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
64 return regmap_raw_write(da9055->regmap, reg, val, reg_cnt); in da9055_group_write()
67 static inline int da9055_reg_update(struct da9055 *da9055, unsigned char reg, in da9055_reg_update() argument
[all …]
Dpdata.h9 struct da9055;
19 int (*init) (struct da9055 *da9055);
/linux-6.6.21/drivers/rtc/
Drtc-da9055.c20 struct da9055 *da9055; member
28 ret = da9055_reg_update(rtc->da9055, DA9055_REG_ALARM_Y, in da9055_rtc_enable_alarm()
32 dev_err(rtc->da9055->dev, "Failed to enable ALM: %d\n", in da9055_rtc_enable_alarm()
36 ret = da9055_reg_update(rtc->da9055, DA9055_REG_ALARM_Y, in da9055_rtc_enable_alarm()
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
61 ret = da9055_group_read(da9055, DA9055_REG_ALARM_MI, 5, v); in da9055_read_alarm()
63 dev_err(da9055->dev, "Failed to group read ALM: %d\n", ret); in da9055_read_alarm()
77 static int da9055_set_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_set_alarm() argument
85 ret = da9055_reg_update(da9055, DA9055_REG_ALARM_MI, in da9055_set_alarm()
[all …]
DMakefile46 obj-$(CONFIG_RTC_DRV_DA9055) += rtc-da9055.o
DKconfig1121 will be called rtc-da9055
/linux-6.6.21/drivers/mfd/
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()
26 da9055->regmap = devm_regmap_init_i2c(i2c, &da9055_regmap_config); 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()
[all …]
Dda9055-core.c354 int da9055_device_init(struct da9055 *da9055) in da9055_device_init() argument
356 struct da9055_pdata *pdata = dev_get_platdata(da9055->dev); in da9055_device_init()
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()
368 ret = da9055_group_write(da9055, DA9055_REG_EVENT_A, 3, clear_events); in da9055_device_init()
372 ret = regmap_add_irq_chip(da9055->regmap, da9055->chip_irq, in da9055_device_init()
374 da9055->irq_base, &da9055_regmap_irq_chip, 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()
[all …]
DMakefile152 da9055-objs := da9055-core.o da9055-i2c.o
153 obj-$(CONFIG_MFD_DA9055) += da9055.o
/linux-6.6.21/drivers/watchdog/
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()
/linux-6.6.21/drivers/hwmon/
Dda9055-hwmon.c33 struct da9055 *da9055; member
62 struct da9055 *da9055 = hwmon->da9055; in da9055_adc_manual_read() local
72 ret = da9055_reg_write(da9055, DA9055_REG_ADC_MAN, mux_sel); in da9055_adc_manual_read()
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
127 return da9055_reg_update(da9055, DA9055_REG_ADC_CONT, 1 << channel, in da9055_enable_auto_mode()
132 static int da9055_disable_auto_mode(struct da9055 *da9055, int channel) in da9055_disable_auto_mode() argument
135 return da9055_reg_update(da9055, DA9055_REG_ADC_CONT, 1 << channel, 0); in da9055_disable_auto_mode()
[all …]
DMakefile65 obj-$(CONFIG_SENSORS_DA9055)+= da9055-hwmon.o
DKconfig558 will be called da9055-hwmon.
/linux-6.6.21/drivers/gpio/
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 …]
DMakefile52 obj-$(CONFIG_GPIO_DA9055) += gpio-da9055.o
DKconfig1262 If driver is built as a module it will be called gpio-da9055.
/linux-6.6.21/Documentation/devicetree/bindings/mfd/
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.
26 - interrupt-controller: da9055 has internal IRQs (has own IRQ domain).
[all …]
/linux-6.6.21/drivers/regulator/
Dda9055-regulator.c76 struct da9055 *da9055; member
88 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode()
126 return da9055_reg_update(regulator->da9055, info->mode.reg, in da9055_buck_set_mode()
136 ret = da9055_reg_read(regulator->da9055, info->volt.reg_b); in da9055_ldo_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()
212 ret = da9055_reg_update(regulator->da9055, info->conf.reg, in da9055_regulator_set_voltage_sel()
218 return da9055_reg_update(regulator->da9055, info->volt.reg_a, in da9055_regulator_set_voltage_sel()
[all …]
DMakefile40 obj-$(CONFIG_REGULATOR_DA9055) += da9055-regulator.o
DKconfig301 will be called da9055-regulator.
/linux-6.6.21/drivers/input/misc/
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()
/linux-6.6.21/sound/soc/codecs/
Dda9055.c1052 struct da9055_priv *da9055 = snd_soc_component_get_drvdata(component); in da9055_hw_params() local
1122 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()
1160 struct da9055_priv *da9055 = snd_soc_component_get_drvdata(component); in da9055_set_dai_fmt() local
1180 (da9055->master != mode)) in da9055_set_dai_fmt()
1183 da9055->master = mode; in da9055_set_dai_fmt()
1240 struct da9055_priv *da9055 = snd_soc_component_get_drvdata(component); in da9055_set_dai_sysclk() local
1254 da9055->mclk_rate = freq; in da9055_set_dai_sysclk()
1283 struct da9055_priv *da9055 = snd_soc_component_get_drvdata(component); in da9055_set_dai_pll() local
[all …]
DMakefile113 snd-soc-da9055-objs := da9055.o
499 obj-$(CONFIG_SND_SOC_DA9055) += snd-soc-da9055.o
/linux-6.6.21/Documentation/devicetree/bindings/sound/
Dda9055.txt9 Documentation/devicetree/bindings/mfd/da9055.txt
13 - compatible: "dlg,da9055-codec"
19 codec: da9055-codec@1a {
20 compatible = "dlg,da9055-codec";
/linux-6.6.21/Documentation/hwmon/
Dda9055.rst1 Kernel driver da9055
7 Prefix: 'da9055'
Dindex.rst58 da9055

12