Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/mfd/
Dmax8997.c3 // max8997.c - mfd core driver for the Maxim 8966 and 8997
20 #include <linux/mfd/max8997.h>
21 #include <linux/mfd/max8997-private.h>
30 { .name = "max8997-pmic", },
31 { .name = "max8997-rtc", },
32 { .name = "max8997-battery", },
33 { .name = "max8997-haptic", },
34 { .name = "max8997-muic", },
35 { .name = "max8997-led", .id = 1 },
36 { .name = "max8997-led", .id = 2 },
[all …]
Dmax8997-irq.c3 // max8997-irq.c - Interrupt controller support for MAX8997
13 #include <linux/mfd/max8997.h>
14 #include <linux/mfd/max8997-private.h>
30 static struct i2c_client *get_i2c(struct max8997_dev *max8997, in get_i2c() argument
35 return max8997->i2c; in get_i2c()
39 return max8997->muic; in get_i2c()
41 return max8997->i2c; in get_i2c()
43 return max8997->i2c; in get_i2c()
102 struct max8997_dev *max8997 = irq_data_get_irq_chip_data(data); in max8997_irq_lock() local
104 mutex_lock(&max8997->irqlock); in max8997_irq_lock()
[all …]
DMakefile169 obj-$(CONFIG_MFD_MAX8997) += max8997.o max8997-irq.o
Dmax77686.c9 //This driver is based on max8997.c
/Linux-v5.4/Documentation/devicetree/bindings/regulator/
Dmax8997-regulator.txt1 * Maxim MAX8997 Voltage and Current Regulator
3 The Maxim MAX8997 is a multi-function device which includes voltage and
7 describes the bindings for 'pmic' sub-block of max8997.
10 - compatible: Should be "maxim,max8997-pmic".
13 - max8997,pmic-buck1-dvs-voltage: A set of 8 voltage values in micro-volt (uV)
17 - max8997,pmic-buck2-dvs-voltage: A set of 8 voltage values in micro-volt (uV)
21 - max8997,pmic-buck5-dvs-voltage: A set of 8 voltage values in micro-volt (uV)
25 [1] If none of the 'max8997,pmic-buck[1/2/5]-uses-gpio-dvs' optional
26 property is specified, the 'max8997,pmic-buck[1/2/5]-dvs-voltage'
30 If either of the 'max8997,pmic-buck[1/2/5]-uses-gpio-dvs' optional
[all …]
/Linux-v5.4/drivers/regulator/
Dmax8997-regulator.c3 // max8997.c - Regulator driver for the Maxim 8997/8966
19 #include <linux/mfd/max8997.h>
20 #include <linux/mfd/max8997-private.h>
49 static inline void max8997_set_gpio(struct max8997_data *max8997) in max8997_set_gpio() argument
51 int set3 = (max8997->buck125_gpioindex) & 0x1; in max8997_set_gpio()
52 int set2 = ((max8997->buck125_gpioindex) >> 1) & 0x1; in max8997_set_gpio()
53 int set1 = ((max8997->buck125_gpioindex) >> 2) & 0x1; in max8997_set_gpio()
55 gpio_set_value(max8997->buck125_gpios[0], set1); in max8997_set_gpio()
56 gpio_set_value(max8997->buck125_gpios[1], set2); in max8997_set_gpio()
57 gpio_set_value(max8997->buck125_gpios[2], set3); in max8997_set_gpio()
[all …]
DMakefile71 obj-$(CONFIG_REGULATOR_MAX8997) += max8997-regulator.o
/Linux-v5.4/drivers/leds/
Dleds-max8997.c3 * leds-max8997.c - LED class driver for MAX8997 LEDs.
13 #include <linux/mfd/max8997.h>
14 #include <linux/mfd/max8997-private.h>
231 ATTRIBUTE_GROUPS(max8997);
251 snprintf(name, sizeof(name), "max8997-led%d", pdev->id); in max8997_led_probe()
289 .name = "max8997-led",
297 MODULE_DESCRIPTION("MAX8997 LED driver");
299 MODULE_ALIAS("platform:max8997-led");
DMakefile67 obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o
DKconfig645 tristate "LED support for MAX8997 PMIC"
649 MAXIM MAX8997 PMIC.
/Linux-v5.4/drivers/rtc/
Drtc-max8997.c3 // RTC driver for Maxim MAX8997
17 #include <linux/mfd/max8997-private.h>
66 struct max8997_dev *max8997; member
206 ret = max8997_read_reg(info->max8997->i2c, MAX8997_REG_STATUS1, &val); in max8997_rtc_read_alarm()
450 struct max8997_dev *max8997 = dev_get_drvdata(pdev->dev.parent); in max8997_rtc_probe() local
461 info->max8997 = max8997; in max8997_rtc_probe()
462 info->rtc = max8997->rtc; in max8997_rtc_probe()
478 info->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8997-rtc", in max8997_rtc_probe()
487 virq = irq_create_mapping(max8997->irq_domain, MAX8997_PMICIRQ_RTCA1); in max8997_rtc_probe()
515 { "max8997-rtc", 0 },
[all …]
/Linux-v5.4/drivers/extcon/
Dextcon-max8997.c3 // extcon-max8997.c - MAX8997 extcon driver to support MAX8997 MUIC
16 #include <linux/mfd/max8997.h>
17 #include <linux/mfd/max8997-private.h>
21 #define DEV_NAME "max8997-muic"
154 * @info: the instance including private data of max8997 MUIC
186 * @info: the instance including private data of max8997 MUIC
190 * The max8997 MUIC device share outside H/W line among a varity of cables,
234 * @info: the instance including private data of max8997 MUIC
629 struct max8997_dev *max8997 = dev_get_drvdata(pdev->dev.parent); in max8997_muic_probe() local
630 struct max8997_platform_data *pdata = dev_get_platdata(max8997->dev); in max8997_muic_probe()
[all …]
DKconfig123 tristate "Maxim MAX8997 EXTCON Support"
127 Maxim MAX8997 PMIC. The MAX8997 MUIC is a USB port accessory
DMakefile20 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o
/Linux-v5.4/arch/arm/boot/dts/
Dexynos4210-trats.dts282 compatible = "maxim,max8997-pmic";
289 max8997,pmic-buck1-uses-gpio-dvs;
290 max8997,pmic-buck2-uses-gpio-dvs;
291 max8997,pmic-buck5-uses-gpio-dvs;
293 max8997,pmic-ignore-gpiodvs-side-effect;
294 max8997,pmic-buck125-default-dvs-idx = <0>;
296 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
300 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
305 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>,
310 max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>,
Dexynos4210-origen.dts155 compatible = "maxim,max8997-pmic";
162 max8997,pmic-buck1-dvs-voltage = <1350000>;
163 max8997,pmic-buck2-dvs-voltage = <1100000>;
164 max8997,pmic-buck5-dvs-voltage = <1200000>;
299 max8997_irq: max8997-irq {
/Linux-v5.4/include/linux/mfd/
Dmax8997-private.h3 * max8997-private.h - Voltage regulator driver for the Maxim 8997
184 /* MAX8997-MUIC STATUS1 register */
192 /* MAX8997-MUIC STATUS2 register */
204 /* MAX8997-MUIC STATUS3 register */
208 /* MAX8997-MUIC CONTROL1 register */
399 extern int max8997_irq_init(struct max8997_dev *max8997);
400 extern void max8997_irq_exit(struct max8997_dev *max8997);
401 extern int max8997_irq_resume(struct max8997_dev *max8997);
Dmax8997.h3 * max8997.h - Driver for the Maxim 8997/8966
10 * MAX8997 has PMIC, MUIC, HAPTIC, RTC, FLASH, and Fuel Gauge devices.
22 /* MAX8997/8966 regulator IDs */
76 * used for initializing registers of MAX8997 MUIC device
153 * The number of LED devices for MAX8997 is two
Dmax77686.h8 * This driver is based on max8997.h
Dmax77693.h10 * This driver is based on max8997.h
Dmax14577.h9 * This driver is based on max8997.h
/Linux-v5.4/drivers/input/misc/
Dmax8997_haptic.c3 * MAX8997-haptic controller driver
17 #include <linux/mfd/max8997-private.h>
18 #include <linux/mfd/max8997.h>
287 "max8997-haptic"); in max8997_haptic_probe()
319 input_dev->name = "max8997-haptic"; in max8997_haptic_probe()
388 { "max8997-haptic", 0 },
395 .name = "max8997-haptic",
DKconfig225 tristate "MAXIM MAX8997 haptic controller support"
230 on MAXIM MAX8997 chip. This driver supports ff-memless interface
234 module will be called max8997-haptic.
/Linux-v5.4/drivers/power/supply/
Dmax8997_charger.c13 #include <linux/mfd/max8997.h>
14 #include <linux/mfd/max8997-private.h>
159 { "max8997-battery", 0 },
166 .name = "max8997-battery",
DKconfig371 to operate with a single lithium cell. MAX8997 and MAX8966 are
531 tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
535 platform data of MAX8997/LP3974 PMICs.

12