From patchwork Thu Dec 19 10:31:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 182070 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp294035iln; Thu, 19 Dec 2019 02:33:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyN3fSxm7QY37vup8Px4GkpzfaSs8BdVQFYvbI0XDLKOq11Kv8wel4XggM9ll+QfwZNxPOu X-Received: by 2002:a05:6830:110a:: with SMTP id w10mr8259736otq.300.1576751620341; Thu, 19 Dec 2019 02:33:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576751620; cv=none; d=google.com; s=arc-20160816; b=qR3a3UgojPYQn6KM5TgD7QuQgZeLKsEKX1HcBnSY7eDBbzn+MT3YHfV23mE49mEwvR +GRzS3MoRcnbABZO2ZS5Kep58n9TbBUwMODWdOuFC0zkTvIldH4pUzKrbA3UdBjl0Efe +HbE0moc1hIFrYbHPjtAhFGC713uWb/JSoPakawEJ2wVY1J2mAGVU46rQJj/EYMGSg6a 7l6IKPr4MCIZPKfMPZgVcNb+Cs4xy9Zhf50xaomKlRlVKFFrpxXKYCnBUvcviO8hFgbU EVOyVcbAQCHI98XxQvkzLcpsUE/Ds84JPzYMkVE/9Pcxp4OFk/mKaZdoPViQVga6yx+x eS6A== 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=bP6qV0Ge4OMghuS4pDxfRI185IDu6wuYLbRLvgY6Moc=; b=Veu8CiUUJ7zm6BPeob5NVMOV+xvyrtTeaqIPCI+RvHU38HJ/cRZFMrpoKVzWIM0LaL 14ALKM9PdSV+t9D4SKaBW7AOc5ygI2KOxAOt10iXVbpta99ry0pcMMNJvX+vXVS5/aLz mtxVc8WXy5aqpldoSSLLBa0zhNmSSYGPSQpJvQrXaN7lRTVCDc/IS78VKCQTR65G4WiC qWJ5ufiqYjGa+Ppr65dX9xyzDTTgUVZ5SxrRyk63rVyQs1LCVpPDG+q60uplg8v0nXnp bNOWy6/OSJwcZ+BtfmlW+s5KnQ63W4DiaOOvsswR9gnWgm5p/xf5a6WQ+C8v6nG/He9q 1jzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SMNsyxx7; 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 g21si3015923otq.134.2019.12.19.02.33.40; Thu, 19 Dec 2019 02:33:40 -0800 (PST) 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=SMNsyxx7; 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 S1726891AbfLSKdj (ORCPT + 5 others); Thu, 19 Dec 2019 05:33:39 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39741 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbfLSKdP (ORCPT ); Thu, 19 Dec 2019 05:33:15 -0500 Received: by mail-wm1-f68.google.com with SMTP id 20so4933856wmj.4 for ; Thu, 19 Dec 2019 02:33:13 -0800 (PST) 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=bP6qV0Ge4OMghuS4pDxfRI185IDu6wuYLbRLvgY6Moc=; b=SMNsyxx7pM0b1zkW0RLF0Ik1SoN8mF1dLMIOX7+uhrefdK8m4QfUEC8B7dESlSX43D o3Mm5OxXX1I1Rmrn4vAqg/c16QLZxlUS8daAh+vH2g1yQMIfxGCGj0/au5+jzW7+1MJV CjB5wB1FWHFqTBnr0RjOy39QxfQFfJC7GICtDSTJoct4srrMWKb9neNcdaKXc8URW2X+ L+2HYf0iz/nnCVEkCxGVR1+guCkiAJp/XUKavpVFnQLjl77N/PiCHP+0qHECp+Wuz7aV NaQ2ATplLJ1sXdZE+5WBn6F0StShPIDMLvlccayCdSw+CQBZR/x2LVc0zyEIuLiugJP4 HfBQ== 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=bP6qV0Ge4OMghuS4pDxfRI185IDu6wuYLbRLvgY6Moc=; b=WgVZetx6DZv7mYDpLC0I2VHs+pkhAzetw8oqgqrD+1DS+ocy0VIgGE6zs/7XWQRUB6 4sZdXJxFD05p4O2XzHwfRzWML9cMFHt9zL/c7P97ZCXLywwUye6mDoP1tgRvsvv5xihf Y7pSaKexGV9PBzcB/KE4qejb2VIdFl6zw9uK+Jh4/RaRTBNsq+BHXzWdZCuKUa+LZf4/ 5VzQmlp2pO4c5l9UtCSFfEPFhhQuzjFreKEnEpl3Lc1NSGszsaK+h2eT/+1zeobdX9wB 4reaSePZJREW0iMDEoCAnTXA0zsXLkm0ikT2ysX0zUtj8l/VDppIkHzJQejcgPWY3Bs1 d46Q== X-Gm-Message-State: APjAAAWxBC6UYJXP9XuvFjYXDH1GetbRgJpx3rSWjOQeInOqT0J5rTXi ePWHXtChuLQvhqWy/VtjJ4cedg== X-Received: by 2002:a05:600c:1:: with SMTP id g1mr8751070wmc.131.1576751592455; Thu, 19 Dec 2019 02:33:12 -0800 (PST) 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 i11sm5962942wrs.10.2019.12.19.02.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 02:33:11 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org, lee.jones@linaro.org, linus.walleij@linaro.org Cc: robh@kernel.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, Srinivas Kandagatla Subject: [PATCH v6 08/11] dt-bindings: gpio: wcd934x: Add bindings for gpio Date: Thu, 19 Dec 2019 10:31:50 +0000 Message-Id: <20191219103153.14875-9-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> References: <20191219103153.14875-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 Reviewed-by: Rob Herring --- .../bindings/gpio/qcom,wcd934x-gpio.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/qcom,wcd934x-gpio.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/gpio/qcom,wcd934x-gpio.yaml b/Documentation/devicetree/bindings/gpio/qcom,wcd934x-gpio.yaml new file mode 100644 index 000000000000..32a566ec3558 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/qcom,wcd934x-gpio.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/qcom,wcd934x-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WCD9340/WCD9341 GPIO 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-gpio + - qcom,wcd9341-gpio + + reg: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + const: 2 + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + wcdgpio: gpio@42 { + compatible = "qcom,wcd9340-gpio"; + reg = <0x042 0x2>; + gpio-controller; + #gpio-cells = <2>; + }; + +...