From patchwork Wed Jun 7 07:06:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 103207 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1796247qgd; Wed, 7 Jun 2017 00:08:13 -0700 (PDT) X-Received: by 10.84.132.98 with SMTP id 89mr25748943ple.29.1496819293136; Wed, 07 Jun 2017 00:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496819293; cv=none; d=google.com; s=arc-20160816; b=m+LSdP+X2E345pSFzVkRrrnXs6cv1cnCZS8wAWrMoeo7DqvgJugcr2d6x2Gcs+tODL Kdugye6CTVuEKFScvM8CWm+HbquIRXoUBvC1rRdOak3k7+YyGAQReQ2Kz5zBcU/EoU7g 64SbwovL/r04wmRgR5pGaMSOr18ox9Unhn1DuA3Y/KB2BMV2SRW7oz1lMUsjXs9bJnwo DctCdVq1rI7nZVx/vkAYAqMJiqqunf5oq+XVvm68BFST/GmCuE6Zat1lWtDDFfShSLB6 eT9JiyWWKIX4WWXDxNMeOum+v3Mb9BSRYt4IUAvISuDcAqOuwbVDugwGxfU7qBBKmJuY 6Kmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=FSYAHXFJAERHXnpZLiKCFELYGPRnNs/hCX3eYiylTL8=; b=Z0IZVmgkQQxvdIBSohOVJu9oYc1Ih6DLbnliZneap+s4bIZHY4W6BZQkYdwsDy5B2f Hn14F7/HciLyigj0EyM3q2LD2d4eKA8v+Gnn4/1/ijgHUJkWlG4FNgKUQWMjhgL/YxRe OWmRFXk9+fA5OUkdxn14yj/gtOfAwbumQQTpl8cI/MBshdwmpg/Y0+2/S5ZMrhzpmJ3S E/LiyVzFjqmp7gjgTfhgnQo/X/IR8KSc9tmae9Q80Lh82dgjE/In0xdhGuRbTAKokCp2 cJ6Xc/cMhacbsXg/OgDixRQ9A7v2T4oHAUDPKxDtfRt7KQPqoBYof5curfdF1nkNEU4Z Zchw== 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 s6si996066pfj.114.2017.06.07.00.08.12; Wed, 07 Jun 2017 00:08:13 -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 S1751751AbdFGHHi (ORCPT + 7 others); Wed, 7 Jun 2017 03:07:38 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:36270 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751725AbdFGHHg (ORCPT ); Wed, 7 Jun 2017 03:07:36 -0400 Received: by mail-pf0-f170.google.com with SMTP id x63so2404573pff.3 for ; Wed, 07 Jun 2017 00:07:36 -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:in-reply-to:references; bh=Fbq/5PnXcDYBqfMEjlHXKw5/5gzwCR+TpXM+Lsl3R/k=; b=HKM2TB/l0tEdjOKqqECX6N2bSYsZ0F4uQrRoLsGjVrjEd8MoEnmkpfMswGtgeCHlv+ +rmMuqytC4x00sbGMzPmo57BbQmrA2IKwY/iubTO50iEyuvhwWBUR1bsCXowTJWJqqJ2 byzh0fTSQX8KUlWZlmNVLUdZFSPylwSx9RLJg= 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:in-reply-to :references; bh=Fbq/5PnXcDYBqfMEjlHXKw5/5gzwCR+TpXM+Lsl3R/k=; b=A32Sh0oA0s0BlMVynzCmG0hkBp3Ubbe2lUYKQB1pX8eF42vq+i8KEqBdeVKMzpmZTl /4ls/akCZhW73c863c9mJ5EaD5gwBjSYFtBEGLd0rpHPbk9ZYS7Jbm6L1ZlRVUyz5QB3 TD/0f8IgMkjJVhUJ6AmlLsMXASN7SsJYKh9O3YnjufXy980P0vciclPgJPtYMHfcz8nM cb+GpYg6bjYXSjMqtKdNXt6UlRDKFxVWT60rpIuVdROn912qnLlfVBlW5ALzSGgXfYhm 5pwce6CMSEYPjMtg7wUV3uU4OUvvNQUwqHaLST7PXVqFcHmaiFoaCzGrOSuQZNQGWYux 8ZOQ== X-Gm-Message-State: AODbwcDqeeuKwd4yOZ/SlXYxCSNN7x4A9dRDj9fJ/+YPeg+Ut8w6MTkL 74IVHtsbpE/47kQk X-Received: by 10.84.229.143 with SMTP id c15mr26643410plk.27.1496819251158; Wed, 07 Jun 2017 00:07:31 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.247]) by smtp.gmail.com with ESMTPSA id h84sm1849354pfh.45.2017.06.07.00.07.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 00:07:30 -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, Guodong Xu Subject: [PATCH v5 3/8] dt-bindings: mfd: hi6421: Add hi6421v530 compatible string Date: Wed, 7 Jun 2017 15:06:01 +0800 Message-Id: <20170607070606.8889-4-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170607070606.8889-1-guodong.xu@linaro.org> References: <20170607070606.8889-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible string for HiSilicon Hi6421v530 PMIC. Signed-off-by: Guodong Xu Acked-for-mfd-by: Lee Jones --- Documentation/devicetree/bindings/mfd/hi6421.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 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 diff --git a/Documentation/devicetree/bindings/mfd/hi6421.txt b/Documentation/devicetree/bindings/mfd/hi6421.txt index 0d5a446..22da96d 100644 --- a/Documentation/devicetree/bindings/mfd/hi6421.txt +++ b/Documentation/devicetree/bindings/mfd/hi6421.txt @@ -1,7 +1,9 @@ * HI6421 Multi-Functional Device (MFD), by HiSilicon Ltd. Required parent device properties: -- compatible : contains "hisilicon,hi6421-pmic"; +- compatible : One of the following chip-specific strings: + "hisilicon,hi6421-pmic"; + "hisilicon,hi6421v530-pmic"; - reg : register range space of hi6421; Supported Hi6421 sub-devices include: From patchwork Wed Jun 7 07:06:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 103210 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1796258qgd; Wed, 7 Jun 2017 00:08:14 -0700 (PDT) X-Received: by 10.98.46.1 with SMTP id u1mr16282292pfu.106.1496819294621; Wed, 07 Jun 2017 00:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496819294; cv=none; d=google.com; s=arc-20160816; b=x4Sten7/DzyJZEIwaXBehJy/v3CNpOOBIRr3pJ9Y038B2yG5MHReQt9YxP7rsbU3II ReDJu7P3w7PvIG59aXBq5STujabm+Ieb6Dod+R6NOPu+Fe6fBwYmN70HMd4Vp9Di46d1 rPn/nK/EUvWIHGhYHJ62Exe3OnMNs5Os52mxcp0CtDLgQf7Fr7l5PqY+lPnEE6GYuX5O e0+tbj62irQnVlCjM0fbWl1aJqozoUtF7iBYPtGKGXc9MPGK868hXgp8ONkej79Iuv3r I4qs2ry8nTdeXKqrjgzI6TCMcpZP1E2mbQf2ONBUMbRZJ7HlynZFp3jeve8Wi+VqDSA7 g4Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=6NWDuZ8RpuHAd7sNhXlFg6IPyvtGEuTUFBubtcFNVUA=; b=AAhtfENSj0XkyMGQ4gqDz49nnV3fRpEiwIAnpZowjwq4eQ2omD2GeBkP5GOu17tKfr Qyn9/C3B4iFyz8xyzwgasGWKD3YcMnlXMp+56nEfkWZcF6t/moptmdZIAs7vK3TwdsNk XSqiLocvcliM8bcmZigPEfITvY4+UTmrSSESchDCBWZk+v9hBT7N2aA8EVGKYbRrMwPx 7/zpu3CwvVZ35Q7AnFf2a58TIF4Ya6UsbbLImUSZGyH7P81CStp7zSL/dVFnnmp0Z7Au 4izeQDIN2SSfciUWNPjyyiyB63vROyExHU2EZ3tLSnQwJOwB9PidOITWu7ZiJhp+9Bb2 YeKQ== 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 s6si996066pfj.114.2017.06.07.00.08.14; Wed, 07 Jun 2017 00:08:14 -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 S1751637AbdFGHH7 (ORCPT + 7 others); Wed, 7 Jun 2017 03:07:59 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:36388 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751418AbdFGHH5 (ORCPT ); Wed, 7 Jun 2017 03:07:57 -0400 Received: by mail-pf0-f170.google.com with SMTP id x63so2408540pff.3 for ; Wed, 07 Jun 2017 00:07:57 -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:in-reply-to:references; bh=wZ9O1F8Th0ohgkio0+Cn+PrpHKYMmRvqtp6KSShI8Vo=; b=OGvlxKmAAT7t5GNi4P6jaH/UdhL45lqadf3G/dXFm7/GjUSIy1e1vWFgxzjFeDgHZQ DF/s/yk4M+pqgriYBGoV89P7Wfn1xczeTO8USiWPLgZIOXSBclwVEwu99VQSR6zgcx// 1rtrT/RuYd3gFoGCf+syUICO7Upy4qI2jv7/M= 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:in-reply-to :references; bh=wZ9O1F8Th0ohgkio0+Cn+PrpHKYMmRvqtp6KSShI8Vo=; b=ZsnJHEgbbFeqCd8dTbpGrIwhRoPBAmJswcn28VerH2ViXdQKiFHEBZgoNlNC8ZKTvi xA3ZOKeIjFHl/PxJPMHkbn62eBR/5Y1ksLAdNzp5M0yOE7RhzNmJ/Daf1VJzEHJTJ29i xfQ9c28aZDneMoDhqmdrA3EtzeiUN7kbgG1f3xcJkEUjeXgj+pc0GKS0c366BUxVY3Of DYaBs6f80nMa7ly1xz7iGU/Z1QJnOgSIXNJVV518wxpod2dQ18YPvXYY20QPiMGRBNbM +SQOqSZ13Gjw35wAjQQlHbZ98q3Jrg6pu3Z2rMBWEOOk/aBIkilB4CueaxOh9aZJW479 f/vQ== X-Gm-Message-State: AODbwcBIdlGPLl50H7a7VZhzM0PIH/RAeDZYoRSNN/rEb4p0MPevPxWV 8OC+34vPr/T+L/GQ X-Received: by 10.98.71.84 with SMTP id u81mr29873697pfa.102.1496819276993; Wed, 07 Jun 2017 00:07:56 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.247]) by smtp.gmail.com with ESMTPSA id h84sm1849354pfh.45.2017.06.07.00.07.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 00:07:56 -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, Guodong Xu , Jeremy Linton Subject: [PATCH v5 6/8] regulator: hi6421: Describe consumed platform device Date: Wed, 7 Jun 2017 15:06:04 +0800 Message-Id: <20170607070606.8889-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170607070606.8889-1-guodong.xu@linaro.org> References: <20170607070606.8889-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The hi6421-regulator driver consumes a similarly named platform device. Adding that to the module device table, allows modprobe to locate this driver once the device is created. Cc: Jeremy Linton Cc: Mark Brown Signed-off-by: Guodong Xu --- drivers/regulator/hi6421-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 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 diff --git a/drivers/regulator/hi6421-regulator.c b/drivers/regulator/hi6421-regulator.c index 62c5f54..259c3a8 100644 --- a/drivers/regulator/hi6421-regulator.c +++ b/drivers/regulator/hi6421-regulator.c @@ -621,7 +621,14 @@ static int hi6421_regulator_probe(struct platform_device *pdev) return 0; } +static const struct platform_device_id hi6421_regulator_table[] = { + { .name = "hi6421-regulator" }, + {}, +}; +MODULE_DEVICE_TABLE(platform, hi6421_regulator_table); + static struct platform_driver hi6421_regulator_driver = { + .id_table = hi6421_regulator_table, .driver = { .name = "hi6421-regulator", },