Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3232367pxv; Sun, 25 Jul 2021 21:54:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeCfpJsVAidjSr7znRjPNGG+VsSiJf4HYVNAk3ciNFxPLxWIjbGtSAcWByWHN+4jCAV+c2 X-Received: by 2002:a6b:f704:: with SMTP id k4mr13467872iog.191.1627275262751; Sun, 25 Jul 2021 21:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627275262; cv=none; d=google.com; s=arc-20160816; b=m2D26c5+3vYznP+QubyqFpQ1KgzqK6qPRgnumEyi5MDV4R8It9l0by/8gj4URKwiuR 2qeCZJIeG9gIoopjrrIZIyyuFs5Hz4hvA0W7VlF9/jSz95Kfx7fURCo6dvAL4GETK0p9 ua8WMtlQoCQt4j2sIQX1G6KENAnmmIu0TZOLouEyKtKt1H867bUSIFJ+4bdwe73d7tPp YlZCCInR6yRZ07Ipz6Y22HAOOGHIdUHFpsXJdVsrrjuV564qQcJMDa6QP35PPGc02pgz 0apF6kIKuFOSsItrcdKOudcaQO+0lqAZYn3lyJHQ+HSQm1mgXM59B+swYxDU1s8jZyzw EqYw== 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=qHixncDFV8oEqxI3jKRFZ+EGPClpgooQcu2CYnm2IbN/Td3zjjjVIoj7lr0tmllBH1 Xgu6/5Z+63N4vyaNmuwQ9VwDmqgfvbeN56hjowLbbv/EUC/XUZDy5htGbF5pgB+C8tpq Nt04P65vylrf+/PvtTGWfeOMpgHuC/L7suaRnD3R/h78dhayyJmo+pTenQ7SinCEk9r6 vGEsw2DEef2N/5RE98JHJ3BQHQ2myUL4DZzlp1Erxe2I7hsvspazReTpTenwmy2DG6ff p+J5Sgc7/ORg92AOxta/wVLx93SZi3aTPinnHjprMgPOfd5seg0H/Sp4a9+zPlRh01xy Pn9A== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f11si43854591jav.53.2021.07.25.21.54.11; Sun, 25 Jul 2021 21:54:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231540AbhGZELn (ORCPT + 99 others); Mon, 26 Jul 2021 00:11:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231548AbhGZELk (ORCPT ); Mon, 26 Jul 2021 00:11:40 -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 70D65C061765 for ; Sun, 25 Jul 2021 21:52:09 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id n10so2480385plc.2 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=q4/UciDNNXBiboU+kPeM+eSIx3X3wk4k24XOPce0uiMbxBu48UR6HZQzKdiWSGIypq /Z4e2JaDLWNFB69j44jL6CUCLufee1kWeJ7Pz7sRqEifMsG/dml2WNEYOOg1iJrWOHlg QT/9gaNV+RhD3zNRCKQM1bLF73FlC8ToVoSnBZ6T7WvKHoSeHGo7vGniIt1Jl5sftKSW GcHSXwFhWKjxD9HpGRtEpRMFjRqIfyqIdr9THVETgoCjIMno5Ik8Bk1AGyMlFhxz3PH4 vzKJU4KkppIR01p1Mp3E51XdeqL5Bo7R4NMRjOvdO5VN7JLZlTlds/Ssz6jp/c7S0zp2 8p6g== X-Gm-Message-State: AOAM532KInctlRZdpMEZvSG5ZM+PGK54wmI9HueYtRrWIoREj9Z6mZGw n/7ANYsdrasuTGnQg6+NvIaaqw== 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=20Benn=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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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>; + }; + }; + +... -- 2.31.1.272.g89b43f80a514