From patchwork Mon Jul 26 04:51:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 485802 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3476608jao; Sun, 25 Jul 2021 21:52:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfKMuDDUhvM4LEM0Z3kQxUX72o8VTeX/gyGiJJqr3Y5tL2qFS9euFyTHCcNFEu+no3WsGF X-Received: by 2002:a92:6805:: with SMTP id d5mr11383042ilc.286.1627275130889; Sun, 25 Jul 2021 21:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627275130; cv=none; d=google.com; s=arc-20160816; b=hLWTa869JXsG7uuIzjhofjHI+Zw84XRwUaF3FYmGR3EbkMS7N2sga8Orz9ZyAm9Ig2 BJ58nvJigZkFtrVjC6jdZBG2AYF7OQBxuvExWxtHXXF61yg8H04/Podj70DeQY1WEb0k cIHrW5LU9xFWUcQQKNpaztvCbZ3wTO3DoqwuZSD0GrMD53d2gHBmW02OA6nzQ9g2KX3W 3zInOiBHK6XLkF5khtkX54BNG5T1+j8ubGsfX/swEjXkrgjEBLQGVZ0IWKDkethW5z1H 44HWGThi23e/8QBf7OXknDd4GUchDdGJPbEZBM2jPql+FcXZK9HXbDZtN5KFbMzXRA+I Ob0A== 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=25stCq9hJ2wceSqg94GCYZ0IegUstb1Ha6+CpcC6mxE=; b=F29Ygvud5tBU/5H6Odinbdk/8VkCcrtknEiRbQAeBdf3lsCykRz0rnv+i4liFlkWTS 2SXFZRmi7cPSpEitNlb/Mml0pwRW0Yg6MbzoGMknLvDGnM0kj6QF5auWtBlOk9UAYlq5 t3w15Z6Gg0qB4cfswWGeZRZvWOtkdvMgqF3DAsyk1SFe5AbnSATYTL2ZtoSwpnoVL2Nn ZqR58WXpkT6YF1R2lUoyIfi9hrdN2hdnDwFQwjHT9w+Xn+QXBOaeUVOVUgolNpkpi1bI r43sXz5He5UihzZZFXqHeV/DID8vDeGL/GGihTnvFAoRo9ArFMLVPF7GBWZKuXrIVBG2 e3GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w3jI5G4d; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-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.10; Sun, 25 Jul 2021 21:52:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-i2c-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=w3jI5G4d; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-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 S230032AbhGZELk (ORCPT + 2 others); Mon, 26 Jul 2021 00:11:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231267AbhGZELh (ORCPT ); Mon, 26 Jul 2021 00:11:37 -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 7E0FCC061765 for ; Sun, 25 Jul 2021 21:52:06 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id q17-20020a17090a2e11b02901757deaf2c8so12636933pjd.0 for ; Sun, 25 Jul 2021 21:52:06 -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=25stCq9hJ2wceSqg94GCYZ0IegUstb1Ha6+CpcC6mxE=; b=w3jI5G4dOmRLxP2MlxkQOM2/L+5kcH9M9Un+WZvOEFtFgbL1253v+O6A900H9pX1OR qw9GFzKgAHqsrSJv+xKzkMtnxu1u/k2FsfUMM1jvwQ7qiqwCBoEnT2kKN5BFtfFCrJrT zLaW0eb8OTIpMtSe7SRO+IeJrGQkCkhy0oq2jYpTMgEpeBMMX1acx7jWiBTtABkWiX09 Naj0FNAJXC7dcbn4cIjgDHkKmWbDsYNlvr19r4z7ob4upxnluKGyAwX8INWrwqjTjOeW +xVP8Pg8xLAdzd55q5lvBBX9Vr/Nv+DCBhy7jd1sGD2JEonDcgIvAs5XUlq2VGQwP95Y AsIA== 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=25stCq9hJ2wceSqg94GCYZ0IegUstb1Ha6+CpcC6mxE=; b=H3mA7O5OYEdtq7dMHQF8asS3XLhhjrSCqCfGHc3ZYzUD1X14IpQu/rq4b21aScG83I fjipVM+5BvVIKrfVISdvzHrDnZ7iVvdL82bjqOGX9F9a1COH3IceUKIYeNLQ6L4jnwXK iZc/mFhbFPZT6YbN6CKdHb9or6MmwPvX+ONgF19h/6KTypYyhhr89zQjbTkBYI1gCooj LTPMX1ozwynRyy7XYSzi+Q2W7JFBQu8HsJyxinXLIbcomts32ptA9CyM4uiCrBlBRQAh DZXOUMxSPymJnQ/S8PXNcks19eyaHF/SUWIWRpoinfB5AzTbOv9EgKzi7eYMvhx7kaJY gq6w== X-Gm-Message-State: AOAM5311DmJJgMZAQcwA7Ct3vOK2RcxKplTRpomZ8eEi/UaYk14qeNhk zRB0JP6jEZkjCCZ/W14JCQidhw== X-Received: by 2002:a65:6a0d:: with SMTP id m13mr16774454pgu.356.1627275126102; Sun, 25 Jul 2021 21:52:06 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id q18sm41345108pfj.178.2021.07.25.21.52.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 21:52:04 -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 , linux-i2c@vger.kernel.org Subject: [PATCH V3 2/5] dt-bindings: i2c: Add bindings for i2c-virtio Date: Mon, 26 Jul 2021 10:21:42 +0530 Message-Id: <4182aff2d1437b30025f3d17d11e5fdc21845239.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: linux-i2c@vger.kernel.org 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 -- 2.31.1.272.g89b43f80a514 Reviewed-by: Arnd Bergmann 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]+)?$' + + 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>; + }; + }; + }; + +...