From patchwork Fri Jun 2 10:51:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 101227 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp326145qge; Fri, 2 Jun 2017 03:52:11 -0700 (PDT) X-Received: by 10.98.33.133 with SMTP id o5mr6246301pfj.11.1496400730923; Fri, 02 Jun 2017 03:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496400730; cv=none; d=google.com; s=arc-20160816; b=SR7/xAqpQwI2kPNj9VObTQVmWRQBAI7SE+ZIzudpixJSQyrthtcHOIakQqzZkF+ePC JPao27U9s5qzRq8FXSYSZUmpvTIHYfRwrCjXXqR0spkLrcNjVDH2wjjmuvOoU4hBhTy3 4Qvqjnv+BOfyJvJz/4Ld47hO5y9nDJlnfS7BzJx1S9C6pzSTnwr0o2hpXieV99RhSMXP w1jzVE49wWbLi01dtqWCenjBwghe+Rq1Z76Nchjg7kJsiB5iVOY/276yWg53wSLWDO+b /X6isyn0RumFLdmuz4Z+t9l+YSaNSmPYUafbOOUp+oxvFFKe009Ckd+ci1h7iaw5qy21 xPEw== 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=A0tWbzzC14Y8zym2ge1U+/RbyInJ3Ej8EQT8sMgXb5Y=; b=XmROYGzs//4VMWL+XsVrFH7aZaFmdz1x5nzK4MvoHUmcHoxAETc8saIIICWWqmUyik hcbbdw2qNGWLqiHxpjZIqgkmad389hJ7GB2M+KhrirALgoz4J2ZPhhzWIYzzk3d1MckJ mARrX76vAg0AnwnEXf5ZWdbk3Wziw3SK/L9fYKPZYW+JJSKPUL3msGNyS3XiACpXPbnc oxqV4ve+GymtefDfNdtrrL7Ryo80NEFZ6lsxJC6Y8oZcOQaiG6nnsbwhtiUv0P1O+NdJ veLNQCq/TGNS//jb6mC4l0mX1GpDA2xiZ24VbUbGAkEE0ej/PPcYyw/+OOefRGMn52CL r3dQ== 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 a192si11789980pge.296.2017.06.02.03.52.10; Fri, 02 Jun 2017 03:52:10 -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 S1751142AbdFBKwJ (ORCPT + 7 others); Fri, 2 Jun 2017 06:52:09 -0400 Received: from mail-oi0-f43.google.com ([209.85.218.43]:35218 "EHLO mail-oi0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138AbdFBKwI (ORCPT ); Fri, 2 Jun 2017 06:52:08 -0400 Received: by mail-oi0-f43.google.com with SMTP id l18so87512047oig.2 for ; Fri, 02 Jun 2017 03:52:08 -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=Mjz6SDMIWucXOyfLoCPPRl4vRnzZ+br9CKrgUMjbVHk=; b=ObHHr8pX7p9C3aiSvQBdZ87nIbq60ANm6+ejyO3L/XvylPzNLlxQbuk8hdFeP6PnJR EAqHPkDerz/AKPxdXhzYIZl8eeQGFcaKzRi4qlHnpx7ccEos0co4axlUv+0ne/3c31oe Tw7XtvB6NKlau+s++b3/xOW0IjOsHMmnaU+74= 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=Mjz6SDMIWucXOyfLoCPPRl4vRnzZ+br9CKrgUMjbVHk=; b=rFnPysWCIuo6SK5dS1jm2Jz0Ugy1V50qtpC2dyphhVuM5d3jU/R2iSCL2cVJ6v5B1N FBt/+HDHI1QbcipSECF/+3IHG5f28lBlNCmGX3ACTT0GAlZXXl6g9inH7zti5mdI5mHT 7W6qMwFGRLwWackz1wOTUcNeXrObUqjJqm0eJCLE0mTlshoR5Wxxcy9fd/VSSyTE3zyZ AChgK6kkVu3WaQKYpK4ZOmWyKaKKN85kUkKnreNp6ctPR3q8GJA/F+WPgfhAs0B0CIdX zbckmAk8Vlr66mhqykNOJTihO8fbzYK3MQC9KLNxPvphyp4WbFUBTV1CULnPKRglBDsr T6Ow== X-Gm-Message-State: AODbwcC7vzHwI4PUF7M5H4ZXyCqaRyU6dCof8MVW05IME0UER3gHjnxF jcUi+kIR+8n1I0DF X-Received: by 10.84.217.90 with SMTP id e26mr6771994plj.101.1496400727969; Fri, 02 Jun 2017 03:52:07 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.223]) by smtp.gmail.com with ESMTPSA id v64sm41662784pfk.86.2017.06.02.03.52.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Jun 2017 03:52:07 -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 v3 0/6] MFD: add driver for HiSilicon Hi6421v530 PMIC Date: Fri, 2 Jun 2017 18:51:50 +0800 Message-Id: <20170602105156.11351-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 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. 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 | 85 +++++---- drivers/regulator/Kconfig | 10 ++ drivers/regulator/Makefile | 1 + drivers/regulator/hi6421-regulator.c | 7 + drivers/regulator/hi6421v530-regulator.c | 207 ++++++++++++++++++++++ include/linux/mfd/hi6421-pmic.h | 5 + 9 files changed, 334 insertions(+), 33 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