Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3622313pxv; Mon, 26 Jul 2021 08:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPy68VGFhw7f84AnIzI16A4nI0YkzodEjlAzIHdak1KqoZp/Ar5qf0n34d5p9nkgaXnYzJ X-Received: by 2002:a92:db4b:: with SMTP id w11mr13951908ilq.297.1627312154964; Mon, 26 Jul 2021 08:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627312154; cv=none; d=google.com; s=arc-20160816; b=WUNYKpoQTfdCYCEhzRkeBjFOnzR9wz53URWTgFXKRKI4HlGPBMZk2nxjTX6+uzecuR 4byNbcIs/R29ANfdgXSJtfSYfBfyQKDRi+UHKJSHOPFColzXuC8WzBw6KeXthSGNwF7V zmfFbfFMVfTMRHk29jzngeX+sBA/lihN8PUy++sLDwlKnslmBHi09LKb8yqNX/piMKVi G7P0LwYviNYrqbUuOT3Or4KUqwv78kB5ef/7lpaPq907PHdB/fkWBn1mTnIK80873gse wHoRvFkNNHGQcn8BqlK2ZLtzd8ssLaY40RrVCkFj9VmtTC1vlzyEMeXG65ZJ5yZHd4Ec 1UmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OO/vJPUePyy/Fm0kSvPw9snsFImPQXgOa+2mOQIiLiQ=; b=Yv3fdCy78QIzjlOfqZsk+PIRKea9vsZw0qS2s7I7i9AchAFMjNTWgfJ2vSQJb+QfN+ xkqU+pbcPozF6Y048q6gG7+deivOmhF4k5r7jIwxArrGj+xxSoGhouXsnqjRIzvYmyuG AAta+0Usj9oL4/41hUbYiSgMuHs2QpGWT8eqKvthJzSm5gYW+PsxhS8UXjjeUK8BJrCA IEf9T3ozZlqsUPBz5EQmHMwDaxZ6C6TPMEPaHP1yIJby4NAsyuahNiVqonISz3k4lqUM SLJMFrIOx95irIhYOpztcKm8UZXTbtmOAqWV7wexOKjZmuTqnJjRQ+TDAS1Sff/kDNPS VwMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b1Vix8NW; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si182354jab.103.2021.07.26.08.09.02; Mon, 26 Jul 2021 08:09:14 -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=@kernel.org header.s=k20201202 header.b=b1Vix8NW; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234923AbhGZO1i (ORCPT + 99 others); Mon, 26 Jul 2021 10:27:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:59570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234925AbhGZOZu (ORCPT ); Mon, 26 Jul 2021 10:25:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D8C7160F5A; Mon, 26 Jul 2021 15:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627311977; bh=R7MPYQnCJsG4fwhF0u+zeh0a/cBUeZfS0iP3V5ZDZHs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=b1Vix8NWuhvx4Q3pmG2tfftmmJzpSqffx+Ena5rVF6w+9YlJ2LHqt3MI4fprMvysm Hw//UXufJgfEuEQRisRQeWNM4WwAf3YrdYsh7W16QoRLV/GOWwswTvrY0KSHFGeb3x X2/wmeBcfc5nWsbKaBSxEf4ZMFe90GwdUNjdPcXcoewd3pxp998jQ1cnwnOm/Vw30q Yw5g09PZb3chZKrDWBaIHTdnaFtFc4eYsO5D82gh6wapPk5OB0jzWwYCmjt2d97rnj 4Au90QFhzTJlWYf1DDSLED8mhW4trOCaw3Xk9ZQnAgjAulv5ELq/+/TcwzotC5o07l 6BICNVOv+eACA== Received: by mail-ej1-f48.google.com with SMTP id nb11so16957976ejc.4; Mon, 26 Jul 2021 08:06:17 -0700 (PDT) X-Gm-Message-State: AOAM533wxIfwkyR4EoZUhwnL7Z/cW6P3PlgZae2J6W3ASF9nDMM02UoC 4j7q0JCmJwE03feERLSCubbygi4/Jwl0YNeNEw== X-Received: by 2002:a17:906:b750:: with SMTP id fx16mr10994131ejb.108.1627311976354; Mon, 26 Jul 2021 08:06:16 -0700 (PDT) MIME-Version: 1.0 References: <4182aff2d1437b30025f3d17d11e5fdc21845239.1627273794.git.viresh.kumar@linaro.org> In-Reply-To: <4182aff2d1437b30025f3d17d11e5fdc21845239.1627273794.git.viresh.kumar@linaro.org> From: Rob Herring Date: Mon, 26 Jul 2021 09:06:04 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3 2/5] dt-bindings: i2c: Add bindings for i2c-virtio To: Viresh Kumar Cc: Jason Wang , "Michael S. Tsirkin" , Arnd Bergmann , Jean-Philippe Brucker , Vincent Guittot , Bill Mills , =?UTF-8?B?QWxleCBCZW5uw6ll?= , "Enrico Weigelt, metux IT consult" , Jie Deng , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "open list:DRM DRIVER FOR QEMU'S CIRRUS DEVICE" , Wolfram Sang , Linux I2C Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 25, 2021 at 10:52 PM Viresh Kumar wrote: > > This patch adds binding for virtio I2C device, it is based on > virtio-device bindings. > > Acked-by: Wolfram Sang > 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 > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-virtio.yaml b/Documentation/devicetree/bindings/i2c/i2c-virtio.yaml > new file mode 100644 > index 000000000000..0381d9065287 > --- /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: > + pattern: '^i2c-virtio(-[a-z0-9]+)?$' i2c-controller.yaml already defines the node name. In this case though, it can be restricted a bit more to be just 'i2c' as there's only a single instance. > + > + compatible: > + const: virtio,22 > + > +required: > + - compatible > + > +unevaluatedProperties: false > + > +examples: > + - | > + virtio@3000 { > + compatible = "virtio,mmio"; > + reg = <0x3000 0x100>; > + interrupts = <41>; > + > + i2c-virtio { > + compatible = "virtio,22"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + light-sensor@1c { > + compatible = "dynaimage,al3320a"; > + reg = <0x20>; > + }; > + }; > + }; > + > +... > -- > 2.31.1.272.g89b43f80a514 >