/Linux-v5.15/drivers/mfd/ |
D | max8997.c | 3 // 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 …]
|
D | max8997-irq.c | 3 // 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 …]
|
D | Makefile | 170 obj-$(CONFIG_MFD_MAX8997) += max8997.o max8997-irq.o
|
D | max77686.c | 9 //This driver is based on max8997.c
|
/Linux-v5.15/Documentation/devicetree/bindings/regulator/ |
D | max8997-regulator.txt | 1 * 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.15/drivers/regulator/ |
D | max8997-regulator.c | 3 // 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-v5.15/drivers/leds/ |
D | leds-max8997.c | 3 * 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");
|
D | Makefile | 59 obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o
|
D | Kconfig | 675 tristate "LED support for MAX8997 PMIC" 679 MAXIM MAX8997 PMIC.
|
/Linux-v5.15/drivers/extcon/ |
D | extcon-max8997.c | 3 // 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 …]
|
D | Kconfig | 115 tristate "Maxim MAX8997 EXTCON Support" 119 Maxim MAX8997 PMIC. The MAX8997 MUIC is a USB port accessory
|
D | Makefile | 19 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o
|
/Linux-v5.15/drivers/rtc/ |
D | rtc-max8997.c | 3 // 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.15/include/linux/mfd/ |
D | max8997-private.h | 3 * 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);
|
D | max8997.h | 3 * 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
|
D | max77693.h | 10 * This driver is based on max8997.h
|
D | max77686.h | 8 * This driver is based on max8997.h
|
D | max14577.h | 9 * This driver is based on max8997.h
|
/Linux-v5.15/arch/arm/boot/dts/ |
D | exynos4210-trats.dts | 137 /* Workaround for missing clock on max8997 PMIC */ 287 compatible = "maxim,max8997-pmic"; 293 max8997,pmic-buck1-uses-gpio-dvs; 294 max8997,pmic-buck2-uses-gpio-dvs; 295 max8997,pmic-buck5-uses-gpio-dvs; 297 max8997,pmic-ignore-gpiodvs-side-effect; 298 max8997,pmic-buck125-default-dvs-idx = <0>; 300 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>, 304 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>, 309 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>, [all …]
|
D | exynos4210-origen.dts | 105 /* Workaround for missing clock on max8997 PMIC */ 175 compatible = "maxim,max8997-pmic"; 182 max8997,pmic-buck1-dvs-voltage = <1350000>; 183 max8997,pmic-buck2-dvs-voltage = <1100000>; 184 max8997,pmic-buck5-dvs-voltage = <1200000>; 319 max8997_irq: max8997-irq {
|
D | exynos4210-i9100.dts | 244 /* Workaround for missing clock on max8997 PMIC */ 406 compatible = "maxim,max8997-pmic"; 412 max8997,pmic-buck1-uses-gpio-dvs; 413 max8997,pmic-buck2-uses-gpio-dvs; 414 max8997,pmic-buck5-uses-gpio-dvs; 416 max8997,pmic-ignore-gpiodvs-side-effect; 417 max8997,pmic-buck125-default-dvs-idx = <0>; 419 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>, 423 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>, 428 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>, [all …]
|
/Linux-v5.15/drivers/input/misc/ |
D | max8997_haptic.c | 3 * 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",
|
D | Kconfig | 236 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-v5.15/drivers/power/supply/ |
D | max8997_charger.c | 14 #include <linux/mfd/max8997.h> 15 #include <linux/mfd/max8997-private.h> 250 charger->edev = extcon_get_extcon_dev("max8997-muic"); in max8997_battery_probe() 277 { "max8997-battery", 0 }, 284 .name = "max8997-battery",
|
D | Kconfig | 388 to operate with a single lithium cell. MAX8997 and MAX8966 are 556 tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver" 561 platform data of MAX8997/LP3974 PMICs.
|