From patchwork Tue Jul 27 05:23:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 486660 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4197695jao; Mon, 26 Jul 2021 22:24:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOo9SrxGY7Eh4x7F1PWt/0zvvsssRJjVh734xo6wY1lSw4jdLs3ZByQUyka8yQnTj8BXOc X-Received: by 2002:a92:ac0b:: with SMTP id r11mr15315009ilh.44.1627363458436; Mon, 26 Jul 2021 22:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627363458; cv=none; d=google.com; s=arc-20160816; b=IpUoJgfTS8rih9EYjmwloBzdoPqProvnajRU4Ea0IiNQwns+wo3QZf1Cnq3nFZXClP Ng4TCMrkImMwGFhYWteC3Xgxt6qPicRszBucfb1s+Hxgded17ZM0r0RSuU6ktMYOascu IiNNR8FAEqFCCofudlovVA+s8KWGeWnnEkzFXHEGF/jsDfEpoGOaZQH2YNUo2v4kE1xu cYsMqYTSmzaKKC4WXm0I3RyoskGnlUQbEBruGpqFvmwmHTXhPgNvV9zJOrsCm4qEr1/0 xN1E/0c2dxy5VFTTLF+lq8+/0eyoFZKKjy2OlqG4RJP8JkBochv1pUPFfEdg9AHGc72C +png== 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=xHUwfXrMCktpWTFh8tgPEYEudq0so6k6jsU7prpKKxM=; b=Y9ieMaRNvH5GYRD0qmKO3LwgN1DAmCXsmwDpSOBv6tN6FKOkmtX9Jna48OlhxsMEtZ O8Y3eHWwSIXUMOk1y8n7u4KiNU/0zcM+6N1XXPJWmJmiUH3jYaZuoYtDPWyVs9U8z/lw SqJj/tl3NUlWsoUWj8GYUcDOekpqarrwZpzNmhhaskIQQMoin7ulrL6HM2pM8r2z9Z5n qScoVZRBsyK0wY9e/fmC7Gs8/0gXI8OpqoNHli4heE5wNAYY/FfxGoToAgZiNnHUdGrS E7ZGGcxDcs1PYl8tWvd1po8LEgKhvoV4TzRv1MoVSgt8R0a23WL64iR3dsQk6Mk+C2Mi CrDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IUw/yKaT"; 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 q8si2715784ilo.95.2021.07.26.22.24.18; Mon, 26 Jul 2021 22:24:18 -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="IUw/yKaT"; 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 S235294AbhG0FYQ (ORCPT + 7 others); Tue, 27 Jul 2021 01:24:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235280AbhG0FYJ (ORCPT ); Tue, 27 Jul 2021 01:24:09 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B2A9C061757 for ; Mon, 26 Jul 2021 22:24:09 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id pf12-20020a17090b1d8cb0290175c085e7a5so2562044pjb.0 for ; Mon, 26 Jul 2021 22:24: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=xHUwfXrMCktpWTFh8tgPEYEudq0so6k6jsU7prpKKxM=; b=IUw/yKaT2Q1avrSaWO/Gu4k9VthmbqMHeBs5c8FGhtFdKAyTgXjTmNrLE5oim7W+Nz z2pGb2uJc57bBUq2TY0YF4ivQFhrWCWSAhVQ60/3uM8JhtbsdJ1zsKg327J9Fbp2qarn Dkz0bNo85bdqr0Gppo3GV1P0tU0IY6CSAv3oF3n0tml6DogIuCD0up0twu3esmt096yU l4DkTnFL226WUztDxN2hxLijlYeWHNtq+GMME0XKKICf8a8ajJ0b/v+RWeSBdMxePDPs yDne1HDTuUNw7sXtsK+66uPRpjqIpGS1IohIGIw9iIQzzuRcSk3O04WT6f0Y46tOBo4Q XB4Q== 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=xHUwfXrMCktpWTFh8tgPEYEudq0so6k6jsU7prpKKxM=; b=VPtbtceLS2c+/41DYJ55PqFUkXaQ4VuZwrmqdMm1MDYc7Ldxl6O2TnRd89JTHIHPo3 UrNZEof89oDuznRvO9SEBfLpYOHRgzRyXgb0wtD5eWFv5vipuaEOm57yVlGfATGy3zTf grO0ns0DADZCRcj3u2fNBp6ydagkSp33dytROz3YOy56z65xjaWSUfMlSoxRA+kQ55I7 pAQgDHPBur1S7PhKMK6WQ+vsqag7WRSHfyGim7A2HsF9WikF+8bmPmKYec1VN6MOo+P0 kkOmd0hKf3f5XQQ5WqJGWBCwvohrDovzrUaQe7LkAeeJui3aI9OmLWDJOddx2GVjvC8g 1krA== X-Gm-Message-State: AOAM533AItbHAtnQoLjlCQnI7BTCE46d+VebLz7G1zU9lrjUDVozUMfV V6eQM7KtkJnBeyVUt6QT/EJt1w== X-Received: by 2002:a63:550c:: with SMTP id j12mr21589541pgb.31.1627363449249; Mon, 26 Jul 2021 22:24:09 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id s193sm1917237pfc.183.2021.07.26.22.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 22:24:03 -0700 (PDT) From: Viresh Kumar To: Jason Wang , "Michael S. Tsirkin" , Rob Herring , Arnd Bergmann , Jean-Philippe Brucker , 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, Wolfram Sang , Arnd Bergmann , linux-i2c@vger.kernel.org Subject: [PATCH V4 2/5] dt-bindings: i2c: Add bindings for i2c-virtio Date: Tue, 27 Jul 2021 10:53:49 +0530 Message-Id: <33c317b95097ce491845c697db1e8285e3ec1d41.1627362340.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 I2C device, it is based on virtio-device bindings. Acked-by: Wolfram Sang Reviewed-by: Arnd Bergmann Signed-off-by: Viresh Kumar --- .../devicetree/bindings/i2c/i2c-virtio.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-virtio.yaml -- 2.31.1.272.g89b43f80a514 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/i2c/i2c-virtio.yaml b/Documentation/devicetree/bindings/i2c/i2c-virtio.yaml new file mode 100644 index 000000000000..7d87ed855301 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-virtio.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/i2c-virtio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Virtio I2C Adapter + +maintainers: + - Viresh Kumar + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + - $ref: /schemas/virtio/virtio-device.yaml# + +description: + Virtio I2C device, see /schemas/virtio/virtio-device.yaml for more details. + +properties: + $nodename: + const: i2c + + compatible: + const: virtio,device22 + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + virtio@3000 { + compatible = "virtio,mmio"; + reg = <0x3000 0x100>; + interrupts = <41>; + + i2c { + compatible = "virtio,device22"; + + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@20 { + compatible = "dynaimage,al3320a"; + reg = <0x20>; + }; + }; + }; + +...