From patchwork Tue Oct 15 17:30:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 176390 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp6077252ocf; Tue, 15 Oct 2019 10:30:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH23/Cl400SjMPydP1kW0ePsC/9Cd4z4A9zm5a163fovsBRvMDbAOOiMfBPqihJbVFWfP8 X-Received: by 2002:a17:907:4366:: with SMTP id nd6mr34644551ejb.97.1571160649157; Tue, 15 Oct 2019 10:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571160649; cv=none; d=google.com; s=arc-20160816; b=wE5qF0RSdrNoIbbP6wV2KsZUEIeUBc+nu/vKUMehoA7vMk6hMKpdjz4i3lWMZeDjAF mwZMkVGQnY3nLOzTcZytahFOAfFUxCUR3HzQsxXFkjjP4CxTpCNn6bfGYd7Be0r82R6T 7mJaaWz5OsqasAjlm6oUbvsnzlQF5/S9KSddemv7kTog/0Zt3epI15smAX7buXKaUvxr QWUFoPitI8N1oYiR+9miFHFoz/l96TV5XfuKNcmumbNIBcNJa9pRPkSMsLF84alV7Rv5 R/sb+OdihYa2yTMVUTw0j1kcmbEIT+2lmb8D/qrpdBtR89humAM5alC13jAnADdHnXu7 MDJg== 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=EuuDteNlX1w7B30MVmlyA26kV2aNmSDyWhYGdU9ULeb2AXPXkWUNquN9syNPp0dnAX 4z8QVb7kX1n/8jg9DKyp5YTxDgK+v1zwAbUwGY4RoNBM0i2HfJarW73MB1fd19DMp/9A 4YWsWFCACJepjG6QQyoPQXxTf+LhkadQLbJ9qb95cY8VLj1OtF+s+f2l3iuhymO/lF1d 8LrvrjuYbRs2t378giGk7vVOsSLdg/r1h56n8w7CqW86fRPoR5RfEBx81m+hpxZrPxFy VM0TocE2juDEflGOwVqLxmRO1sGQzGAXMWMOxYXV5xjfAtEwR/tprYnQ0nwFOuOIYjE3 IBfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lpDLdyz6; 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 r26si13662562edx.61.2019.10.15.10.30.48; Tue, 15 Oct 2019 10:30:49 -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=lpDLdyz6; 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 S1729710AbfJORar (ORCPT + 5 others); Tue, 15 Oct 2019 13:30:47 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39062 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729977AbfJORar (ORCPT ); Tue, 15 Oct 2019 13:30:47 -0400 Received: by mail-pg1-f195.google.com with SMTP id p12so3219688pgn.6 for ; Tue, 15 Oct 2019 10:30:45 -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=lpDLdyz6gnJaWTKjbVWSVfNBu6KMNSTe2jzE7hfZCBE/yhgGo3bcfsuo4VE0UxQoWT H75k5eMOlfLtO8A5ocoGCBC7WwIrGu5NhtVp7sU2OSO24qCzmwJDv9mjbf2XfFIjl7AP o0S59xqf2//C6qUa9OfgSXewKWN/9kN7P7YL82zLiYeepojPRIAT70xwjfgaY7nVRaaq MD5K5/WkIIMWT6vpdY5VfZPa9lGszMYcM9U188QDbEmSIifvhXo6ozxs2zk6P00wavPd x2Mtub+9nA8TRjOg44JFhRheRbLuOWlMlpV1hlNq3nE6bqeO8B0DoDLFYO+gjSMX4vyS W9qQ== 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=I2iIQi7slH4zdb+r/XMeVAwPjvfClr0zFHinF0ckWxjgNia3byAQpN9/4rOGdOwzo0 VcegKkg/3GiYn67Fa8pwyqKsENAaMyzd/HO72SCf0vedTLndtoHFgem0CMRbCi2z6UCe kJKJee2WHcBfd0eoCFSRJL1/7+K0p1GhyWsEN9NHxvJCDv5mfM12SQu1fqOvmVE9EY9i iGbKiBu6RB+yt2HPT+XmIO/hIMx1BKW13z4Mly1hugOq0wUgcsknNoJMl4LqiwUzxsDO Kg2TnvmhvdFXSsfF1Q+D8Bk6EEHHwpjtvkvYu04cWgP6XuOf14+xPru+pucxRhwuyBrS Ih6g== X-Gm-Message-State: APjAAAVfcE+mnDDSoay4y67DDg4nlYE7DK5tjh4LA3KbsoAF+kLhWnxv ERhrz/HVZDZe3X/CP8sh3RVb X-Received: by 2002:aa7:8249:: with SMTP id e9mr38929777pfn.46.1571160645036; Tue, 15 Oct 2019 10:30:45 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6003:7cb8:25e8:2c45:fab2:b0c7]) by smtp.gmail.com with ESMTPSA id w11sm28033563pfd.116.2019.10.15.10.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 10:30:44 -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 v2 1/4] dt-bindings: gpio: Add devicetree binding for RDA Micro GPIO controller Date: Tue, 15 Oct 2019 23:00:23 +0530 Message-Id: <20191015173026.9962-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191015173026.9962-1-manivannan.sadhasivam@linaro.org> References: <20191015173026.9962-1-manivannan.sadhasivam@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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 + +...