MAX77693: add initial MAX77693 MFD driver
v4 cover MAX77693: add initial MAX77693 MFD driver
MAX77693 is sub PMIC(Power Management IC) working
with other main PMIC. It has several features:
-PMIC
-MUIC(Micro USB Interface Controller)
-Camera flash LED control
-Haptic motor control
This patch adds initial basis for several devices. It is tested on TRATS board.
v4
- Use regmap_update_bits to update max77693 register
- Add max_register field to struct regmap_config for debugfs
- Use devm_regmap_init_i2c() to register regmap instaad of regmap_init_i2c()
- Fix typo and remove unnecessary code
- Set irq domain for MAX77693 interrupts regardless of max77693->irq
v3
- Add support irq domain for MAX77693 interrupts
- Apply regmap for i2c
v2
- with comments from Mark
- use devm_kzalloc rather than kzalloc
- print device ID read from device
Chanwoo Choi (2):
MFD: MAX77693: add MAX77693 MFD driver
MFD: MAX77693: add IRQ handler
drivers/mfd/Kconfig | 12 ++ drivers/mfd/Makefile | 1 + drivers/mfd/max77693-irq.c | 309 ++++++++++++++++++++++++++++++++++ drivers/mfd/max77693.c | 249 +++++++++++++++++++++++++++ include/linux/mfd/max77693-private.h | 217 ++++++++++++++++++++++++ include/linux/mfd/max77693.h | 36 ++++ 6 files changed, 824 insertions(+), 0 deletions(-) create mode 100644 drivers/mfd/max77693-irq.c create mode 100644 drivers/mfd/max77693.c create mode 100644 include/linux/mfd/max77693-private.h create mode 100644 include/linux/mfd/max77693.h
Samuel Ortiz
AppliedHi Chanwoo,
Quoted 9 lines · Chanwoo Choi
MAX77693 is sub PMIC(Power Management IC) working
with other main PMIC. It has several features:(quoted diff) +0
-4-PMIC -MUIC(Micro USB Interface Controller) -Camera flash LED control -Haptic motor controlThis patch adds initial basis for several devices. It is tested on TRATS board.
Applied both patches, thanks. And thanks to Mark for the quick review.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/
Hi Samuel,
Quoted 10 lines · Samuel Ortiz
Hi Chanwoo,
Quoted 7 lines · Chanwoo Choi
MAX77693 is sub PMIC(Power Management IC) working
with other main PMIC. It has several features:(quoted diff) +0
-4-PMIC -MUIC(Micro USB Interface Controller) -Camera flash LED control -Haptic motor control
Quoted 4 lines
Quoted 2 lines
This patch adds initial basis for several devices. It is tested on TRATS board.
Applied both patches, thanks. And thanks to Mark for the quick review.
Thank you for your reply and applied it.
Best Regards,
Chanwoo Choi