From patchwork Mon Jul 26 04:51:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 485803 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3476619jao; Sun, 25 Jul 2021 21:52:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1/GRK3yCBl+YuUv6VdX1mKJmc2NUhfw7U/p66OWoCeTAWcx8FTMA+LnfO9tkk4firu9zh X-Received: by 2002:a05:6e02:12e3:: with SMTP id l3mr7330088iln.6.1627275131865; Sun, 25 Jul 2021 21:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627275131; cv=none; d=google.com; s=arc-20160816; b=EUfS6ThnembzxEUTrFXJqF5R8UoaUnfe+0nl7POX8wwnmesrDthmxuNBCQi1jZlx46 xKNMzVSbRg7WSWzolhIE5Uh7bNN7Gyj76wWTjcr1RMB4812g0XwvR20OHgL6LlAeurHE i97ud+yW9rwzXc+J7Jt+kLU/ma3QrOFlKp3Lz8O1hUVd0XWScLKZVMDtfSOetAs8+q5A cXpcDiQ6TaktGouMLSpv5wj1r9bPFI/PfR8Bx+cZB+fcG/BVR0Dr1MIKam6j/zl/inch 8dU7/sxym0aI1olM9y8VKmmsEL8jPswFnT2iQKuLRyTu8jJ9lii+hv+EBNpPUDuDiPLU +lSA== 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=DKsWkQdXFCDi54/wylJdbEAroc3ElHTPnkx3MpaycH6Vx+kriI4lgCLWiERaq2hG5L bTXRCPqjv5tKBlqYBo3gQwLl7H7YV1k2FD5OFLJ1puaQ1eejrgDOMPQcxypI0Xt9JINV Gf9OtZTegasLydDhIjbXFpLK8BJ3q7R69saJ32YmTsNJvgymwvGdd6UPpp+2wvkqsysn oi5IXg0l8/6kiWZ1Ja+4zcPPUSOf40m+Scyt01rtAAF9iSgfXyaWrx5k/WRcK2quUS6t BUzPujBQFlsDdZ5KnCNDBUhJh2L6lN+nqH8LlXpstD0cv7SjcKUwX8SVJw/j55f5QQzA rgpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ycpwrBVD; 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 p19si28958143iov.90.2021.07.25.21.52.11; Sun, 25 Jul 2021 21:52:11 -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=ycpwrBVD; 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 S229711AbhGZELl (ORCPT + 7 others); Mon, 26 Jul 2021 00:11:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbhGZELk (ORCPT ); Mon, 26 Jul 2021 00:11:40 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DB77C061760 for ; Sun, 25 Jul 2021 21:52:09 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id i1so10138182plr.9 for ; Sun, 25 Jul 2021 21:52:09 -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=ycpwrBVDwGd3Ld3v1W5tGdLHkVB1bJPYN1wrP6W6KB0X3EJPQBADk6S/2yCJy6YoIb CMjXIMA7JeZJrWSHKQIeMbTDlKhkex5g3KPI99HW0FUzbflO2F8JG/DSxOvg3Vr9oMx5 +3FJjFdZbbzEvubq3LP0cjPPk43QYpjvukKxiqn3TQZoyQF72iOSJYLR/+gT7+tNMxES EzOMkKRg48/0AcFriy2csYJHtgUtDVH+ZMJ5R5K4mDm5kuuPJ/b8B639fKzbd10hCmTD zwOyEwPH0mmxUadbtLGlt0JD1DI9QBKl8jEfeGZPXdE3CgVRdrJIRizl1hhyN4xs9QdV nwdw== 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=s8E8E3+56SGtf5TPoR5evrstz4/dAAjxBUrAuirKx4cqeKocttKOCYQw9XQraV2lQK JLd7C7Gi7ysS+vQreFDcyo5S9qu3jEJc791+wDdrorpXbVvAmX4SRAb691dVixZF1W18 0PwW3/rC/KhDANdg0dLcaIZ3nfesTbGfqOkj1bsKnwEcmzaq0rk39rj7UZwmtANVusZt JypPdgdx1rliTM2xVThjlMGR2LNwOWsuhy/g448MLDtCh8smMikWlXNhBfDLl3Xwsa+x RZm3rRFz6DSPSGXZxe/XQzfqvqcSi3g6/OD5BDef/OvqkTZS54GQpK/HF/+STZuvA+/j TJ4Q== X-Gm-Message-State: AOAM532lVA6PGbDhHT8/kvKvqCdSUZLng2kIh747FiHbbjE45WNsHffT BqeCwEh75w5CXaM03WqFScqUjg== X-Received: by 2002:a17:902:9046:b029:12c:e88:429c with SMTP id w6-20020a1709029046b029012c0e88429cmr5300973plz.77.1627275128984; Sun, 25 Jul 2021 21:52:08 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id z5sm16448583pgz.77.2021.07.25.21.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 21:52:08 -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 V3 3/5] dt-bindings: gpio: Add bindings for gpio-virtio Date: Mon, 26 Jul 2021 10:21:43 +0530 Message-Id: <605b87ce93b9a528810a5857984bfe6b913d5e73.1627273794.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 Reviewed-by: Arnd Bergmann , except 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>; + }; + }; + +...