Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1296102ybg; Fri, 18 Oct 2019 15:23:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCA3UAfbcsW6gkkLNIM6OVOA1N4KVbdtPXR+I1yh5VuUcOaVuboCwRl+P3jDeKG6ZuTI8u X-Received: by 2002:a17:906:6a15:: with SMTP id o21mr10833842ejr.79.1571437435030; Fri, 18 Oct 2019 15:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437435; cv=none; d=google.com; s=arc-20160816; b=SuSgsOYc+zZFsaTfzjjxjod59z6dZeQAwk4sgdVc60kbt9QCgqwPI6L6CkVZ0SOJCc MGDynt7rxLo4Iz37299khfqxnPTP1XOhB7v3LRXOjYk551w4mmjvMA+XYyBKDChfuQ69 xoC+rjZ4Ws7vgfaH4mICaxQOh2eaQmRfE5OqlMjgR9F6SOl+Noish1RtGH1r9v9gHE63 LMf5n5CzipZYqfzxFVPu02zhWes35aNwgKOpPKTDjs93DZRCCMMr1PVG7LiFyW8Hf7yL JODGKW9c+ogn+vPyqRYQ6S8cyeq2m8TYWQ+ZNtxBBtj0urWuPr/4KH/6g2JTCqk/rZb9 ekxg== 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=QGtqqoloz6hjB0cfAJP9qri2qA1iaYEqSaS6htthArs=; b=qFQjQ+uoNE7g3823+Jkaq2TJPJnWuFYDuTljOdL9tsJAmxQsC0sIecDi53ValOUNjU jBkwBS/UADNBYZu9dJrBJbhKzV+Uds9UGp7ze4RgxU8ycJOVGKhxE7DXBGEEuO0HF9kh IEcgMToa553c7Y6kVj69fLx6YoTgs0JL1dAjEN5cB/hyAL62pYXq5U8Vhsm5XCrE8lvr 1/Q5F0xlTTD1KOvyrfV/L2DHv4C0cktX3HXTr+LEHfbqHD8XGDhoqoO28H9ddUx74CKc eYIqQf8ZV8ycDSHs6j6Mvc4ftb6+tRE2MslxU47FrTCtu6+grJq3PK0K42BPWBpl2UaZ sJNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LIaho/b0"; 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 i10si5061920ede.101.2019.10.18.15.23.32; Fri, 18 Oct 2019 15:23:55 -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="LIaho/b0"; 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 S2503887AbfJRAUK (ORCPT + 99 others); Thu, 17 Oct 2019 20:20:10 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34019 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503878AbfJRAUI (ORCPT ); Thu, 17 Oct 2019 20:20:08 -0400 Received: by mail-wm1-f65.google.com with SMTP id y135so8125026wmc.1 for ; Thu, 17 Oct 2019 17:20:07 -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=QGtqqoloz6hjB0cfAJP9qri2qA1iaYEqSaS6htthArs=; b=LIaho/b0J0bCWjv6CBIj3ZqtNf200u7TNu0EqK9EI/D1EbS9cAYhiXleb9Uuiaqiu/ fXTNI2o/N4Ml6abfGPssQl9a3BGnzm9yUVQrdqtGthafs5VwIdKWiFle8XjR6MBn5VZT bsHgs7DnzUSfOZcfj8Scuv913Cu8IdvSTdCkK2X/FqwpHtzfaKSYL1iNHBPtwKy+IXju dge0dRglAXmJRAT8ibNcpVEbZ5d9nm9VTdo4kRCCDgKVtgKZDN4MVeGa/tulRTotYkk6 EbCi4a6rWfry6/yYGE5QMVEuWuLY/WZLHAkqUD4pYofrxv3I3xrhzFiQ9UXPi3lX0WKH nSwQ== 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=QGtqqoloz6hjB0cfAJP9qri2qA1iaYEqSaS6htthArs=; b=MOeL9Tp6IQsEeb8ItkCCrSVLEqpCfbBPV4mKbuoL6CPgU3SAUEygM1iKVGY+ZegEzK LIJEQceMIL9EQ/odgVUFdS5MZmLu46dHS+Sqf9sR4WJRrt/gVmvfLwlh6kz2CYDsXziw htMgYWP3+6NruEx9gcn/jmf3SE25J5BsdU6Y+OIEi/1+vse0kYfvoOUxKGeOKNdejqHk 3ZN8Nj1qzxaYhsa7VtgsdeUY8mo7Y4xnzgdGj4W3Z8Tk7U3QkoFAVaelkf743+hgKDEU VuVJzgk1ouCbFM7r2xgw/NoQnbfGSjGByS5UQ+hm5DMMkB5zQZAcTJvSjlpmJ0b0SP7y 4Dvg== X-Gm-Message-State: APjAAAVQNGj8CGInuHVCDvbMRbzlUlEgvlZJaAEVrwiNrjuwWjz5wYdI xjC/9Ul/wRrG0DxMwJB103md9A== X-Received: by 2002:a1c:7c13:: with SMTP id x19mr4991011wmc.80.1571358007133; Thu, 17 Oct 2019 17:20:07 -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 z189sm4851248wmc.25.2019.10.17.17.20.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 17:20:06 -0700 (PDT) From: Srinivas Kandagatla To: robh@kernel.org, broonie@kernel.org, linus.walleij@linaro.org, lee.jones@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 v2 08/11] dt-bindings: pinctrl: qcom-wcd934x: Add bindings for gpio Date: Fri, 18 Oct 2019 01:18:46 +0100 Message-Id: <20191018001849.27205-9-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191018001849.27205-1-srinivas.kandagatla@linaro.org> References: <20191018001849.27205-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 | 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" + + +examples: + - | + wcdpinctrl: wcdpinctrl@42 { + compatible = "qcom,wcd9340-pinctrl"; + reg = <0x042 0x2>; + gpio-controller; + gpio-ranges = <&wcdpinctrl 0 0 5>; + #gpio-cells = <2>; + }; + +... -- 2.21.0