Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/mfd/
Dmax8997.c3 // max8997.c - mfd core driver for the Maxim 8966 and 8997
21 #include <linux/mfd/max8997.h>
22 #include <linux/mfd/max8997-private.h>
31 { .name = "max8997-pmic", },
32 { .name = "max8997-rtc", },
33 { .name = "max8997-battery", },
34 { .name = "max8997-haptic", },
35 { .name = "max8997-muic", },
36 { .name = "max8997-led", .id = 1 },
37 { .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 …]
DMakefile173 obj-$(CONFIG_MFD_MAX8997) += max8997.o max8997-irq.o
Dmax77686.c9 //This driver is based on max8997.c
/Linux-v6.1/Documentation/devicetree/bindings/regulator/
Dmaxim,max8997.yaml4 $id: http://devicetree.org/schemas/regulator/maxim,max8997.yaml#
7 title: Maxim MAX8997 Power Management IC
13 The Maxim MAX8997 is a Power Management IC which includes voltage and current
22 const: maxim,max8997-pmic
33 max8997,pmic-buck1-dvs-voltage:
40 If none of max8997,pmic-buck[1/2/5]-uses-gpio-dvs optional property is
41 specified, the max8997,pmic-buck[1/2/5]-dvs-voltage property should
45 max8997,pmic-buck2-dvs-voltage:
52 If none of max8997,pmic-buck[1/2/5]-uses-gpio-dvs optional property is
53 specified, the max8997,pmic-buck[1/2/5]-dvs-voltage property should
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/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");
DMakefile58 obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o
DKconfig668 tristate "LED support for MAX8997 PMIC"
672 MAXIM MAX8997 PMIC.
/Linux-v6.1/drivers/extcon/
Dextcon-max8997.c3 // extcon-max8997.c - MAX8997 extcon driver to support MAX8997 MUIC
17 #include <linux/mfd/max8997.h>
18 #include <linux/mfd/max8997-private.h>
22 #define DEV_NAME "max8997-muic"
157 * @info: the instance including private data of max8997 MUIC
189 * @info: the instance including private data of max8997 MUIC
193 * The max8997 MUIC device share outside H/W line among a varity of cables,
237 * @info: the instance including private data of max8997 MUIC
634 struct max8997_dev *max8997 = dev_get_drvdata(pdev->dev.parent); in max8997_muic_probe() local
635 struct max8997_platform_data *pdata = dev_get_platdata(max8997->dev); in max8997_muic_probe()
[all …]
DKconfig117 tristate "Maxim MAX8997 EXTCON Support"
121 Maxim MAX8997 PMIC. The MAX8997 MUIC is a USB port accessory
DMakefile19 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o
/Linux-v6.1/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-v6.1/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-v6.1/arch/arm/boot/dts/
Dexynos4210-trats.dts138 /* Workaround for missing clock on max8997 PMIC */
288 compatible = "maxim,max8997-pmic";
294 max8997,pmic-buck1-uses-gpio-dvs;
295 max8997,pmic-buck2-uses-gpio-dvs;
296 max8997,pmic-buck5-uses-gpio-dvs;
298 max8997,pmic-ignore-gpiodvs-side-effect;
299 max8997,pmic-buck125-default-dvs-idx = <0>;
301 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
305 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
310 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>,
[all …]
Dexynos4210-origen.dts107 /* Workaround for missing clock on max8997 PMIC */
177 compatible = "maxim,max8997-pmic";
184 max8997,pmic-buck1-dvs-voltage = <1350000>;
185 max8997,pmic-buck2-dvs-voltage = <1100000>;
186 max8997,pmic-buck5-dvs-voltage = <1200000>;
321 max8997_irq: max8997-irq-pins {
Dexynos4210-i9100.dts245 /* Workaround for missing clock on max8997 PMIC */
407 compatible = "maxim,max8997-pmic";
413 max8997,pmic-buck1-uses-gpio-dvs;
414 max8997,pmic-buck2-uses-gpio-dvs;
415 max8997,pmic-buck5-uses-gpio-dvs;
417 max8997,pmic-ignore-gpiodvs-side-effect;
418 max8997,pmic-buck125-default-dvs-idx = <0>;
420 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
424 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
429 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>,
[all …]
/Linux-v6.1/drivers/input/misc/
Dmax8997_haptic.c3 * MAX8997-haptic controller driver
17 #include <linux/mfd/max8997-private.h>
18 #include <linux/mfd/max8997.h>
282 "max8997-haptic"); in max8997_haptic_probe()
314 input_dev->name = "max8997-haptic"; in max8997_haptic_probe()
383 { "max8997-haptic", 0 },
390 .name = "max8997-haptic",
DKconfig236 tristate "MAXIM MAX8997 haptic controller support"
241 on MAXIM MAX8997 chip. This driver supports ff-memless interface
245 module will be called max8997-haptic.
/Linux-v6.1/drivers/power/supply/
Dmax8997_charger.c14 #include <linux/mfd/max8997.h>
15 #include <linux/mfd/max8997-private.h>
244 charger->edev = extcon_get_extcon_dev("max8997-muic"); in max8997_battery_probe()
247 "couldn't get extcon device: max8997-muic\n"); in max8997_battery_probe()
271 { "max8997-battery", 0 },
278 .name = "max8997-battery",
DKconfig404 to operate with a single lithium cell. MAX8997 and MAX8966 are
407 Supported devices: max8966, max8997, max17042, max17047, max17050,
587 tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
592 platform data of MAX8997/LP3974 PMICs.

12