Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752312AbdFLJeA (ORCPT ); Mon, 12 Jun 2017 05:34:00 -0400 Received: from mga01.intel.com ([192.55.52.88]:48663 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930AbdFLJd7 (ORCPT ); Mon, 12 Jun 2017 05:33:59 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,333,1493708400"; d="scan'208";a="112019787" From: Rajmohan Mani To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org Cc: Lee Jones , Linus Walleij , Alexandre Courbot , "Rafael J. Wysocki" , Len Brown , Rajmohan Mani Subject: [PATCH v3 0/3] TPS68470 PMIC drivers Date: Mon, 12 Jun 2017 02:26:49 -0700 Message-Id: <1497259612-38401-1-git-send-email-rajmohan.mani@intel.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2795 Lines: 82 This is the patch series for TPS68470 PMIC that works as a camera PMIC. The patch series provide the following 3 drivers, to help configure the voltage regulators, clocks and GPIOs provided by the TPS68470 PMIC, to be able to use the camera sensors connected to this PMIC. TPS68470 MFD driver: This is the multi function driver that initializes the TPS68470 PMIC and supports the GPIO and Op Region functions. TPS68470 GPIO driver: This is the PMIC GPIO driver that will be used by the OS GPIO layer, when the BIOS / firmware triggered GPIO access is done. TPS68470 Op Region driver: This is the driver that will be invoked, when the BIOS / firmware configures the voltage / clock for the sensors / vcm devices connected to the PMIC. --- Changes in v3: - MFD driver: - Removed GPIO lookup table - Reverted to probe() for consistency - Addressed other comments from Andy - GPIO driver: - Removed the code that initializes the default values of GPIOs to zeros - Used gpiochip_get_data() to access data inside the gpio_chip Changes in v2: - MFD driver: - Removed tps68470_* wrappers around regmap_* calls - Removed "struct tps68470" - used devm_mfd_add_devices and removed mutex in mfd driver - Added reasoning about the need of having mfd driver as bool/builtin - Opregion driver: - renamed opregion driver file / internal symbol names with tps68470_pmic* - Made opregion driver tables as const - Removed unused *handler_context in common handler - Replaced "int" with "unsigned int" - Changed to WARN macro to dev_warn() - Destroyed mutex on error - Added reasoning about the need of having Opregion driver as bool/builtin - GPIO driver: - Implemented get_direction() in the GPIO driver - Setup gpio_chip.names - Moved the GPIO lookup table code inside mfd driver - Added reasoning about the need of having GPIO driver as bool/builtin --- Rajmohan Mani (3): mfd: Add new mfd device TPS68470 gpio: Add support for TPS68470 GPIOs ACPI / PMIC: Add TI PMIC TPS68470 operation region driver drivers/acpi/Kconfig | 15 ++ drivers/acpi/Makefile | 2 + drivers/acpi/pmic/tps68470_pmic.c | 456 ++++++++++++++++++++++++++++++++++++++ drivers/gpio/Kconfig | 14 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-tps68470.c | 174 +++++++++++++++ drivers/mfd/Kconfig | 18 ++ drivers/mfd/Makefile | 1 + drivers/mfd/tps68470.c | 156 +++++++++++++ include/linux/mfd/tps68470.h | 144 ++++++++++++ 10 files changed, 981 insertions(+) create mode 100644 drivers/acpi/pmic/tps68470_pmic.c create mode 100644 drivers/gpio/gpio-tps68470.c create mode 100644 drivers/mfd/tps68470.c create mode 100644 include/linux/mfd/tps68470.h -- 1.9.1