From patchwork Tue Jul 27 05:23:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 486661 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4197736jao; Mon, 26 Jul 2021 22:24:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrDaITmdLCAVmeIsx3kD0Pxzxd8qsxzM/pHB8wVzLvnFnFkDo6ToKWokJ6sRqEazmxqv+3 X-Received: by 2002:a5d:96da:: with SMTP id r26mr17890205iol.47.1627363465679; Mon, 26 Jul 2021 22:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627363465; cv=none; d=google.com; s=arc-20160816; b=qDN/5ofvGRvTuqGeF3yiK+yNI+ae7P+1TPTZs0HJYfdWHYSLVGncub0WchYYCY2CHd CccstXrVeCRBGrstE/7RLAl1njAhgB0lNGCF1lTB4olcbZQ7XzQoSWXTg3hQIrJD1Zgr tetYdMcCxAOUXsj37HIh911GnC95AfsxQc1odiC4JEpNgKkFC9gOPgsCIqhDUU7NWjNy sBXb1G8zoWsnMINdz50NQdyG7+TqvLFiUSLWRK9bxUI1oeaRRSS7BxOifEJ/6+tsJW3z eOn3Yi8goYH8qLjUDbKWvEVMm+eTIt57G4uC/v5Vlv856PvEX5XYRUKtxLYnKl7YQyW+ s2lg== 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=Ruqu7XRyeoHO5d3dL3cpXjWaNCM/mJSqSGYC+47F2jM=; b=wvl2T0Jfkg/sELbYIpanYLKe/VJedNTmZWpq9F4GJRWXGTVVH//6odfp/28q0rz7to yOnzNUWRiOZn9TVfff9hWnnrzvxDRkyQK40zLg4UaDqj72Owrs+AdyTqJ2oVbn4JSTDF qvpGbI8hleZWQodAHU50J/Z2QTDWiVGIQmaEEkaXQRK/fwMJb2FpDuzFNmxeIvGofoJM xbB2aFd0lFg7OjRCDk7Ji1LUOn1ufNJk3eoFD3JtR+c0NiqMdJNdwrn9xtIBgPfGtnhn gjcxg1wMOq9ltAz7uMDyLWaz+1G2dHSTgD9pre6ZgszWS6J0t8eVsRedbIjwcQqMO/iZ kHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OK5Eq5Ea; 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 a4si2097346ild.162.2021.07.26.22.24.25; Mon, 26 Jul 2021 22:24:25 -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=OK5Eq5Ea; 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 S235306AbhG0FYV (ORCPT + 7 others); Tue, 27 Jul 2021 01:24:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235307AbhG0FYS (ORCPT ); Tue, 27 Jul 2021 01:24:18 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D98EC061764 for ; Mon, 26 Jul 2021 22:24:18 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d17so14427080plh.10 for ; Mon, 26 Jul 2021 22:24:18 -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=Ruqu7XRyeoHO5d3dL3cpXjWaNCM/mJSqSGYC+47F2jM=; b=OK5Eq5EaYOj7pmvubgA/5zHGMhwmsXjjVac7YqdjIyrJAuYnBWil+CUwlP04n+LrdT f5NKctWjool1sMCzalGRQvx6uWxHQeH0ophl0ANynHrmCxpgHGRQmAxEqwdIo+eT4KDQ WLDPo8iG6MTUXW1jAcwHZu0N2HmZNkGgfXq6CU1BwTjN11zZVyUjStSvUvZHsjxeBlmH NWp7U7o5qADjx99jjJCRKdgiwdXKD5RvwtZaDletZ4v0zzsCbg511OuTR4OoWLgk30Jq NfULFuLm1p74l06sdwm4e0TV5w1i1+ZVtfOSnHu/Y25TVbNzI1Zx4Y0bF3t2WzRxEdHx fNXA== 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=Ruqu7XRyeoHO5d3dL3cpXjWaNCM/mJSqSGYC+47F2jM=; b=dLF6CSBzfTRAlOcN6x0ORqt29lRwcIjaFaAMFq9vD+rVB4cewfQLiwRlKPHc4/DCIg 0p5wdQEQ6iFFlwcL2UJLGryCZelJXF+i/oiAqz9C9utSXkUpnuEmLXvKcZo6KYaR30mw JZkyQjqaCAE0wa7a+vmY8P8bAwGTlo5+hPVh6WtDJzuyV1pboDeL2G+Rhi5/R8k6i6nB eEWTm7yFlxJrI8Lz9gnWNtAjYX0Za3ZHfqrN/tpLxifEo8Twi3dDo4UEphEUbgdBdwPo 8ivlkyOhEThR4vXIP9dix+e1DYFb7Rpo/kDnn5yzQf7arAcVN8Am6k4ClNzVHDm9UyBE cb+g== X-Gm-Message-State: AOAM533QrH9gneHMYjlfyr3DTitY7CDiIIifsMtfW9LLjGDYUn+m4B8X Nh+wgkAcU86T2AeUZKykIczelg== X-Received: by 2002:a17:90b:ec5:: with SMTP id gz5mr5361661pjb.77.1627363457626; Mon, 26 Jul 2021 22:24:17 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id c23sm1929324pfo.174.2021.07.26.22.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 22:24:11 -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, Arnd Bergmann , linux-gpio@vger.kernel.org Subject: [PATCH V4 3/5] dt-bindings: gpio: Add bindings for gpio-virtio Date: Tue, 27 Jul 2021 10:53:50 +0530 Message-Id: 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. Reviewed-by: Arnd Bergmann Signed-off-by: Viresh Kumar --- .../devicetree/bindings/gpio/gpio-virtio.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-virtio.yaml -- 2.31.1.272.g89b43f80a514 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/gpio/gpio-virtio.yaml b/Documentation/devicetree/bindings/gpio/gpio-virtio.yaml new file mode 100644 index 000000000000..601d85754577 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-virtio.yaml @@ -0,0 +1,59 @@ +# 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/virtio/virtio-device.yaml# + +description: + Virtio GPIO controller, see /schemas/virtio/virtio-device.yaml for more + details. + +properties: + $nodename: + const: gpio + + compatible: + const: virtio,device29 + + 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 { + compatible = "virtio,device29"; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + +...