/linux-6.6.21/drivers/mfd/ |
D | max8998-irq.c | 95 irq_to_max8998_irq(struct max8998_dev *max8998, struct irq_data *data) in irq_to_max8998_irq() argument 102 struct max8998_dev *max8998 = irq_data_get_irq_chip_data(data); in max8998_irq_lock() local 104 mutex_lock(&max8998->irqlock); in max8998_irq_lock() 109 struct max8998_dev *max8998 = irq_data_get_irq_chip_data(data); in max8998_irq_sync_unlock() local 112 for (i = 0; i < ARRAY_SIZE(max8998->irq_masks_cur); i++) { in max8998_irq_sync_unlock() 117 if (max8998->irq_masks_cur[i] != max8998->irq_masks_cache[i]) { in max8998_irq_sync_unlock() 118 max8998->irq_masks_cache[i] = max8998->irq_masks_cur[i]; in max8998_irq_sync_unlock() 119 max8998_write_reg(max8998->i2c, MAX8998_REG_IRQM1 + i, in max8998_irq_sync_unlock() 120 max8998->irq_masks_cur[i]); in max8998_irq_sync_unlock() 124 mutex_unlock(&max8998->irqlock); in max8998_irq_sync_unlock() [all …]
|
D | max8998.c | 44 struct max8998_dev *max8998 = i2c_get_clientdata(i2c); in max8998_read_reg() local 47 mutex_lock(&max8998->iolock); in max8998_read_reg() 49 mutex_unlock(&max8998->iolock); in max8998_read_reg() 61 struct max8998_dev *max8998 = i2c_get_clientdata(i2c); in max8998_bulk_read() local 64 mutex_lock(&max8998->iolock); in max8998_bulk_read() 66 mutex_unlock(&max8998->iolock); in max8998_bulk_read() 76 struct max8998_dev *max8998 = i2c_get_clientdata(i2c); in max8998_write_reg() local 79 mutex_lock(&max8998->iolock); in max8998_write_reg() 81 mutex_unlock(&max8998->iolock); in max8998_write_reg() 88 struct max8998_dev *max8998 = i2c_get_clientdata(i2c); in max8998_bulk_write() local [all …]
|
D | Makefile | 171 obj-$(CONFIG_MFD_MAX8998) += max8998.o max8998-irq.o
|
/linux-6.6.21/drivers/power/supply/ |
D | max8998_charger.c | 34 struct max8998_battery_data *max8998 = power_supply_get_drvdata(psy); in max8998_battery_get_property() local 35 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_battery_get_property() 96 struct max8998_battery_data *max8998; in max8998_battery_probe() local 105 max8998 = devm_kzalloc(&pdev->dev, sizeof(struct max8998_battery_data), in max8998_battery_probe() 107 if (!max8998) in max8998_battery_probe() 110 max8998->dev = &pdev->dev; in max8998_battery_probe() 111 max8998->iodev = iodev; in max8998_battery_probe() 112 platform_set_drvdata(pdev, max8998); in max8998_battery_probe() 113 i2c = max8998->iodev->i2c; in max8998_battery_probe() 122 dev_dbg(max8998->dev, in max8998_battery_probe() [all …]
|
/linux-6.6.21/drivers/regulator/ |
D | max8998.c | 83 struct max8998_data *max8998 = rdev_get_drvdata(rdev); in max8998_ldo_is_enabled() local 84 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_is_enabled() 106 struct max8998_data *max8998 = rdev_get_drvdata(rdev); in max8998_ldo_enable() local 107 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_enable() 119 struct max8998_data *max8998 = rdev_get_drvdata(rdev); in max8998_ldo_disable() local 120 struct i2c_client *i2c = max8998->iodev->i2c; in max8998_ldo_disable() 134 struct max8998_data *max8998 = rdev_get_drvdata(rdev); in max8998_get_voltage_register() local 171 reg = MAX8998_REG_BUCK1_VOLTAGE1 + max8998->buck1_idx; in max8998_get_voltage_register() 174 reg = MAX8998_REG_BUCK2_VOLTAGE1 + max8998->buck2_idx; in max8998_get_voltage_register() 195 struct max8998_data *max8998 = rdev_get_drvdata(rdev); in max8998_get_voltage_sel() local [all …]
|
D | Makefile | 83 obj-$(CONFIG_REGULATOR_MAX8998) += max8998.o
|
/linux-6.6.21/Documentation/devicetree/bindings/mfd/ |
D | max8998.txt | 18 - "maxim,max8998" for Maxim MAX8998 26 - max8998,pmic-buck1-dvs-gpios: GPIO specifiers for two host gpios used 29 - max8998,pmic-buck2-dvs-gpio: GPIO specifier for host gpio used 32 - max8998,pmic-buck1-default-dvs-idx: Default voltage setting selected from 36 - max8998,pmic-buck2-default-dvs-idx: Default voltage setting selected from 40 - max8998,pmic-buck-voltage-lock: If present, disallows changing of 43 Additional properties required if max8998,pmic-buck1-dvs-gpios is defined: 44 - max8998,pmic-buck1-dvs-voltage: An array of 4 voltage values in microvolts 47 Additional properties required if max8998,pmic-buck2-dvs-gpio is defined: 48 - max8998,pmic-buck2-dvs-voltage: An array of 2 voltage values in microvolts [all …]
|
/linux-6.6.21/drivers/rtc/ |
D | rtc-max8998.c | 68 struct max8998_dev *max8998; member 249 struct max8998_dev *max8998 = dev_get_drvdata(pdev->dev.parent); in max8998_rtc_probe() local 250 struct max8998_platform_data *pdata = max8998->pdata; in max8998_rtc_probe() 260 info->max8998 = max8998; in max8998_rtc_probe() 261 info->rtc = max8998->rtc; in max8998_rtc_probe() 274 if (!max8998->irq_domain) in max8998_rtc_probe() 277 info->irq = irq_create_mapping(max8998->irq_domain, MAX8998_IRQ_ALARM0); in max8998_rtc_probe()
|
D | Makefile | 98 obj-$(CONFIG_RTC_DRV_MAX8998) += rtc-max8998.o
|
D | Kconfig | 364 will be called rtc-max8998.
|
/linux-6.6.21/include/linux/mfd/ |
D | max8998-private.h | 157 int max8998_irq_init(struct max8998_dev *max8998); 158 void max8998_irq_exit(struct max8998_dev *max8998); 159 int max8998_irq_resume(struct max8998_dev *max8998);
|
/linux-6.6.21/arch/arm/boot/dts/samsung/ |
D | s5pv210-aquila.dts | 77 max8998,pmic-buck1-default-dvs-idx = <0>; 78 max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>, 80 max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>, 83 max8998,pmic-buck2-default-dvs-idx = <0>; 84 max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>; 85 max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
|
D | s5pv210-goni.dts | 89 max8998,pmic-buck1-default-dvs-idx = <0>; 90 max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>, 92 max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>, 95 max8998,pmic-buck2-default-dvs-idx = <0>; 96 max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>; 97 max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
|
D | exynos4210-universal_c210.dts | 350 max8998,pmic-buck1-default-dvs-idx = <0>; 351 max8998,pmic-buck1-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>, 353 max8998,pmic-buck1-dvs-voltage = <1100000>, <1000000>, 356 max8998,pmic-buck2-default-dvs-idx = <0>; 357 max8998,pmic-buck2-dvs-gpio = <&gpe2 0 GPIO_ACTIVE_HIGH>; 358 max8998,pmic-buck2-dvs-voltage = <1200000>, <1100000>;
|
D | s5pv210-aries.dtsi | 185 compatible = "maxim,max8998"; 190 max8998,pmic-buck1-default-dvs-idx = <1>; 191 max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>, 193 max8998,pmic-buck1-dvs-voltage = <1275000>, <1200000>, 196 max8998,pmic-buck2-default-dvs-idx = <0>; 197 max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>; 198 max8998,pmic-buck2-dvs-voltage = <1100000>, <1000000>;
|
/linux-6.6.21/Documentation/devicetree/bindings/ |
D | vendor-prefixes.yaml | 20 "^(keypad|m25p|max8952|max8997|max8998|mpmc),.*": true
|