Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752456AbdGRJtl (ORCPT ); Tue, 18 Jul 2017 05:49:41 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:50446 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751837AbdGRJth (ORCPT ); Tue, 18 Jul 2017 05:49:37 -0400 From: To: , , , , , , , , CC: , , , Sean Wang Subject: [PATCH v2 0/9] Add PMIC support to MediaTek MT7622 SoC Date: Tue, 18 Jul 2017 17:49:20 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2334 Lines: 49 From: Sean Wang Changes since v1: - enhnace MT6380 regulator dt-binding document following suggestions in the v1. - revise pwrap_init with slave programing options - remove mt6380_get_status() and relevant accessed members - remove debug code in mt6380_regulator_set_mode() - make regulator driver should never modify constraints - revise mode mapping between REGULATOR_MODE_NORMAL and MT6380_REGULATOR_MODE By default, the relevant board with MediaTek MT7622 SoC is equipped with MediaTek MT6380 PMIC. So the series enables related driver allows the MT6380 can be accessed and controlled through MediaTek PMIC wrapper by those function drivers on MT7622 SoC. Patch 1-2: Update dt-binding document for PMIC Wrapper and MT6380 regulator. Patch 3: Add a new driver for MT6380 regulator. Patch 4-7: Update operations in PMIC Wrapper in order to adapt into MT6380. Patch 8: Add support of MT7622 platform for PMIC Wrapper Patch 9: Fix warning complained from checkpatch.pl. Chenglin Xu (2): regulator: mt6380: Add support for MT6380 soc: mediatek: pwrap: add support for MT7622 SoC Sean Wang (7): dt-bindings: arm: mediatek: add MT7622 string to the PMIC wrapper doc dt-bindings: regulator: Add document for MediaTek MT6380 regulator soc: mediatek: pwrap: add pwrap_read32 for reading in 32-bit mode soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode soc: mediatek: pwrap: update pwrap_init without slave programming soc: mediatek: pwrap: add MediaTek MT6380 as one slave of pwrap soc: mediatek: pwrap: fixup warnings from coding style .../bindings/regulator/mt6380-regulator.txt | 90 +++++ .../devicetree/bindings/soc/mediatek/pwrap.txt | 4 + drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6380-regulator.c | 359 ++++++++++++++++++ drivers/soc/mediatek/mtk-pmic-wrap.c | 416 ++++++++++++++++++--- include/linux/regulator/mt6380-regulator.h | 32 ++ 7 files changed, 856 insertions(+), 55 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/mt6380-regulator.txt create mode 100644 drivers/regulator/mt6380-regulator.c create mode 100644 include/linux/regulator/mt6380-regulator.h -- 2.7.4