/openbmc/linux/drivers/mfd/ |
H A D | max8997.c | 3 // 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 …]
|
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | maxim,max8997.yaml | 4 $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 …]
|
/openbmc/linux/drivers/regulator/ |
H A 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 …]
|
/openbmc/linux/drivers/leds/ |
H A 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); 246 snprintf(name, sizeof(name), "max8997-led%d", pdev->id); in max8997_led_probe() 284 .name = "max8997-led", 292 MODULE_DESCRIPTION("MAX8997 LED driver"); 294 MODULE_ALIAS("platform:max8997-led");
|
/openbmc/linux/drivers/extcon/ |
H A 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 …]
|
H A D | Kconfig | 118 tristate "Maxim MAX8997 EXTCON Support" 123 Maxim MAX8997 PMIC. The MAX8997 MUIC is a USB port accessory
|
H A D | Makefile | 19 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o
|
/openbmc/linux/drivers/rtc/ |
H A 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 …]
|
/openbmc/linux/include/linux/mfd/ |
H A 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);
|
H A 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 150 * The number of LED devices for MAX8997 is two
|
H A D | max77686.h | 8 * This driver is based on max8997.h
|
H A D | max77693.h | 10 * This driver is based on max8997.h
|
H A D | max14577.h | 9 * This driver is based on max8997.h
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos4210-trats.dts | 144 /* Workaround for missing clock on max8997 PMIC */ 292 compatible = "maxim,max8997-pmic"; 298 max8997,pmic-buck1-uses-gpio-dvs; 299 max8997,pmic-buck2-uses-gpio-dvs; 300 max8997,pmic-buck5-uses-gpio-dvs; 302 max8997,pmic-ignore-gpiodvs-side-effect; 303 max8997,pmic-buck125-default-dvs-idx = <0>; 305 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>, 309 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>, 314 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>, [all …]
|
H A D | exynos4210-i9100.dts | 251 /* Workaround for missing clock on max8997 PMIC */ 413 compatible = "maxim,max8997-pmic"; 419 max8997,pmic-buck1-uses-gpio-dvs; 420 max8997,pmic-buck2-uses-gpio-dvs; 421 max8997,pmic-buck5-uses-gpio-dvs; 423 max8997,pmic-ignore-gpiodvs-side-effect; 424 max8997,pmic-buck125-default-dvs-idx = <0>; 426 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>, 430 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>, 435 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>, [all …]
|
H A D | exynos4210-origen.dts | 112 /* Workaround for missing clock on max8997 PMIC */ 182 compatible = "maxim,max8997-pmic"; 189 max8997,pmic-buck1-dvs-voltage = <1350000>; 190 max8997,pmic-buck2-dvs-voltage = <1100000>; 191 max8997,pmic-buck5-dvs-voltage = <1200000>; 326 max8997_irq: max8997-irq-pins {
|
/openbmc/u-boot/board/samsung/trats/ |
H A D | trats.c | 223 ret = pmic_get("max8997-pmic", &dev); in s5pc210_phy_control() 232 puts("MAX8997 setting error!\n"); in s5pc210_phy_control() 239 puts("MAX8997 setting error!\n"); in s5pc210_phy_control() 246 puts("MAX8997 setting error!\n"); in s5pc210_phy_control() 254 puts("MAX8997 setting error!\n"); in s5pc210_phy_control() 261 puts("MAX8997 setting error!\n"); in s5pc210_phy_control() 268 puts("MAX8997 setting error!\n"); in s5pc210_phy_control() 430 puts("MAX8997 LDO setting error!\n"); in lcd_power() 454 puts("MAX8997 LDO setting error!\n"); in mipi_power()
|
/openbmc/linux/drivers/power/supply/ |
H A D | max8997_charger.c | 14 #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",
|
/openbmc/linux/drivers/input/misc/ |
H A D | max8997_haptic.c | 3 * MAX8997-haptic controller driver 17 #include <linux/mfd/max8997-private.h> 18 #include <linux/mfd/max8997.h> 313 input_dev->name = "max8997-haptic"; in max8997_haptic_probe() 383 { "max8997-haptic", 0 }, 390 .name = "max8997-haptic",
|
/openbmc/u-boot/doc/ |
H A D | README.power-framework | 28 The same device - e.g. MAX8997 uses two different I2C busses and addresses. 114 how they handle the exact charging. Trats uses polling (MAX8997) and trats2 157 2. To support many instances of the same IC, like two MAX8997, one needs to
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | max8997.c | 49 { .compatible = "maxim,max8997" },
|
H A D | Kconfig | 94 bool "Enable Driver Model for PMIC MAX8997" 98 for PMIC MAX8997. The driver implements read/write operations.
|
H A D | Makefile | 16 obj-$(CONFIG_PMIC_MAX8997) += max8997.o
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | exynos4210-trats.dts | 104 max8997-pmic@66 { 105 compatible = "maxim,max8997";
|