Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3460820ybg; Mon, 28 Oct 2019 13:13:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqz58Fu4ETnlFVnMCEJOE59EeU0cdwwg8JiSShdgqWKOWuLpafdYPiuY6y3CU6UIi358Kv+h X-Received: by 2002:a17:906:488c:: with SMTP id v12mr10986800ejq.290.1572293585218; Mon, 28 Oct 2019 13:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572293585; cv=none; d=google.com; s=arc-20160816; b=s9qDiVYiSPGumdzgF7us7fAo0sUE0X2kaErMwBTlRjbXJPZFTCJdUdBS7SbVOCS8zR dMKE29ge0WncGgElPJhA+TpFBzjsPqpbhr3QuMzm6i7GqkK2NGDi7Jqr/HwJJ0qj2Kgt G/GaS9YRj7eCQHfRahbmYp5gtVk9dX3HX16D8HLNiKfzGlRPoY8vx0fYNN2u8xC3rmSU 7KoZMahaznIbwl0Gk4VyzW7HOxkcAk/7ZinYFfpHEqo6/S+zfvuv8y0XNo/2w67er7kg baZFV9r9U18I94s34MShHYc73DMNjp09lFKfepc6AtMf+oqZAQZZAlAUypcTOfUMXBhF gFzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=5xksvSoWClSEPqFisZy8fkW7iGrHC1hgE7A27QwV7HQ=; b=YTR+c9Rtd75KRkJnx/aKih5PJUCvF6Hb79ZqCPl1nEpOyQZPZuX8LLx4fKT+e/nj3G ocqtkqY9XZ7/edzFZ6mqbt+qS2PUHJImq7o+L89IqGxvWhMvSYxPiszoD+ApFJ6ZQ4H4 VxC6AEMp1iW1tuVOuaZxjV4vGuUMK1+HO16BTqy4pDEn0QKcgCG6Oc4o198rdDUM+P0K b1O5O3F5mF9MNvqQ2DpizOt9aDQ2awD7z5wAdRpaPNpEhvksQ69gPE6Cn4SeOBGWcicN cLjiig4qkvvXUqVa+Z1EhAAO0fU/TNUr7jGHi8dpCBvPqs6G+QmdjheMJHvLMwCuk+D9 QLhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gzlVwieG; 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 k50si7460698ede.224.2019.10.28.13.12.39; Mon, 28 Oct 2019 13:13:05 -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.s=google header.b=gzlVwieG; 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 S2389169AbfJ1MmA (ORCPT + 99 others); Mon, 28 Oct 2019 08:42:00 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36002 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389151AbfJ1MmA (ORCPT ); Mon, 28 Oct 2019 08:42:00 -0400 Received: by mail-wm1-f65.google.com with SMTP id c22so8981319wmd.1 for ; Mon, 28 Oct 2019 05:41:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=5xksvSoWClSEPqFisZy8fkW7iGrHC1hgE7A27QwV7HQ=; b=gzlVwieGLL+vRKmFH25rxW6uJL3c7ZUDBTuLJonZBtrHudOawmBb5SHfGzviP1gH8t hXNTMOg8xclCA4Od9HvUqPTpcRylA/7YwAB5NbK1tNVot+6H2lJFyZ5wbLwZZQOt0YVz xDnVaSEo0t2c+06VHQHs1nRNkAI5C1pmeyrCOXqrhFGYnXDmgbbUrrD2PNTKXunkRP7y oDc/IoxUdoZHmoIYw1TIkqegXCxMusr/wiFg9SLQxjUgWVw3yhOA0KI7B8xgellvl6sZ 94/xu5989N5qnqz+ahT4jSbYLDj3j+bumF1FilJiuCvN85Q6RlCdoTO/AR90E2wvVWrR iB6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5xksvSoWClSEPqFisZy8fkW7iGrHC1hgE7A27QwV7HQ=; b=NuV+4W6WZK0d8KTRmAszkasvGS5zNvTrCX8KBCVCbymnPtShhFXr0tchNqbXMzyDJw z5r9kKlo45+EdH6D6Nf5uJfiJYNdesCdWuETwrRGCE59aFVXtOLe1Ny00L5cKaRQGnza tzmsg6C1/W0qMr/cKv2JtcHa7zjHK9Krh6SBn3hLS0L7Hd9HHD+A6LMwxW+uXluR3ftP wz2z40bkDF2S9PtI2F1NZCVPTM7kbb+gpq5m9tnHIPfiF6ODUNBwcO3OXIOFGj7cY95k l1d9O7k75P9SYqZ7BuPE6lax1v5DgWGA20rM7GmyDwRn/dlvB0OlZcOsZyqHFaUA2lmP 7j3g== X-Gm-Message-State: APjAAAUAJm/5e4j3MIjIYsf7fpkG/1HkLI/FnDh4FuU5JSRNoAjWA+2v gLgFV4N0oOJqIb2OcG+utgglQA== X-Received: by 2002:a1c:a751:: with SMTP id q78mr16448120wme.129.1572266517809; Mon, 28 Oct 2019 05:41:57 -0700 (PDT) Received: from [192.168.86.34] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id u21sm13971582wmu.27.2019.10.28.05.41.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2019 05:41:56 -0700 (PDT) Subject: Re: [PATCH v2 08/11] dt-bindings: pinctrl: qcom-wcd934x: Add bindings for gpio To: Rob Herring Cc: broonie@kernel.org, linus.walleij@linaro.org, lee.jones@linaro.org, vinod.koul@linaro.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org, bgoswami@codeaurora.org, linux-gpio@vger.kernel.org References: <20191018001849.27205-1-srinivas.kandagatla@linaro.org> <20191018001849.27205-9-srinivas.kandagatla@linaro.org> <20191025210021.GA12751@bogus> From: Srinivas Kandagatla Message-ID: Date: Mon, 28 Oct 2019 12:41:56 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191025210021.GA12751@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thamks for the review Rob, On 25/10/2019 22:00, Rob Herring wrote: > On Fri, Oct 18, 2019 at 01:18:46AM +0100, Srinivas Kandagatla wrote: >> Qualcomm Technologies Inc WCD9340/WCD9341 Audio Codec has integrated >> gpio controller to control 5 gpios on the chip. This patch adds >> required device tree bindings for it. >> >> Signed-off-by: Srinivas Kandagatla >> --- >> .../pinctrl/qcom,wcd934x-pinctrl.yaml | 51 +++++++++++++++++++ >> 1 file changed, 51 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,wcd934x-pinctrl.yaml >> >> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,wcd934x-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,wcd934x-pinctrl.yaml >> new file mode 100644 >> index 000000000000..c8a36cbc4935 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,wcd934x-pinctrl.yaml >> @@ -0,0 +1,51 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/pinctrl/qcom,wcd934x-pinctrl.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: WCD9340/WCD9341 GPIO Pin controller >> + >> +maintainers: >> + - Srinivas Kandagatla >> + >> +description: | >> + Qualcomm Technologies Inc WCD9340/WCD9341 Audio Codec has integrated >> + gpio controller to control 5 gpios on the chip. >> + >> +properties: >> + compatible: >> + enum: >> + - qcom,wcd9340-pinctrl >> + - qcom,wcd9341-pinctrl >> + >> + reg: >> + maxItems: 1 >> + >> + gpio-controller: true >> + >> + gpio-ranges: >> + maxItems: 1 >> + >> + '#gpio-cells': >> + const: 2 >> + >> +required: >> + - compatible >> + - reg >> + - gpio-controller >> + - gpio-ranges >> + - "#gpio-cells" > > additionalProperties: false > >> + >> + >> +examples: >> + - | >> + wcdpinctrl: wcdpinctrl@42 { > > pinctrl@42 I will address above two comments in next version! Thanks, srini > >> + compatible = "qcom,wcd9340-pinctrl"; >> + reg = <0x042 0x2>; >> + gpio-controller; >> + gpio-ranges = <&wcdpinctrl 0 0 5>; >> + #gpio-cells = <2>; >> + }; >> + >> +... >> -- >> 2.21.0 >>