From patchwork Thu Jul 22 09:56:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 483873 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp202857jao; Thu, 22 Jul 2021 02:56:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyGGb3kWzvM+zh9XMI+uC/ERGimsoQMR39r+EMsfLucVsbbxhvqpjPQCXXjLn76pa1BLr6 X-Received: by 2002:a05:6602:2801:: with SMTP id d1mr23012379ioe.73.1626947819012; Thu, 22 Jul 2021 02:56:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626947819; cv=none; d=google.com; s=arc-20160816; b=RmvRTHjinSCWr0Al7Na/phCzxkdUJssAlQFTtFwdQqfLXyPeDR4c5fKoSCpy8FLjDR CvoAI8RAcPuwG+fZaIA9E794erQX2lw2kaGeC/Xs8W/qJUEe6f2DCNF2WJIJipWUqH63 /b+w4fAODW3Mf05N+SHuxdc3Wy5l9HIiZFEb6/iZ7GRyz4at02XHmg9SeqIiu+SScdyd n6+qTzO9Pvglg2mLWXc9xMzfAy964ObvCdkUVsb13vbc90LKCxGU119bnhMzxhHyeSCn AON+gkTvklk27UXD/XAr5umasHGDqwN68JXTdJNNTYD4L4LeIjn9lfTkVFjZqcBoUB2u wNtg== 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=LFAzq1cRRdIrI+QwSGEpAIXO66croLV9YsUkTYMA32Q=; b=Mr1HIaUAXk930AXIga9F1q3NuOWYa5XozpGhfASglDIEi/q3UcIF0a411qAmRYDzIY cgoqmLxZM/YdCP9vPzpEd1nbn5Deov+c0YIq68KNNm2k6ePUcYPWAOetB5K7CTjTcEgp 7XEwjXJ9DPbMgVDnFJKJ2H/OIBl1OZDLOq2dbDeqlfU6b6hf7/Q9cQkEkRRHnWQhVOqH wLiyUY/EIBAyqnae0Aa9/ZCfpfjuwtdd7raUHRMJXC1t1Y92YTqXqPK8ZmQbr9SmF+3L e5bQ0+I9rjMqRIV36jCls9Cpe7UJkdROhinP1u2iRxoG4f+DrQ08mCbi4/AyvYg2yJoQ mGSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PsrOoWAk; 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 z25si18113964iod.45.2021.07.22.02.56.58; Thu, 22 Jul 2021 02:56:59 -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=PsrOoWAk; 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 S231496AbhGVJQV (ORCPT + 7 others); Thu, 22 Jul 2021 05:16:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231477AbhGVJQU (ORCPT ); Thu, 22 Jul 2021 05:16:20 -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 9355BC061760 for ; Thu, 22 Jul 2021 02:56:55 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id u3so3836948plf.5 for ; Thu, 22 Jul 2021 02:56:55 -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=LFAzq1cRRdIrI+QwSGEpAIXO66croLV9YsUkTYMA32Q=; b=PsrOoWAkqh6dkfonRpDr/SK5Ku7QwJrkh6mKhluNLjg5DjbVNMFlGXZw4a7YGAkdZm UqZJ8F2/JN9Ph8FlGK0B9aVzABv+AR24uG84Bn1qAu8XaJ1M5OVR/QU/EQq6/M1+tNeM 3i6uxRk5VLJvwL4DIigV3L50d0zf6f688z3RfxIgjWnMZ1eyHAREjpjPyJvNnZfwi5Qa Fa8EFUYBur8UmwAJnSel2XjzEGfUyx+qiIr3RbHM7qIShqzQMJpH4fyq/A4lRdKWhsvR bDrmM4NSQTn28JrQDtrJuFT+9dO59RUp8+HluBSYizWcrftarjvpZw7b7z/17eDM8Dmi cEOw== 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=LFAzq1cRRdIrI+QwSGEpAIXO66croLV9YsUkTYMA32Q=; b=YK5ou9oes7HBXUAHwCAjNQnA35QbcTJH1ywAp4YNTJ5bsxxQwQ5+LL77vWo6zwWGyD CDAt7aoB9aqQFII0hWdPIxCfTr/evBnlkXio3yzwdQDv+gXm6cZdGMEhKrtOBuSAO9DI IryGXSKiOG8ph2blVsAigq5s4NpAEAl+IwgeVMUkdELHqAaWY1NBjZ3JafnL17Ibya55 MRAxmZ1UTb9ZidfDwlM6eaLLtqknBD671TdEv1zorZzm2FZW4AxXSIjB4v0pETM/80fj fbNTq7IWwkts6XD15T6I3jD8WgDYjK2U+PNJeOb+MP8NwBTNOw+VMdELL3DNfJQpBqSB 1drw== X-Gm-Message-State: AOAM533EYfIF4L9k787PswOjCitTudRDsccYPixNS9TRESVH9z0KxZSW TZToUBEtSR3W2gPeKd7H6m++Rw== X-Received: by 2002:a17:90a:bf88:: with SMTP id d8mr39945553pjs.222.1626947815074; Thu, 22 Jul 2021 02:56:55 -0700 (PDT) Received: from localhost ([106.201.108.2]) by smtp.gmail.com with ESMTPSA id l10sm6274768pjg.11.2021.07.22.02.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 02:56:54 -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 V2 2/5] dt-bindings: i2c: Add bindings for i2c-virtio Date: Thu, 22 Jul 2021 15:26:40 +0530 Message-Id: <705f4426a17a395bf190ee6ed6c341ac25550f6b.1626947324.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. Cc: 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 Acked-by: Wolfram Sang 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>; + }; + }; + }; + +...