From patchwork Fri Jun 2 08:51:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 100989 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp283780qge; Fri, 2 Jun 2017 01:51:42 -0700 (PDT) X-Received: by 10.84.216.88 with SMTP id f24mr13639688plj.103.1496393502246; Fri, 02 Jun 2017 01:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496393502; cv=none; d=google.com; s=arc-20160816; b=GM8PZuV4AyZRlndrFAKG/qRZYD1//+cfZdFGCbf6AzqdMJqGa7snFu5a7VW2gXYQI7 J0ybRSmq07s6LgG8xJJJlS7UN/dZblAM0+Ki5Msb90O89YH433UKZO4MbRMLGjbaY6Ek e39SuP+0oOHbHM1Q8Palu/kNs4QIeU5qPpeXOb+OkQzZyvcIf/YUjFvUeMwfqiNSPB7e bwXQX3L5eIuYSveRyrSY2A9i1wDwHKXi6wpOf2YG0zicamS4cV3GVuBV+WcTQkXJGydc BV0i6/vnMg/82Q+eo3jhJRZLL5zqYQD+fTBbX2y8jLptxa+RVrFoSW3sQ/9PFhvMu8Db uvfg== 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=9zxgDP4iwEi1mVWoLNMRq1TQ3hD+45YLRxBFaB2/lAY=; b=vXw1yLxBEroa96XUldzpUhNrXQLJvSO4FTZHMllBe4KaAz7TTkwwmG/YkUHQ5Rgry6 9EJCDQ388VaMXqDK9m9kuMN8i037K5j7YapT96Mk6LhmNdQ54cUBNtBJ7uqZL+E2YiX9 Maro0PuoaahGPF4yKBaafajqjVqkcXs04baGweBRR2U9IZ9SKc+815Xkrz4lJBvtmFJS 7f4BmmITjnhV622fi6PnrR7DNVwCSuIf+W1CyYX3QTqPjYKnbD2iu9CAsNuPMa4QTGrv hOUWIWnVlcAqNDxgwquzhHYsCv85ilopJdd/VcJfSSFS6X7BnVT1673Coimkq3gm6d7f mjCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 w12si54543982pld.138.2017.06.02.01.51.41; Fri, 02 Jun 2017 01:51:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750813AbdFBIvk (ORCPT + 7 others); Fri, 2 Jun 2017 04:51:40 -0400 Received: from mail-it0-f45.google.com ([209.85.214.45]:37081 "EHLO mail-it0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040AbdFBIvj (ORCPT ); Fri, 2 Jun 2017 04:51:39 -0400 Received: by mail-it0-f45.google.com with SMTP id m47so10915153iti.0 for ; Fri, 02 Jun 2017 01:51:38 -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=LAzhx9hCWJyjcNDZLGlmPyFSVIka3M5LScGq9ZFo5cI=; b=KqQ2M5Kdotz/saN55+AQWjny8kY9gUd0pmPgO93dvhu2X8RQAsMf1o+zvXtInDmJli HKJX9PwrolF7zP5i/afOgKOTLiS7icWQbQG8LLDeMeQ09TWKO0lPI6ZNS/JpIEtGtdNK 1cdgGMzvWoLXT90UntE+hnqbg+pa9MtByppos= 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=LAzhx9hCWJyjcNDZLGlmPyFSVIka3M5LScGq9ZFo5cI=; b=mHZEdmpzqA3323SFrrnSu87Vg9JlO6JoPZtI8NhoFC18V3b1QGy6XE9xXodIdi1AYT d3yOcVvzK78LZoGLGiKXo4WB81Rw9TaVB38G+rvo4i5TR5Y4dPjgqLscTyAvTtfM1QSZ 4hKmcutMzFRv+uSYytfqjm5LRlA2UbulNNKOp9MXw+tI377mub2U5VAcZOUCY147zUcq DGtkPfHjjgjJdf2gcqJQNhpPf/WebQt+XJ//cJF+FrJP4XJfX1j/IYSNjB3oEryblVm4 5ToRHBTYsYsi2j+WWqbe4s4zcubzllQ/0cvUWXO6IlyjgGKe8gmscQOf3wY9j5MBe7hP EIuw== X-Gm-Message-State: AODbwcCSVh0B+8A0rfCmun3NIqQAXHSw3+Tk97X2S28TT2YNKzbju9eh RrUX1fHNnMmY3CXf X-Received: by 10.99.4.87 with SMTP id 84mr6108862pge.138.1496393498124; Fri, 02 Jun 2017 01:51:38 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.223]) by smtp.gmail.com with ESMTPSA id d185sm32608146pgc.39.2017.06.02.01.51.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Jun 2017 01:51:37 -0700 (PDT) From: Guodong Xu To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, lgirdwood@gmail.com, broonie@kernel.org, khilman@baylibre.com, arnd@arndb.de, gregory.clement@free-electrons.com, horms+renesas@verge.net.au, olof@lixom.net, thomas.petazzoni@free-electrons.com, yamada.masahiro@socionext.com, riku.voipio@linaro.org, treding@nvidia.com, krzk@kernel.org, eric@anholt.net, damm+renesas@opensource.se, ard.biesheuvel@linaro.org, linus.walleij@linaro.org, geert+renesas@glider.be Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, hw.wangxiaoyin@hisilicon.com, Guodong Xu Subject: [PATCH v2 0/6] MFD: add driver for HiSilicon Hi6421v530 PMIC Date: Fri, 2 Jun 2017 16:51:11 +0800 Message-Id: <20170602085117.27474-1-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 extends hi6421-pmic-core.c to support Hi6421v530 revision. Patch 3 add hi6421v530-regulator.c driver for LDO regulators. Patch 4 fixes an issue for hi6421 regulator, which is not related to v530 but it's found in this review. Patch 5 is dts change, it depends and can be applied on hi3660/hikey960 patchset [1]. Patch 6 enables the relevant config items. [1], http://www.spinics.net/lists/devicetree/msg178303.html 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. Guodong Xu (4): dt-bindings: mfd: hi6421: Add hi6421v530 compatible string mfd: hi6421-pmic: add support for HiSilicon Hi6421v530 regulator: hi6421: Describe consumed platform device arm64: defconfig: enable support hi6421v530 PMIC Wang Xiaoyin (2): regulator: hi6421v530: add driver for hi6421v530 voltage regulator arm64: dts: hikey960: add device node for pmic and regulators Documentation/devicetree/bindings/mfd/hi6421.txt | 4 +- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 46 +++++ arch/arm64/configs/defconfig | 2 + drivers/mfd/hi6421-pmic-core.c | 56 ++++-- drivers/regulator/Kconfig | 10 ++ drivers/regulator/Makefile | 1 + drivers/regulator/hi6421-regulator.c | 7 + drivers/regulator/hi6421v530-regulator.c | 209 ++++++++++++++++++++++ include/linux/mfd/hi6421-pmic.h | 5 + 9 files changed, 326 insertions(+), 14 deletions(-) create mode 100644 drivers/regulator/hi6421v530-regulator.c -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html