MFD: MAX77693: add MAX77693 MFD driver
Chanwoo Choi
maintainerPATCH v4 1/2 MFD: MAX77693: add MAX77693 MFD driver
This patch adds MFD driver for MAX77693 to enable its sub devices.
The MAX77693 is a multi-function devices. It includes PMIC, MUIC(Micro USB Interface Controller), flash LED control and haptic motor control.
--- drivers/mfd/Kconfig | 12 ++ drivers/mfd/Makefile | 1 + drivers/mfd/max77693.c | 217 ++++++++++++++++++++++++++++++++++ include/linux/mfd/max77693-private.h | 217 ++++++++++++++++++++++++++++++++++ include/linux/mfd/max77693.h | 37 ++++++ 5 files changed, 484 insertions(+), 0 deletions(-) create mode 100644 drivers/mfd/max77693.c create mode 100644 include/linux/mfd/max77693-private.h create mode 100644 include/linux/mfd/max77693.h
drivers/mfd/Kconfig +12 -0
@@ -452,6 +452,18 @@ config MFD_S5M_CORE additional drivers must be enabled in order to use the functionality of the device +config MFD_MAX77693 + bool "Maxim Semiconductor MAX77693 PMIC Support" + depends on I2C=y && GENERIC_HARDIRQS + select MFD_CORE + help + Say yes here to support for Maxim Semiconductor MAX77693. + This is a companion Power Management IC with Flash, Haptic, Charger, + and MUIC(Micro USB Interface Controller) controls on chip. + This driver provides common support for accessing the device; + additional drivers must be enabled in order to use the functionality + of the device. + config MFD_WM8400 tristate "Support Wolfson Microelectronics WM8400" select MFD_CORE
drivers/mfd/Makefile +1 -0
@@ -79,6 +79,7 @@ max8925-objs := max8925-core.o max8925-i2c.o obj-$(CONFIG_MFD_MAX8925) += max8925.o obj-$(CONFIG_MFD_MAX8997) += max8997.o max8997-irq.o obj-$(CONFIG_MFD_MAX8998) += max8998.o max8998-irq.o +obj-$(CONFIG_MFD_MAX77693) += max77693.o pcf50633-objs := pcf50633-core.o pcf50633-irq.o obj-$(CONFIG_MFD_PCF50633) += pcf50633.o
drivers/mfd/max77693.c new file +217 -0
217 lines not on this page · raw message
include/linux/mfd/max77693-private.h new file +217 -0
217 lines not on this page · raw message
include/linux/mfd/max77693.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* max77693.h - Driver for the Maxim 77693 +* +* Copyright (C) 2012 Samsung Electrnoics +* SangYoung Son <[email protected]> +* +* This program is not provided / owned by Maxim Integrated Products. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +* +* This driver is based on max8997.h +* +* MAX77693 has PMIC, Charger, Flash LED, Haptic, MUIC devices. +* The devices share the same I2C bus and included in +* this mfd driver. +*/ + +#ifndef __LINUX_MFD_MAX77693_H +#define __LINUX_MFD_MAX77693_H + +struct max77693_platform_data { +/* IRQ */ +int wakeup; +}; +#endif /* __LINUX_MFD_MAX77693_H */
Signature · 1 line
1.7.0.4
Quoted 5 lines · Chanwoo Choi
This patch adds MFD driver for MAX77693 to enable its sub devices.
The MAX77693 is a multi-function devices. It includes PMIC, MUIC(Micro USB Interface Controller), flash LED control and haptic motor control.
Chanwoo Choi
maintainerHi Mark,
Quoted 8 lines · Mark Brown
Quoted 5 lines · Chanwoo Choi
This patch adds MFD driver for MAX77693 to enable its sub devices.
The MAX77693 is a multi-function devices. It includes PMIC, MUIC(Micro USB Interface Controller), flash LED control and haptic motor control.
Reviewed-by Mark Brown <[email protected]>
Thank you for quickly your reply and detailed comment.
Best Regards,
Chanwoo Choi