From patchwork Thu Sep 28 14:56:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 146163 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3372539vqu; Thu, 28 Sep 2023 07:57:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdpwk3IRC+ZP1NO/sN5lQvb4o3uWqYA1wi/yYIrW+V8Mj/4bcrpVoE8C6JvhsCssgKevWT X-Received: by 2002:a05:6808:2391:b0:3ad:af12:2fbc with SMTP id bp17-20020a056808239100b003adaf122fbcmr1751382oib.38.1695913037593; Thu, 28 Sep 2023 07:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695913037; cv=none; d=google.com; s=arc-20160816; b=p2JAXD+TvPqiSL9/JbjWXcnpJjeNtCEW110gZ/IEX4RBp+0buHJTinnqX8pfVjQTh+ ZGVwj9t01hfBqGLyK9HA63u1pEi4EA4xanPuoAUiF0bqHuWYWvw0TF/FY+UhA18Rn5fE qB2GZxB4CtIM3HzXpFKKGId3qV4MlVaUTtFJTJ23ncA3VxJglntUjFcd++kTi5ugRUvU ZY4dogixvedlQ1vQXfwxd4ddXaI+YhtWc2+Gr3oIkCTCUg29PSwvETqDbyvfElCgtgUm pu7i4iSWJquY91LE/0thyLbzL5+KFLSGP1C8GKFnaH8MDjQ4g1MTs4DPzAnuUYbOtzxE M05g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=8JqijGATevexodiqwpgWWh8neUeu+NISOC/UOfLz2IU=; fh=FuTQgZcOvCAZxaYBRXT5QK8oXPFWiivWA778hgsQrcU=; b=VO5TWL8zOhZhDHtgGAFTix1g/Aw7iXAy4TM1eEFmU3zb8SQhUxL1eMguR0PiaHIXX1 5pUGu7f9skKurCB+IrSk0DK+8qRsm/9KCkOdnIXiS5pjGDyr903d8YQY1mgs4Yh6kB2n s5eyIX6aU1rgAO5rsWm7C+WkWvievh8TG0lSVNBam9JyDFSKLoIzyfM442aEIuXnGFFk vXv33vvEbHBbsgzR5lA9fOYF5HA6HH7NdF/E2oV4izkjF2IV4EqAzodb9tgqcWmhn1Ii +6BMo8dcTfUoLNhSB70kyHzhIKdZbEYNHuSF5o+RlEwNeTpG3C8p+KnamSKfR5Rpw12L 3KxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=D32zM86h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id e26-20020a63545a000000b005704f061aecsi19268677pgm.279.2023.09.28.07.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 07:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=D32zM86h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 22CF983B64F5; Thu, 28 Sep 2023 07:57:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231443AbjI1O5D (ORCPT + 21 others); Thu, 28 Sep 2023 10:57:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbjI1O5A (ORCPT ); Thu, 28 Sep 2023 10:57:00 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E5501B2; Thu, 28 Sep 2023 07:56:58 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-533f193fc8dso11623702a12.2; Thu, 28 Sep 2023 07:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695913017; x=1696517817; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8JqijGATevexodiqwpgWWh8neUeu+NISOC/UOfLz2IU=; b=D32zM86hO4iOM7ue5OyqMFvzCYO7cDTgMheMLsLLz4d5vPYtS65z+94eAwjdplRRDQ 5I8nDBSntKXK2EdHXH/m4UYNisybgKPYEzgjus7P4jCLZH7NvXFW5/JJANuRQORhmL6N sZ2jHZHYfQtRrFM/sBWHivT/pZC1WBRqFm+S3IpXcStr69Lm6l0B3og+XkHewZVCXhfc OWtRmiXXUV2Sv+5ZklF6ZnD6DxyI5NNvI/yCWM6BTMgEetJtGnKEFisyTkMESjMYUkcJ E1nyfK+Gfg9KV9uh3xzKLEuvL8f6+iaRMSGKsEYwlIpqviaUgJ1Xgo1E83JV6Zquiay3 DYmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695913017; x=1696517817; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8JqijGATevexodiqwpgWWh8neUeu+NISOC/UOfLz2IU=; b=NEUNFjOhPyoWvIOyeaJDHYGkHMcAq1tqNca8ty2/6iH3CQ7V/iEQMgqhax88xgRAlG +7MixVAprvkKQwJPQmX/nCLyVvJqYriIYZ1oLY8srHnAvSQNcAopXLDOOtZ3hoDd/XpP 25IycCqc3MITHx5Ixw4GiuPlMrT3/pQqZyX+WXgaL3CB3m10ZIw3KhSVYELcl7eiJ8dK vrQs2UTtWvZ7lE94qvkpuZVH5w4pFYo5h3Z6LsFT1+tIZ4TmgIv/adqdc2n1wMxAw6Fx y/nRBveJjqK6GjNEPOt5mshyNByC89ba1qQ/cVDQubq8Dp0ufXiEZ/DJSEtNmMGcQ0mJ XHLg== X-Gm-Message-State: AOJu0YxXUdRRTwEHU33qq0FeEh5H468sZneQnUoDdELh32spEPSn6i9i vMpUJr+o8Ou9e6U/OFAZQBY= X-Received: by 2002:a50:ed06:0:b0:532:e24d:34f4 with SMTP id j6-20020a50ed06000000b00532e24d34f4mr1412989eds.39.1695913016696; Thu, 28 Sep 2023 07:56:56 -0700 (PDT) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation.station (net-188-217-54-79.cust.vodafonedsl.it. [188.217.54.79]) by smtp.gmail.com with ESMTPSA id f3-20020a056402068300b005256771db39sm9784459edy.58.2023.09.28.07.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 07:56:56 -0700 (PDT) From: Tommaso Merciai Cc: sakari.ailus@linux.intel.com, laurent.pinchart@ideasonboard.com, linuxfancy@googlegroups.com, Tommaso Merciai , Conor Dooley , Martin Hecht , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Hans de Goede , Andy Shevchenko , Tomi Valkeinen , Marco Felsch , Gerald Loacker , Bingbu Cao , Linus Walleij , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 2/3] media: dt-bindings: alvium: add document YAML binding Date: Thu, 28 Sep 2023 16:56:33 +0200 Message-Id: <20230928145638.2268331-3-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230928145638.2268331-1-tomm.merciai@gmail.com> References: <20230928145638.2268331-1-tomm.merciai@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 07:57:15 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778293709485526688 X-GMAIL-MSGID: 1778293709485526688 Add documentation of device tree in YAML schema for the ALVIUM Camera from Allied Vision Inc. References: - https://www.alliedvision.com/en/products/embedded-vision-solutions Signed-off-by: Tommaso Merciai Reviewed-by: Laurent Pinchart Reviewed-by: Conor Dooley --- Changes since v1: - Fixed build error as suggested by RHerring bot Changes since v2: - Fixed License as suggested by KKozlowski/CDooley - Removed rotation property as suggested by CDooley/LPinchart - Fixed example node name as suggested by CDooley - Fixed title as suggested by LPinchart - Fixed compatible name as suggested by LPinchart - Removed clock as suggested by LPinchart - Removed gpios not as suggested by LPinchart - Renamed property name streamon-delay into alliedvision,lp2hs-delay-us - Fixed vendor prefix, unit append as suggested by KKozlowski - Fixed data-lanes - Fixed blank space + example indentation (from 6 -> 4 space) as suggested by KKozlowski - Dropped status into example as suggested by KKozlowski - Added vcc-ext-in supply as suggested by LPinchart - Dropped pinctrl into example as suggested by LPinchart Changes since v3: - Fixed vcc-ext-in-supply description as suggested by LPinchart - Fixed alliedvision,lp2hs-delay-us description as suggested by LPinchart - Added maximum to alliedvision,lp2hs-delay-us as suggested by LPinchart - Collected Reviewed-by tag from LPinchart Changes since v4: - Fixed id as reported by RHerring bot and LPinchart - Add minimum into alliedvision,lp2hs-delay-us as suggested by CDooley - Tested using make dt_binding_check DT_SCHEMA_FILES=alliedvision,alvium-csi2.yaml Changes since v5: - Fixed alliedvision,lp2hs-delay-us description as suggested by CDooley - Collected CDooley Reviewed-by tag .../media/i2c/alliedvision,alvium-csi2.yaml | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml b/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml new file mode 100644 index 000000000000..327cd5421257 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/alliedvision,alvium-csi2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allied Vision Alvium Camera + +maintainers: + - Tommaso Merciai + - Martin Hecht + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + const: alliedvision,alvium-csi2 + + reg: + maxItems: 1 + + vcc-ext-in-supply: + description: | + The regulator that supplies power to the VCC_EXT_IN pins. + + alliedvision,lp2hs-delay-us: + minimum: 1 + maximum: 150000 + description: | + Low power to high speed delay time. + + If the value is present, the camera forces a reset of all + D-PHY lanes for the duration specified by this property. All lanes + will transition to the low-power state and back to the high-speed + state after the delay. Otherwise the lanes will transition to and + remain in the high-speed state immediately after power on. + + This is meant to help CSI-2 receivers synchronizing their D-PHY + RX. + + port: + description: Digital Output Port + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + link-frequencies: true + + data-lanes: + minItems: 1 + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + + required: + - data-lanes + - link-frequencies + +required: + - compatible + - reg + - vcc-ext-in-supply + - port + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + alvium: camera@3c { + compatible = "alliedvision,alvium-csi2"; + reg = <0x3c>; + vcc-ext-in-supply = <®_vcc_ext_in>; + alliedvision,lp2hs-delay-us = <20>; + + port { + alvium_out: endpoint { + remote-endpoint = <&mipi_csi_0_in>; + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <681250000>; + }; + }; + }; + }; + +...