From patchwork Sun Oct 13 11:40:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 176071 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3236791ill; Sun, 13 Oct 2019 04:40:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+SvS5WQcTXMPiZ+r8GPviRslBtFjkNnMh58G7EVRcwlDNfR89vxrPDLKPljAKuxdaHq5r X-Received: by 2002:a17:906:2cca:: with SMTP id r10mr23902151ejr.108.1570966857568; Sun, 13 Oct 2019 04:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570966857; cv=none; d=google.com; s=arc-20160816; b=No+uXT8nN+HzpcgVxXPNvvqaLmT6Dg/0ysnB6lpTZ61vD2jS/cKOu44M9DBNm2xF+d Zm54Grw4VOh53VPyMx1BR6HkPFNYeZxSw0VChuzVnfyVDafYjXtu6jBv3Ed2APt8chGY 87yaXKokIKIz/l12+UcMUUrgftkyKwTRcyk4z72KI/b+YG1UdZTBHDPhiGxC7/B7k9Ph P2+Cl+4rndsjb5kqypWDqkv6v0iopn6QVbav3FgAxnVR/kCz37JsITA3qQBkZofSMQ4j bTZfoDsYQHcXk6sz38LiAIWpeecKvtCYy7Wk/Ilaa4h8m4qvxDuExzsUnoj8n1IcXzjH UhvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=P585Wb4GdNSdANLbtZBTejDHy0hzt6pLG6Y0SHAZ9bU=; b=x6EBbl5DF4kOHXjX2EXAVEtQQ7Tp0fKEtCucQ/7rR26hj92WiblouxeUjiQcWzyGh0 QIen67N3Bg8X/8p1jJPEozueh/vJ9A2E1DmC2+FQmp72QZOjAuswx35zHRAJ8LSV37M9 ypfTR8114NyzBYfY9uP3bVLv6f0/P66/2K0DLRiZaclGVnDodb+SkbkZDDN4lX3Zt6zS g2dN9cPpfbMj/2TiclhvUIH37mUpUCWi5IRwqhXEi8Ksy4wdjjA4xsP4PBFFcMZSjtaT 81TdCBC52wdZDiPW//HKouM35Mp6iMcmwcQUCifCkp8GtaAzi2fmkLEyR8rks+uemze8 HsMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Sq/HNP5Q"; 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 g90si10874865edd.329.2019.10.13.04.40.57; Sun, 13 Oct 2019 04:40:57 -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="Sq/HNP5Q"; 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 S1729026AbfJMLkz (ORCPT + 22 others); Sun, 13 Oct 2019 07:40:55 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:45485 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728956AbfJMLky (ORCPT ); Sun, 13 Oct 2019 07:40:54 -0400 Received: by mail-pg1-f196.google.com with SMTP id r1so7230928pgj.12 for ; Sun, 13 Oct 2019 04:40:54 -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; bh=P585Wb4GdNSdANLbtZBTejDHy0hzt6pLG6Y0SHAZ9bU=; b=Sq/HNP5QsB5o9F9tBTKX7L0Z4FVLC9h6ADI4RXKZarXPk/p/8UNkZ86I+L11wvyGVV WW8lS+FpIJyO77xwLrV2x1AfGD6yZENx63WR/afl2Tyt4GVgcX6zmS/G67iyJNlikhf4 s+R/CfgSkBDkP+rEZhiDL3NLFfwyKzzfmUMd6ekeh0dVZER5Ro6A9nJ/dVS9craL7b1M WDfkcbovDfQ+6LC95Cl4ViIvZxDEAHrsGpeZsmnj4t4etr4FLdjkcFuzOnaFw/LzkjzP U8wiHmqErCnk7duw39vPp9nejXK5KcCFcbZQIVf01CsY/HkWyagT7sBFbM0wjaosBS4y jJbw== 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; bh=P585Wb4GdNSdANLbtZBTejDHy0hzt6pLG6Y0SHAZ9bU=; b=YqhrONHmeefjVLk8KfpszhehY7VmI3Q0pQy0K8CyNh72ALPe2WrBc0U3zzexGX/5Fn 6qmQ+SUsE+h1DA673KeIjBghT//XJzkfXnXRq+gqTW3LU+KjwCnobxCbqV5zQAy1kVmx oTPWhD7xdu2SS8ZOcuT4E27UajLnh3J5JPnXtD8wHH5wk9N1uTuqwV9LwaylShooCkq6 iS+KlYetaaE86/Rb1NaJKeKgMd0ROGbL61FtujRRjdClDkPtQpdxdscv7STDhLBXeWBT CJp/l9LOxVOwIPzxh95VCEDFNdDlQqNCAsCdKehxa3xZh29eeHtqvG/sB2rzXPjbx4dX wR0g== X-Gm-Message-State: APjAAAW8dX2beQVmZTi6HlkTj4SJ4YFVQbIOfoXV5dTH0+IUGJXyIvUe IjSPUmwNsMntS6XxUWBZBZb/ X-Received: by 2002:a65:6408:: with SMTP id a8mr27308726pgv.357.1570966853733; Sun, 13 Oct 2019 04:40:53 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:8e:4f53:b957:652b:7622:f311]) by smtp.gmail.com with ESMTPSA id g12sm23165736pfb.97.2019.10.13.04.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2019 04:40:53 -0700 (PDT) From: Manivannan Sadhasivam To: linus.walleij@linaro.org, bgolaszewski@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, orsonzhai@gmail.com, Manivannan Sadhasivam Subject: [PATCH 1/4] dt-bindings: gpio: Add devicetree binding for RDA Micro GPIO controller Date: Sun, 13 Oct 2019 17:10:34 +0530 Message-Id: <20191013114037.9845-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191013114037.9845-1-manivannan.sadhasivam@linaro.org> References: <20191013114037.9845-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add YAML devicetree binding for RDA Micro GPIO controller. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/gpio/gpio-rda.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-rda.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/gpio/gpio-rda.yaml b/Documentation/devicetree/bindings/gpio/gpio-rda.yaml new file mode 100644 index 000000000000..6ece555f074f --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-rda.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-rda.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RDA Micro GPIO controller + +maintainers: + - Manivannan Sadhasivam + +properties: + compatible: + const: rda,8810pl-gpio + + reg: + maxItems: 1 + + gpio-controller: true + + "#gpio-cells": + const: 2 + + ngpios: + description: + Number of available gpios in a bank. + minimum: 1 + maximum: 32 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + - ngpios + - interrupt-controller + - "#interrupt-cells" + - interrupts + +additionalProperties: false + +...