From patchwork Tue Dec 17 12:16:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 181878 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp5665600ile; Tue, 17 Dec 2019 04:17:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxE9iLThytGU9qMZuqUvsUYZC4HHdfJfQWB6ZUeyAIBSA41O2PBQzLHaz3oBhO/fgiCkbxT X-Received: by 2002:a05:6830:1715:: with SMTP id 21mr38280868otk.67.1576585040092; Tue, 17 Dec 2019 04:17:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576585040; cv=none; d=google.com; s=arc-20160816; b=dU3d8Kynkq6H73Be+i1W8Pj2CWQ9QxlNJ0WBtYjp5F/0CwKw2JvfLfvlGw0MPwBWy8 Ermp0UlRTElun2v+uL5Y3/eAHq0G0Z0l10ECGgJad9DRjbwqgciaztfFTgU/HObYZ9HK JrkUZTuHDM6c7iHuJzw6ZQ24ovk+0kleY2zQd1l5qqueyWxLD0zc7swfat4OVCSs0pBA e0JTUHCMqPCgvkOZfqwcX9TKyfsS858OwFoyK6bX2bGiIYAgeI7HYcrMeE/nmriiCykh 8AqEhyEqDE5OPiCJB8g06nz9XED0I7eoRPxV45jNwFp11RxGrKM4LNU08+a/JkWqYNn3 Y9UQ== 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=jBgLM1rOSWdwsxev7gpdo0RQ4l/YpiuNwUu6iTXybl5DL3X/dypit6medch3amIibO ExaaeB3FD3vUZYZ52X21ELWe2XvDaertdBmnIFtLN/BTE89ikBpoz+BYcRv+NB3Ip8RD f1CrKRj1smLuhCHk+jlTz0w3rDvNvo0jmn7PgR0M3jToR9IlKCT35wTSU+17U0rv1MHU ILt58XGXezXtvo4jGE9WfGfdIo2njGrseocpN6442pHD3gZG3LOb8bU9x65JjCUsNmKg LvQ0JwUiWuzsWF8Bx6HyoPjfXmyb+FLHhtQYzORpQZtafhmo1VHV70W3zF3nOOHOt1pG D45Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tX7eVcCe; 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 n5si2397640otr.199.2019.12.17.04.17.19; Tue, 17 Dec 2019 04:17:20 -0800 (PST) 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=tX7eVcCe; 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 S1727967AbfLQMRR (ORCPT + 27 others); Tue, 17 Dec 2019 07:17:17 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51791 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727926AbfLQMRL (ORCPT ); Tue, 17 Dec 2019 07:17:11 -0500 Received: by mail-wm1-f66.google.com with SMTP id d73so2722378wmd.1 for ; Tue, 17 Dec 2019 04:17:11 -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=tX7eVcCe82xuhNC4PtRdC4o19ggzlkpXXKC3ofHdPnMGoIBdtJ+n9h63ySJTmqXnfX XcmWluL3sri/Ms32jGrFx3Hhlqwc/BblRQbRgxlHZtxx+jMd58YB+/Nq7GKl99YaXLi9 xof6rXshHUY34q8W9fYqqHVRUuJfD2mkcs6XshUdzC3lYXhSArJEHUDhht9Ly3Wja5IJ hK5Ioh1AoZiPz7q1f+dwc1Mq/aZNn+TTrfW/SoYMcR6vnLvHjAesK5r8xG1SJ82V/Ur9 223ZaJK29Xg1SvhHeHjgC4hyzjJcr5yNigxGHDIgKaXrxMPBIWvsoOoGppDTKebbwV3E SsUQ== 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=V4uOYlr1JsGPPLwinvLKMc06ozRxeF7moKFAJGtPF2Ps/Jv7Az3NC0mTDvHlFR4pWY SiIwQ8JfEJef1zJbp1gfTmUnSav+K+66O2LE94ff16P1m+S5qsL0zBZOf3IbphumkLgT qCByyTbkARiMls07bFeXRjiSH89t1LKFjuYMiqs0galHolhVR6AT0RjlXRJgGL4n39oZ nIfdzdsQJbcP1ICsY42vtOUMLfD8zonoOXNDK0dUKg3hWxqO3D4yNFCdNCrhPfYoRpAa X0bxMPXpBNSTj6+N/Z41P/c21WmYBT1IGSh1XdWqDWDLv5LQFlruc1eV7E1AE3FLhbjJ afgg== X-Gm-Message-State: APjAAAXZbFjK33lZvK5oqL9NBPn/8oPy4jHNu9LKwSDvh/49A13Vsc85 ybpynzK3kq5Hq8rmVOopAUU2Tg== X-Received: by 2002:a05:600c:141:: with SMTP id w1mr5056232wmm.61.1576585030660; Tue, 17 Dec 2019 04:17:10 -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 f1sm25087270wru.6.2019.12.17.04.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 04:17:10 -0800 (PST) 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 v5 08/11] dt-bindings: gpio: wcd934x: Add bindings for gpio Date: Tue, 17 Dec 2019 12:16:39 +0000 Message-Id: <20191217121642.28534-9-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191217121642.28534-1-srinivas.kandagatla@linaro.org> References: <20191217121642.28534-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 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 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>; + }; + +...