From patchwork Thu Jul 22 09:56:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 483874 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp203128jao; Thu, 22 Jul 2021 02:57:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEdLqLtrXvt16PVIE/1tstyBfgD1EEHUZ4Udn6pzR1BfU26jP+u3tOw6oni/MgxhtuS2GZ X-Received: by 2002:a92:c143:: with SMTP id b3mr26071358ilh.145.1626947849970; Thu, 22 Jul 2021 02:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626947849; cv=none; d=google.com; s=arc-20160816; b=W2rlDGco0j4EmEKvDPWYVUl+7Nz3yNa/AxxZhWFkWdnM6VRvNVXOmyYPLCC5P48Afj Xooh2Gnl0K0oucufnFc94uLKg8uZZCukX+ls2XIoSEue69Cyn/0a5h95BQjEddAVcSXA XuYZuAvDxxJxKXxhPoiaWJ+lVbspNdkyqCvgCdoZ13btnC+kNQYrWLOs9HSjdNbByLTC arVq6MZM0TKTIxhDBeMFW/9lVekCCqGyQAoZJlxFJN0jCugioz/2le60lJfJ0I5uSmoN HppoxRzesR+ahy7eIYIapNt8tR39HRxH1iTYNYIToYRa6OJ5UJ87PkX6N/G9/U7ys2wC rjpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=muwPPr/wH77yClDsFJrEFYw3n7hGXGW3QcFllPO0brU=; b=BDFLanGDsKdTvAMxs4TCPMwjxwggwfGTuz1RKCC6Gca6gPFU8B44eDRYliHv3nvABG ne4ATLzdhpdkCuLBrJ5tX212ebp2k5XxDTlyYjobDmv7n5z13R8NHcXGiGZPBSh5T3vv 1DHamJaljefTIq439Y+kXuQDGAAF8sbK0dUxH6CqdtD+gY9l3ZOHYGcExC5AHn/Dw4QT 7zwPhgPX7IpmLAP0HGuKGVRpG7e0IL9cLha/wgMZ56CXP3Rwl/ZyOnT75E71yI6APKmx PmsESmNUFyRPqItjIl4teMxbUAsGtVYgCK6vTwxckrSBGTiaSp8Dszho7vDMs3Oxuj/W r+1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n8ZC3AZw; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id z25si18113964iod.45.2021.07.22.02.57.29; Thu, 22 Jul 2021 02:57:29 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n8ZC3AZw; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S231533AbhGVJQp (ORCPT + 7 others); Thu, 22 Jul 2021 05:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231555AbhGVJQl (ORCPT ); Thu, 22 Jul 2021 05:16:41 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88818C061798 for ; Thu, 22 Jul 2021 02:56:58 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id e14so3848521plh.8 for ; Thu, 22 Jul 2021 02:56:58 -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=muwPPr/wH77yClDsFJrEFYw3n7hGXGW3QcFllPO0brU=; b=n8ZC3AZw3jP2jJueB1RZMhR02tbalhWqKiFDjPykAogWMoM9xPPXZM/xXeT557iwV0 zVxjo56XtoyPTXZ8dHUIGdZ0e5o9LsL9RZXeAHrIsa3vKQpuXZTfjQpIO2O74KzhGXSm ajmmB8uQiV8rYR/qUCw0LT+ue+IV0Jr8gpbssPKe7T01IU0QGDZ03V5pN2baNV47YW7g we02jklbUjKouKrsyHOvmp1DoGkFk5u6Yv14EDlWYZShNBF4I/Wd2BFKJu7eLZNtofoz 5KeXpmJQBYvo7SWgXVkWNZVIaMsfLwqptLsh2DasM30eBzw+YOEAF2Z2hNOmnn0HwkuL v79w== 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=muwPPr/wH77yClDsFJrEFYw3n7hGXGW3QcFllPO0brU=; b=n2u3uroZZf7GrnOgEncgbGQK5Nfgwr3SsDcDIM5p2r6NoOEImkdfyysYLD7AgqTQJ+ lQqDKbfey+DVaTj/8SxBe3zyPQO9F69kMpfYPWpOGSFuI7qXAG0PaXwbIRaX/G9KMZJ4 3qZkBfUi2LHKJnSOgYUL3oziiVhvLZQvBcOVeloluG6FQ0cH6KNKtEFKG21n7yHAN9Ym sNVcHTVQZhm2srbfu1nra7hv3ICWuheucbmisjb10V/wOqONFk69Db4FUGjnCAeMCIsx xCXIrkKXGu5Mfvz0xvWkkoXGSJvHj56BVetjvY5U9a3cAuDckMgcDERjlqrt6kpYf7N0 Fy3A== X-Gm-Message-State: AOAM533BiMNrpxIOrOZakktt8Rfe+mJpeRLYV86leGu8S4xYqNGYKuma Yr9ZNzTOZAk2cMOOHKeLn5KYAg== X-Received: by 2002:a63:4d09:: with SMTP id a9mr40115746pgb.278.1626947817936; Thu, 22 Jul 2021 02:56:57 -0700 (PDT) Received: from localhost ([106.201.108.2]) by smtp.gmail.com with ESMTPSA id u21sm29458630pfh.163.2021.07.22.02.56.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 02:56:57 -0700 (PDT) From: Viresh Kumar To: Jason Wang , "Michael S. Tsirkin" , Rob Herring , Arnd Bergmann , Jean-Philippe Brucker , Linus Walleij , Bartosz Golaszewski , Viresh Kumar Cc: Vincent Guittot , Bill Mills , =?utf-8?q?Alex_Benn=C3=A9e?= , "Enrico Weigelt, metux IT consult" , Jie Deng , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-gpio@vger.kernel.org Subject: [PATCH V2 3/5] dt-bindings: gpio: Add bindings for gpio-virtio Date: Thu, 22 Jul 2021 15:26:41 +0530 Message-Id: <3257b21c1179b11a5c62a95e138735f2443c90aa.1626947324.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds binding for virtio GPIO controller, it is based on virtio-device bindings. Signed-off-by: Viresh Kumar --- .../devicetree/bindings/gpio/gpio-virtio.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-virtio.yaml -- 2.31.1.272.g89b43f80a514 diff --git a/Documentation/devicetree/bindings/gpio/gpio-virtio.yaml b/Documentation/devicetree/bindings/gpio/gpio-virtio.yaml new file mode 100644 index 000000000000..96108cfb7a08 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-virtio.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-virtio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Virtio GPIO controller + +maintainers: + - Viresh Kumar + +allOf: + - $ref: /schemas/gpio/gpio.yaml# + - $ref: /schemas/virtio/virtio-device.yaml# + +description: + Virtio GPIO controller, see /schemas/virtio/virtio-device.yaml for more + details. + +properties: + $nodename: + pattern: '^gpio-virtio(-[a-z0-9]+)?$' + + compatible: + const: virtio,29 + + gpio-controller: true + + "#gpio-cells": + const: 2 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + +required: + - compatible + - gpio-controller + - "#gpio-cells" + +unevaluatedProperties: false + +examples: + - | + virtio@3000 { + compatible = "virtio,mmio"; + reg = <0x3000 0x100>; + interrupts = <41>; + + gpio: gpio-virtio { + compatible = "virtio,29"; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + +...