Home
last modified time | relevance | path

Searched refs:max8997 (Results 1 – 17 of 17) sorted by relevance

/Linux-v4.19/drivers/mfd/
Dmax8997-irq.c44 static struct i2c_client *get_i2c(struct max8997_dev *max8997, in get_i2c() argument
49 return max8997->i2c; in get_i2c()
53 return max8997->muic; in get_i2c()
55 return max8997->i2c; in get_i2c()
57 return max8997->i2c; in get_i2c()
116 struct max8997_dev *max8997 = irq_data_get_irq_chip_data(data); in max8997_irq_lock() local
118 mutex_lock(&max8997->irqlock); in max8997_irq_lock()
123 struct max8997_dev *max8997 = irq_data_get_irq_chip_data(data); in max8997_irq_sync_unlock() local
128 struct i2c_client *i2c = get_i2c(max8997, i); in max8997_irq_sync_unlock()
133 max8997->irq_masks_cache[i] = max8997->irq_masks_cur[i]; in max8997_irq_sync_unlock()
[all …]
Dmax8997.c62 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_read_reg() local
65 mutex_lock(&max8997->iolock); in max8997_read_reg()
67 mutex_unlock(&max8997->iolock); in max8997_read_reg()
79 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_bulk_read() local
82 mutex_lock(&max8997->iolock); in max8997_bulk_read()
84 mutex_unlock(&max8997->iolock); in max8997_bulk_read()
94 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_write_reg() local
97 mutex_lock(&max8997->iolock); in max8997_write_reg()
99 mutex_unlock(&max8997->iolock); in max8997_write_reg()
106 struct max8997_dev *max8997 = i2c_get_clientdata(i2c); in max8997_bulk_write() local
[all …]
DMakefile160 obj-$(CONFIG_MFD_MAX8997) += max8997.o max8997-irq.o
/Linux-v4.19/drivers/regulator/
Dmax8997-regulator.c49 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()
244 struct max8997_data *max8997 = rdev_get_drvdata(rdev); in max8997_reg_is_enabled() local
245 struct i2c_client *i2c = max8997->iodev->i2c; in max8997_reg_is_enabled()
262 struct max8997_data *max8997 = rdev_get_drvdata(rdev); in max8997_reg_enable() local
[all …]
DMakefile68 obj-$(CONFIG_REGULATOR_MAX8997) += max8997-regulator.o
/Linux-v4.19/Documentation/devicetree/bindings/regulator/
Dmax8997-regulator.txt7 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
32 'max8997,pmic-buck[1/2/5]-dvs-voltage' should be specified.
38 - max8997,pmic-buck1-uses-gpio-dvs: 'buck1' can be controlled by gpio dvs.
[all …]
/Linux-v4.19/arch/arm/boot/dts/
Dexynos4210-trats.dts278 compatible = "maxim,max8997-pmic";
285 max8997,pmic-buck1-uses-gpio-dvs;
286 max8997,pmic-buck2-uses-gpio-dvs;
287 max8997,pmic-buck5-uses-gpio-dvs;
289 max8997,pmic-ignore-gpiodvs-side-effect;
290 max8997,pmic-buck125-default-dvs-idx = <0>;
292 max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
296 max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
301 max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>,
306 max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>,
Dexynos4210-origen.dts150 compatible = "maxim,max8997-pmic";
155 max8997,pmic-buck1-dvs-voltage = <1350000>;
156 max8997,pmic-buck2-dvs-voltage = <1100000>;
157 max8997,pmic-buck5-dvs-voltage = <1200000>;
/Linux-v4.19/drivers/rtc/
Drtc-max8997.c66 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()
487 virq = irq_create_mapping(max8997->irq_domain, MAX8997_PMICIRQ_RTCA1); in max8997_rtc_probe()
DMakefile97 obj-$(CONFIG_RTC_DRV_MAX8997) += rtc-max8997.o
DKconfig352 will be called rtc-max8997.
/Linux-v4.19/include/linux/mfd/
Dmax8997-private.h412 extern int max8997_irq_init(struct max8997_dev *max8997);
413 extern void max8997_irq_exit(struct max8997_dev *max8997);
414 extern int max8997_irq_resume(struct max8997_dev *max8997);
/Linux-v4.19/drivers/extcon/
Dextcon-max8997.c641 struct max8997_dev *max8997 = dev_get_drvdata(pdev->dev.parent); in max8997_muic_probe() local
642 struct max8997_platform_data *pdata = dev_get_platdata(max8997->dev); in max8997_muic_probe()
653 info->muic = max8997->muic; in max8997_muic_probe()
664 virq = irq_create_mapping(max8997->irq_domain, muic_irq->irq); in max8997_muic_probe()
DMakefile18 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o
/Linux-v4.19/drivers/leds/
DMakefile64 obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o
Dleds-max8997.c235 ATTRIBUTE_GROUPS(max8997);
/Linux-v4.19/drivers/input/misc/
DKconfig214 module will be called max8997-haptic.