Home
last modified time | relevance | path

Searched full:max8998 (Results 1 – 25 of 25) sorted by relevance

/Linux-v5.4/drivers/mfd/
Dmax8998-irq.c3 // Interrupt controller support for MAX8998
12 #include <linux/mfd/max8998-private.h>
95 irq_to_max8998_irq(struct max8998_dev *max8998, struct irq_data *data) in irq_to_max8998_irq() argument
102 struct max8998_dev *max8998 = irq_data_get_irq_chip_data(data); in max8998_irq_lock() local
104 mutex_lock(&max8998->irqlock); in max8998_irq_lock()
109 struct max8998_dev *max8998 = irq_data_get_irq_chip_data(data); in max8998_irq_sync_unlock() local
112 for (i = 0; i < ARRAY_SIZE(max8998->irq_masks_cur); i++) { in max8998_irq_sync_unlock()
117 if (max8998->irq_masks_cur[i] != max8998->irq_masks_cache[i]) { in max8998_irq_sync_unlock()
118 max8998->irq_masks_cache[i] = max8998->irq_masks_cur[i]; in max8998_irq_sync_unlock()
119 max8998_write_reg(max8998->i2c, MAX8998_REG_IRQM1 + i, in max8998_irq_sync_unlock()
[all …]
Dmax8998.c3 // max8998.c - mfd core driver for the Maxim 8998
19 #include <linux/mfd/max8998.h>
20 #include <linux/mfd/max8998-private.h>
26 .name = "max8998-pmic",
28 .name = "max8998-rtc",
30 .name = "max8998-battery",
44 struct max8998_dev *max8998 = i2c_get_clientdata(i2c); in max8998_read_reg() local
47 mutex_lock(&max8998->iolock); in max8998_read_reg()
49 mutex_unlock(&max8998->iolock); in max8998_read_reg()
61 struct max8998_dev *max8998 = i2c_get_clientdata(i2c); in max8998_bulk_read() local
[all …]
DMakefile170 obj-$(CONFIG_MFD_MAX8998) += max8998.o max8998-irq.o
Dmax8997-irq.c8 // This driver is based on max8998-irq.c
Dmax8997.c8 // This driver is based on max8998.c
DKconfig848 bool "Maxim Semiconductor MAX8998/National LP3974 PMIC Support"
853 Say yes here to add support for Maxim Semiconductor MAX8998 and
/Linux-v5.4/drivers/regulator/
Dmax8998.c3 // max8998.c - Voltage regulator driver for the Maxim 8998
22 #include <linux/mfd/max8998.h>
23 #include <linux/mfd/max8998-private.h>
75 struct max8998_data *max8998 = rdev_get_drvdata(rdev); in max8998_ldo_is_enabled() local
76 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_is_enabled()
93 struct max8998_data *max8998 = rdev_get_drvdata(rdev); in max8998_ldo_enable() local
94 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_enable()
106 struct max8998_data *max8998 = rdev_get_drvdata(rdev); in max8998_ldo_disable() local
107 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_disable()
121 struct max8998_data *max8998 = rdev_get_drvdata(rdev); in max8998_get_voltage_register() local
[all …]
DMakefile72 obj-$(CONFIG_REGULATOR_MAX8998) += max8998.o
Dmax8997-regulator.c8 // This driver is based on max8998.c
/Linux-v5.4/drivers/power/supply/
Dmax8998_charger.c14 #include <linux/mfd/max8998.h>
15 #include <linux/mfd/max8998-private.h>
33 struct max8998_battery_data *max8998 = power_supply_get_drvdata(psy); in max8998_battery_get_property() local
34 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_battery_get_property()
77 struct max8998_battery_data *max8998; in max8998_battery_probe() local
86 max8998 = devm_kzalloc(&pdev->dev, sizeof(struct max8998_battery_data), in max8998_battery_probe()
88 if (!max8998) in max8998_battery_probe()
91 max8998->dev = &pdev->dev; in max8998_battery_probe()
92 max8998->iodev = iodev; in max8998_battery_probe()
93 platform_set_drvdata(pdev, max8998); in max8998_battery_probe()
[all …]
DKconfig538 tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
542 platform data of MAX8998/LP3974 PMICs.
/Linux-v5.4/Documentation/devicetree/bindings/mfd/
Dmax8998.txt1 * Maxim MAX8998, National/TI LP3974 multi-function device
3 The Maxim MAX8998 is a multi-function device which includes voltage/current
18 - "maxim,max8998" for Maxim MAX8998
26 - max8998,pmic-buck1-dvs-gpios: GPIO specifiers for two host gpios used
29 - max8998,pmic-buck2-dvs-gpio: GPIO specifier for host gpio used
32 - max8998,pmic-buck1-default-dvs-idx: Default voltage setting selected from
36 - max8998,pmic-buck2-default-dvs-idx: Default voltage setting selected from
40 - max8998,pmic-buck-voltage-lock: If present, disallows changing of
43 Additional properties required if max8998,pmic-buck1-dvs-gpios is defined:
44 - max8998,pmic-buck1-dvs-voltage: An array of 4 voltage values in microvolts
[all …]
/Linux-v5.4/include/linux/mfd/
Dmax8998-private.h3 * max8998-private.h - Voltage regulator driver for the Maxim 8998
91 /* MAX8998 various variants */
94 TYPE_LP3974, /* National version of MAX8998 */
125 * struct max8998_dev - max8998 master device for sub-drivers
132 * @irq_base: base IRQ number for max8998, required for IRQs
133 * @irq: generic IRQ number for max8998
134 * @ono: power onoff IRQ number for max8998
137 * @type: indicate which max8998 "variant" is used
157 int max8998_irq_init(struct max8998_dev *max8998);
158 void max8998_irq_exit(struct max8998_dev *max8998);
[all …]
Dmax8998.h3 * max8998.h - Voltage regulator driver for the Maxim 8998
60 * @irq_base: base IRQ number for max8998, required for IRQs
61 * @ono: power onoff IRQ number for max8998
Dmax8997.h8 * This driver is based on max8998.h
/Linux-v5.4/drivers/rtc/
Drtc-max8998.c3 // RTC driver for Maxim MAX8998
16 #include <linux/mfd/max8998.h>
17 #include <linux/mfd/max8998-private.h>
68 struct max8998_dev *max8998; member
249 struct max8998_dev *max8998 = dev_get_drvdata(pdev->dev.parent); in max8998_rtc_probe() local
250 struct max8998_platform_data *pdata = max8998->pdata; in max8998_rtc_probe()
260 info->max8998 = max8998; in max8998_rtc_probe()
261 info->rtc = max8998->rtc; in max8998_rtc_probe()
265 info->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8998-rtc", in max8998_rtc_probe()
274 if (!max8998->irq_domain) in max8998_rtc_probe()
[all …]
DMakefile105 obj-$(CONFIG_RTC_DRV_MAX8998) += rtc-max8998.o
DKconfig347 tristate "Maxim MAX8998"
351 RTC of Maxim MAX8998 PMIC.
354 will be called rtc-max8998.
Drtc-max8997.c7 // based on rtc-max8998.c
/Linux-v5.4/arch/arm/boot/dts/
Ds5pv210-aquila.dts79 max8998,pmic-buck1-default-dvs-idx = <0>;
80 max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>,
82 max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>,
85 max8998,pmic-buck2-default-dvs-idx = <0>;
86 max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>;
87 max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
Ds5pv210-aries.dtsi69 compatible = "maxim,max8998";
74 max8998,pmic-buck1-default-dvs-idx = <1>;
75 max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>,
77 max8998,pmic-buck1-dvs-voltage = <1275000>, <1200000>,
80 max8998,pmic-buck2-default-dvs-idx = <0>;
81 max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>;
82 max8998,pmic-buck2-dvs-voltage = <1100000>, <1000000>;
Ds5pv210-goni.dts90 max8998,pmic-buck1-default-dvs-idx = <0>;
91 max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>,
93 max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>,
96 max8998,pmic-buck2-default-dvs-idx = <0>;
97 max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>;
98 max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
Dexynos4210-universal_c210.dts336 max8998,pmic-buck1-default-dvs-idx = <0>;
337 max8998,pmic-buck1-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
339 max8998,pmic-buck1-dvs-voltage = <1100000>, <1000000>,
342 max8998,pmic-buck2-default-dvs-idx = <0>;
343 max8998,pmic-buck2-dvs-gpio = <&gpe2 0 GPIO_ACTIVE_HIGH>;
344 max8998,pmic-buck2-dvs-voltage = <1200000>, <1100000>;
/Linux-v5.4/Documentation/devicetree/bindings/
Dvendor-prefixes.yaml20 "^(keypad|m25p|max8952|max8997|max8998|mpmc),.*": true
/Linux-v5.4/include/
DKbuild328 header-test- += linux/mfd/max8998-private.h