From patchwork Thu Jul 20 07:32:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 108320 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1796162qge; Thu, 20 Jul 2017 00:34:58 -0700 (PDT) X-Received: by 10.84.131.106 with SMTP id 97mr3060583pld.416.1500536097967; Thu, 20 Jul 2017 00:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500536097; cv=none; d=google.com; s=arc-20160816; b=eEOg87rqhfr2o+L3KzbdsuFnnmg378DFAFu2sppZOW4u/btKKZV5ipjrZUaSV5ZKWA W0ciEjhKF3hebH7KURQ4hen+iyRigR/8w1SCGBET/5+TB37kzAX8QF+CJV1tkqM49q88 pK9YhWviRkTTkKHbvDwUOH0sdsJlYpX0HuHnhkGgCqa58EP4iN58mWtBOECq9Z9LbehB 3tObBpPzbMsA0FYr5RzpImNEKPFTM8WLnFUeTxHq+oeWnJvW8NCtnPRN20VOz5/Y7555 VZfLh1WbFdlsEEqrLwYUbe5AQ5+JNASxLnLSj2tTxD9TewI3y6bEiqtqiSdaS8GeDnGx kxEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=E+eqjDfxlgv8YtvHICOUCMoER75zFF8ipvc74qVkEoI=; b=0imMRpgjxeqt+fxqvP/wmgCnEVfnmL0w21gW5lW83G4YaO3Hu8kS1fY05Yb2ZwfjIF norG8mKrHXCaRfaJw8+RBUzKZgxNj6r3qxJjSOsrO9ZRipzGFspX119bmAvr47QWipqY a4THGMe+p1/ht8ZFDkqF2PCLY1Wz2XKGpWeEG2/58jHw7QMj6EdCiIfnLvpA/g1nkpvs oFgzIFdmABy/MmZccQWHy+6MzNa4ZLL2Eu4ChM1wOkbo5kPn1kNpS/7HljF0/iDIlXr5 +831G7IvfeIHvGHhxPwl9PkJnN8SNIFFM/JJOIWWq646u489bm92OvJVguYEZT5h1Jwo U9sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=MuBiuPuh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q87si809538pfi.692.2017.07.20.00.34.57; Thu, 20 Jul 2017 00:34:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=MuBiuPuh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934602AbdGTHez (ORCPT + 25 others); Thu, 20 Jul 2017 03:34:55 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:34404 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934479AbdGTHdB (ORCPT ); Thu, 20 Jul 2017 03:33:01 -0400 Received: by mail-pg0-f46.google.com with SMTP id 123so11109982pgj.1 for ; Thu, 20 Jul 2017 00:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=E+eqjDfxlgv8YtvHICOUCMoER75zFF8ipvc74qVkEoI=; b=MuBiuPuhI0hRd8ak8Sj7gn0Xc3BVrB1y7Gv++ZhhhAja4uYpTzPz6QOPOCu/+wUfWC 9/8gSxy5yGNxMrMz84s1Mz3Pd1aaNiT4KNL8jgmfuNUwBmJMnziqMtoBxdwhk7HSk5fw 73UmcdkMvHNA47KaZKi5o6RYEUXSXoMGeQfUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=E+eqjDfxlgv8YtvHICOUCMoER75zFF8ipvc74qVkEoI=; b=d/j2QbWW0NDeQofw+jzLUfb6Y4WPIEP3MVffKYnMat918UyyfyUYGRXbuY6PoMXTqu Mr7k6fpNNHdxWQ8/ZD7P75wLbX1KCMzjsvDmg25z/hLAt62l/bR/wdX3c+c1XsD4zBJ3 0tydjM/g0MpMCHX7kjQWkjthdV8J34xEISwygI/JVri2rM1kh4TRDXEGjADdExG7SaO+ FKkzGSlWUVIKftznWbugZ8/ChyeVbY8yLUzuM7rYBiVq6S+Ckep/jPHXKpmXNlIz3hKe lJguHoImxs3etaq643ip7sPAkMbhwakJk7V+6/SzNVjiyOhYFsOTNopo6SCB/ZqzEd8P pllw== X-Gm-Message-State: AIVw110pDmnMCPMSTw2C7vpqG9tB7UFpkH7E3uTpK6MBngoXrGMRg+VC LC6cKajppEBPPpRR X-Received: by 10.98.103.140 with SMTP id t12mr1864968pfj.171.1500535981268; Thu, 20 Jul 2017 00:33:01 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.45]) by smtp.gmail.com with ESMTPSA id s62sm3230494pfi.36.2017.07.20.00.32.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 00:33:00 -0700 (PDT) From: Guodong Xu To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu Subject: [PATCH v7 0/3] MFD: add driver for HiSilicon Hi6421v530 PMIC Date: Thu, 20 Jul 2017 15:32:39 +0800 Message-Id: <20170720073242.1758-1-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds driver for HiSilicon Hi6421v530 PMIC. Mainline kernel already has driver support to a similar chip, Hi6421. Hi6421 and Hi6421v530 are both from the same vendor, HiSilicon, but they are at different revisions. They both use the same Memory-mapped I/O method to communicate with Main SoC. However, they differ quite a lot in their regulator designs. Eg. they have completely different LDO voltage points. Patch 1 and 2 are hi6421-pmic cleaning up. Patch 3 extends hi6421-pmic-core.c to support Hi6421v530 revision. Major changes in v7: - rebase to v4.13-rc1 and resend MFD driver patches. - As of v6, DTS and regulator parts have been merged into v4.13-rc1. So they are not included in v7. Major changes in v6: - Patch 5, solve review comments from Mark Brown, add hi6421v530 regulator driver to module device table. - Add Acked-by from Arnd Bergmann Major changes in v5: - Patch 3, solve review comments from Lee Johes Major changes in v4: - put hi6421-pmic cleanup in separate patches. - solve review comments from Lee Johes. - regulator-name should not have '/' character. Otherwise it "Failed to create debugfs directory" Major changes in v3: - in hi6421-pmic-core.c * use shorter license script. * arrange #include in alphabetical order. * using recommended error log messages from Lee Jones. - in hi6421v530-regulator.c * remove unused #include files * arrange remaining ones in alphabetical order. Major changes in v2: - instead of writing a new driver, extend hi6421-pmic-core.c to support its v530 revision - update hi6421v530-regulator.c to use modern regulator driver design logics. *** BLURB HERE *** Guodong Xu (3): mfd: hi6421-pmic: cleanup: change license text to shorter form mfd: hi6421-pmic: cleanup: update dev_err messages mfd: hi6421-pmic: add support for HiSilicon Hi6421v530 drivers/mfd/hi6421-pmic-core.c | 89 ++++++++++++++++++++++++++--------------- include/linux/mfd/hi6421-pmic.h | 5 +++ 2 files changed, 62 insertions(+), 32 deletions(-) -- 2.10.2