/* SPDX-License-Identifier: GPL-2.0+ */ /* * max8997.h - Driver for the Maxim 8997/8966 * * Copyright (C) 2009-2010 Samsung Electronics * MyungJoo Ham <myungjoo.ham@samsung.com> * * This driver is based on max8998.h * * MAX8997 has PMIC, MUIC, HAPTIC, RTC, FLASH, and Fuel Gauge devices. * Except Fuel Gauge, every device shares the same I2C bus and included in * this mfd driver. Although the fuel gauge is included in the chip, it is * excluded from the driver because a) it has a different I2C bus from * others and b) it can be enabled simply by using MAX17042 driver.
*/
/** * max8997_haptic_platform_data * @pwm_period: period in nano second for PWM device * valid for MAX8997_EXTERNAL_MODE * @type: motor type * @mode: pulse mode * MAX8997_EXTERNAL_MODE: external PWM device is used to control motor * MAX8997_INTERNAL_MODE: internal pulse generator is used to control motor * @pwm_divisor: divisor for external PWM device * @internal_mode_pattern: internal mode pattern for internal mode * [0 - 3]: valid pattern number * @pattern_cycle: the number of cycles of the waveform * for the internal mode pattern * [0 - 15]: available cycles * @pattern_signal_period: period of the waveform for the internal mode pattern * [0 - 255]: available period
*/ struct max8997_haptic_platform_data { unsignedint pwm_period;
/** * struct max8997_led_platform_data * The number of LED devices for MAX8997 is two * @mode: LED mode for each LED device * @brightness: initial brightness for each LED device * range: * [0 - 31]: MAX8997_FLASH_MODE and MAX8997_FLASH_PIN_CONTROL_MODE * [0 - 15]: MAX8997_MOVIE_MODE and MAX8997_MOVIE_PIN_CONTROL_MODE
*/ struct max8997_led_platform_data { enum max8997_led_mode mode[2];
u8 brightness[2];
};
struct max8997_platform_data { /* IRQ */ int ono;
/* ---- PMIC ---- */ struct max8997_regulator_data *regulators; int num_regulators;
/* * SET1~3 DVS GPIOs control Buck1, 2, and 5 simultaneously. Therefore, * With buckx_gpiodvs enabled, the buckx cannot be controlled * independently. To control buckx (of 1, 2, and 5) independently, * disable buckx_gpiodvs and control with BUCKxDVS1 register. * * When buckx_gpiodvs and bucky_gpiodvs are both enabled, set_voltage * on buckx will change the voltage of bucky at the same time. *
*/ bool ignore_gpiodvs_side_effect; int buck125_default_idx; /* Default value of SET1, 2, 3 */ unsignedint buck1_voltage[8]; /* buckx_voltage in uV */ bool buck1_gpiodvs; unsignedint buck2_voltage[8]; bool buck2_gpiodvs; unsignedint buck5_voltage[8]; bool buck5_gpiodvs;
/* ---- Charger control ---- */ /* eoc stands for 'end of charge' */ int eoc_mA; /* 50 ~ 200mA by 10mA step */ /* charge Full Timeout */ int timeout; /* 0 (no timeout), 5, 6, 7 hours */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.