From patchwork Tue Oct 29 11:26:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 178008 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp4728810ill; Tue, 29 Oct 2019 04:29:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmtSLkXDi7EJdhIFvq1ST3s2R2erqgxHPP1HmhS8xJ52AEjEuYn3EY9U3bgO8gae2c2PDn X-Received: by 2002:a50:fc0a:: with SMTP id i10mr24871895edr.94.1572348574004; Tue, 29 Oct 2019 04:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572348574; cv=none; d=google.com; s=arc-20160816; b=eoYonmJvJl/qDxWYQXYb5LYOz00YvXjsByBhMISCnSbN4inyDYMkNgGOOOMJyTlK0v N2yRtK3/2EDm0gUKhnxK9oBsNLw+iOO+oOPLOmQwKueK5scj5FfV8cLhMdBG2hgL+FpP zbea5HfBh1QKvXJLgYgjgJ/0ALUKA41PT5fRhdg2TY9fc6zduh1iQwWl/a69r1Ji4x8v vB6IMS0shW7ayJFk1I++VZHNN6sClW462w3VXKonZPoShvmtgg4eGrqIvXSgY1ZMOC3N a9D3YNh2j2Nwr70ci/RqDX6GCmh0wbfDOhUqccfe91IebCglVjjfk+9Vs5PjKsMRR12W Hpvw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6RliGfxjeZRZKsvz7+xFZDSC6zQkkXVAUlzYsp0mzbo=; b=W457uFx7rE7K4S/BNkt/wLL26UE1i9vh6Xx9+wFbYkRwnNJ+ooXd+4qqx/piWSVotG MN1mP99Pbgr72H2SfDzskyy82W7AIZeV2d6R3zysB4jDZEeGm0Kv/xdCuqfmf3rj2iIK IZmfLm6Ju6uqJLUMSwuITxGSYrWAmevHK4VoLGwul1azRTqtkMp2uOnAQZvvPJhSZGSs LI2WLYv8BzG3YwQEbBRO8vhy8cgfaCUOhXIkp85DHt96EX+6xwGQiyACXP5bUzqvuPP2 rQth+tqsEhpmH1hhVe+VJhQxVXBfC39QrzMQEisEPmlH0DvAAGN5uP47SmzzES3ua5Zb igOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EA1r3HXJ; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 gz7si8265294ejb.271.2019.10.29.04.29.33; Tue, 29 Oct 2019 04:29:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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=EA1r3HXJ; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 S1733260AbfJ2L3a (ORCPT + 5 others); Tue, 29 Oct 2019 07:29:30 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52502 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732591AbfJ2L3G (ORCPT ); Tue, 29 Oct 2019 07:29:06 -0400 Received: by mail-wm1-f65.google.com with SMTP id p21so2157971wmg.2 for ; Tue, 29 Oct 2019 04:29:05 -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 :mime-version:content-transfer-encoding; bh=6RliGfxjeZRZKsvz7+xFZDSC6zQkkXVAUlzYsp0mzbo=; b=EA1r3HXJQSw1Wc/1K8+BmJ1oGZOA1scoI+iD/EvM0ZkSCrsgix7EYZSzLH2+yOOnlf a4dr691lyhUVb2AJqJGeTnZIRr/uHkmK2/OEeg0t1ZmsdjTKL8Mrv2hB2J2v6jOdi8dz 1Z+l31KZH+2xwp1PxWzyEzwE9k8YkdzjH3wSA5LS5yBJ5J2L1fa8U5FfzUX8Neb12QYW 69YuJnS2iwDWfK4aGK4UreoTdwZIGz8C96LDNOcgBV7KLCQSU/d8oLlv78/vw8WLd9O4 LNeibi8s4HtNlabgpVgSjlIPfUZrm9EGUQ4xGfMmFm0eFeC2KxSs/I05KusodbUCPh6P 9RNQ== 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:mime-version:content-transfer-encoding; bh=6RliGfxjeZRZKsvz7+xFZDSC6zQkkXVAUlzYsp0mzbo=; b=Xoey3fyWZzKrxUQhHcMfIBeQyJs0oJeIWgexncwerh5NLg3bYdxvHNfZqY4vYOOiaw f/aaZPcOyM5XJXCHw1medOk9hhfIOcD7AP89FzWzXkr/XXn648PUSqkI/ZVjlGC83yRX ev+k04NpzpBh2Dw+WpLA4NwZq3nwmwNNqG6vtaHFWXQ+yKi+7ZNNuG7dDp0iG81AO5sZ KXL2jybfuid85+/BalHNDzYVJs7pwBFrr/T1U+ZAA7VenCUwyPKeoZoGarbTY/H6Z09I 1UBmnLXYMv/ilIc7W/P1jzA5b79zx3GOr//6FQeEQ8AUtJpKfvfgwIrsdQ9NbKKPV6Is Q+CQ== X-Gm-Message-State: APjAAAXdie+2VV9TApsit+CDVr1CrDq+FuMiK0XDnlmK3SVZ0PCg4tsm sRbv3Z7I8EqrZVKi/fch7Ai26w== X-Received: by 2002:a05:600c:1009:: with SMTP id c9mr3586096wmc.6.1572348544385; Tue, 29 Oct 2019 04:29:04 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id f20sm2373247wmb.6.2019.10.29.04.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 04:29:03 -0700 (PDT) From: Srinivas Kandagatla To: robh@kernel.org, broonie@kernel.org, lee.jones@linaro.org, linus.walleij@linaro.org Cc: 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, Srinivas Kandagatla Subject: [PATCH v3 08/11] dt-bindings: pinctrl: qcom-wcd934x: Add bindings for gpio Date: Tue, 29 Oct 2019 11:26:57 +0000 Message-Id: <20191029112700.14548-9-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191029112700.14548-1-srinivas.kandagatla@linaro.org> References: <20191029112700.14548-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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 | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,wcd934x-pinctrl.yaml -- 2.21.0 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..432486d753b3 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/qcom,wcd934x-pinctrl.yaml @@ -0,0 +1,52 @@ +# 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: pinctrl@42 { + compatible = "qcom,wcd9340-pinctrl"; + reg = <0x042 0x2>; + gpio-controller; + gpio-ranges = <&wcdpinctrl 0 0 5>; + #gpio-cells = <2>; + }; + +...