Home
last modified time | relevance | path

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

12

/linux/drivers/mfd/
H A 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 …]
H A 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 …]
H A Dmax77686.c9 //This driver is based on max8997.c
H A Dmax77693.c10 // This driver is based on max8997.c
/linux/Documentation/devicetree/bindings/regulator/
H A 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/drivers/regulator/
H A 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 gpiod_set_value(max8997->buck125_gpiods[0], set1); in max8997_set_gpio()
56 gpiod_set_value(max8997->buck125_gpiods[1], set2); in max8997_set_gpio()
57 gpiod_set_value(max8997->buck125_gpiods[2], set3); in max8997_set_gpio()
[all …]
H A DMakefile86 obj-$(CONFIG_REGULATOR_MAX8997) += max8997-regulator.o
H A Dmax77686-regulator.c9 // This driver is based on max8997.c
/linux/drivers/leds/
H A 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);
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");
/linux/drivers/extcon/
H A 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 …]
H A DKconfig129 tristate "Maxim MAX8997 EXTCON Support"
134 Maxim MAX8997 PMIC. The MAX8997 MUIC is a USB port accessory
H A DMakefile20 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o
/linux/drivers/rtc/
H A 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 …]
H A DMakefile102 obj-$(CONFIG_RTC_DRV_MAX8997) += rtc-max8997.o
H A DKconfig377 tristate "Maxim MAX8997"
381 RTC of Maxim MAX8997 PMIC.
384 will be called rtc-max8997.
/linux/include/linux/mfd/
H A 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);
H A 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
150 * The number of LED devices for MAX8997 is two
H A Dmax77686.h8 * This driver is based on max8997.h
H A Dmax77693.h10 * This driver is based on max8997.h
H A Dmax14577.h9 * This driver is based on max8997.h
/linux/arch/arm/boot/dts/samsung/
H A Dexynos4210-trats.dts144 /* 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 Dexynos4210-origen.dts112 /* 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 {
H A Dexynos4210-i9100.dts273 /* Workaround for missing clock on max8997 PMIC */
452 compatible = "maxim,max8997-pmic";
458 max8997,pmic-buck1-uses-gpio-dvs;
459 max8997,pmic-buck2-uses-gpio-dvs;
460 max8997,pmic-buck5-uses-gpio-dvs;
462 max8997,pmic-ignore-gpiodvs-side-effect;
463 max8997,pmic-buck125-default-dvs-idx = <0>;
465 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
469 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
474 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>,
[all …]
/linux/drivers/power/supply/
H A 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",
/linux/drivers/input/misc/
H A Dmax8997_haptic.c3 * MAX8997-haptic controller driver
17 #include <linux/mfd/max8997-private.h>
18 #include <linux/mfd/max8997.h>
308 input_dev->name = "max8997-haptic"; in max8997_haptic_probe()
376 { "max8997-haptic", 0 },
383 .name = "max8997-haptic",

12