From patchwork Mon Dec 4 09:47:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 173178 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2651758vqy; Mon, 4 Dec 2023 01:48:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOBM/8BBJgYau8ix/jCGKnM+JMi54QhoX+xxc8gAZ6qO4ITyknXx4Xz0YX1rBJpxO2jrxT X-Received: by 2002:a17:90b:e90:b0:286:6cc0:b912 with SMTP id fv16-20020a17090b0e9000b002866cc0b912mr795936pjb.73.1701683289491; Mon, 04 Dec 2023 01:48:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701683289; cv=none; d=google.com; s=arc-20160816; b=t/WsyIcO4jJGBxKj7KaBmhgjD6Rfb6ZWXeP4OnHMuCOlwxIVf6KAyTq1/8tw9X/tk0 Q59pRmPOYVRf77oyk2hEqREcyiLtm4svJF+ya46EvO9Jzn8S7gpN4YbCYx5iMmphfmmU tDGu2NkcbIzn5bcpL4xuY0x92xW0//7Rhze0e/6E9DZmeapd0F0F5octuzrPyWRYpMPn Ln9JPUk+EF51fsZeu0J8quskVQE+O6N+BRGrYAhbagAEMwna3L9T8VArncKcpEMAA/zq likIF1QoXcRbn969b+meve5z7b5fYEiltjdsgfRjJ5Cl4isXvoCHplZCyK+cbLuryZUR 1z+Q== 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=WAkE6N58iv9ZlL35+7s9gY4pQHaPFju6clZQFlGVEvg=; fh=nl7ucyqMJG8ArRNGPq/BHowjD7yJGMFISNtHBldeORI=; b=rBmQsyVnI6ODrA+IEDx6sYqI+N5Fe4hMkibx+WxH/kZGlSVqP80VbQSOnu0pBTRDrL D8D877PdsEbIf+8wjvUWW+Tt+PXDvOs1TkopDTNK/N7M65OLO44S1AvjeNZDnDi55WeS i2CynZTo0EZ/FNPc/YCqZo2k48V7KT9YQRM8k2vv+DDogM5tEt0SV2w+5VlpxWz0aXWd 1HSvznpRKApBDnjK7YFpRn7j7lkFhvBG/IUDQFiNuErC8vBOUGIdHwLVtq6Xq3hNNS1+ Akq+IT3aMgYEaowyTfx6LyvdnqRPAloyNx2jNxUfol6xv1awwldi1Gm5Dj8bXGnAx7e3 2SMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=Gc75C+FF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id c8-20020a170902aa4800b001cf8d044c2asi7209610plr.544.2023.12.04.01.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 01:48:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=Gc75C+FF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id AA5D8805DEE9; Mon, 4 Dec 2023 01:47:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232580AbjLDJrm (ORCPT + 99 others); Mon, 4 Dec 2023 04:47:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232561AbjLDJri (ORCPT ); Mon, 4 Dec 2023 04:47:38 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F57F101; Mon, 4 Dec 2023 01:47:35 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a1b68ae40efso110029866b.0; Mon, 04 Dec 2023 01:47:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701683254; x=1702288054; 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=WAkE6N58iv9ZlL35+7s9gY4pQHaPFju6clZQFlGVEvg=; b=Gc75C+FF3JrXllwQ0VsdfUsiNSADCWwqvgoqxC7lg5bO+9x0X62NK/fQ1HWm84ZPVO hsFanlN5FYQ2Z8GujWczIEC7n0Y86Mg9ji+H0qaEyYhi4+Xvn58trsEUOYBlZDdX+07M HZZ6zuQvzWBx1peMBX3VUijYnqyfSk+4OVMd9jM7HIU3Q8Whvs33XzrqwClkVAVPBGWM ZKKBbHAXo3lqxDRqkb7ZjPRy67+PQeFwahz3DGuIclYpnuXnc86+qmAR3zHd8UVpcomx X6mnkJBkXes/aiRMkHtxROSF6FCa16yV62qqqzBxLCwm1avguoSd6jUhRq7clIQZl30a ty8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701683254; x=1702288054; 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=WAkE6N58iv9ZlL35+7s9gY4pQHaPFju6clZQFlGVEvg=; b=WvIY+eXQkAQCXDBj0sL1p0GpFNiUiBw2N3hqJArE2D9GaWJO9ajjqXZg1WdPlftP5T eE/TXPnUn95uvjXp8x53glpd2ttdrxt8yntEcmEIqhN5HBVg44c/Dyl8TJTkz+2sl7fI 8qzpbe0Y49deB0nmgltmUZG7a6BA76ez8EStfZwpCks+Y9FaM/1gqVExHT4QgtuNKScf TdW/VKohrFZy/CrDIsaCCKYx2rGdZRUcLBiwCwtyeXCmPkNaMN4A1nnzlG+G0m9NQB0O KKsFUODPEzhMi/7C4WqwolVPmp5W3Fg6DZDiU7BISk+WhX61wO61wYVjjJVBbbGHxf4z i+Vg== X-Gm-Message-State: AOJu0YwkoWbMkEHCvM/klPaiwNWOBa9ACcgA3P5eToFS1aLDGEGiMI/q igBrzE+qQZaGqEWGzheYeeI= X-Received: by 2002:a17:906:4b:b0:a1a:c370:221f with SMTP id 11-20020a170906004b00b00a1ac370221fmr1905809ejg.28.1701683253848; Mon, 04 Dec 2023 01:47:33 -0800 (PST) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation.station (net-188-217-48-100.cust.vodafonedsl.it. [188.217.48.100]) by smtp.gmail.com with ESMTPSA id le12-20020a170907170c00b009dd90698893sm5051705ejc.38.2023.12.04.01.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 01:47:33 -0800 (PST) From: Tommaso Merciai Cc: laurent.pinchart@ideasonboard.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, linuxfancy@googlegroups.com, mhecht73@gmail.com, sakari.ailus@linux.intel.com, christophe.jaillet@wanadoo.fr, Tommaso Merciai , Conor Dooley , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Hans de Goede , Hans Verkuil , Tomi Valkeinen , Alain Volmat , Paul Elder , Gerald Loacker , Andy Shevchenko , Nicholas Roth , Linus Walleij , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v15 2/3] media: dt-bindings: alvium: add document YAML binding Date: Mon, 4 Dec 2023 10:47:15 +0100 Message-Id: <20231204094719.190334-3-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231204094719.190334-1-tomm.merciai@gmail.com> References: <20231204094719.190334-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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 01:47:56 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784344257045817705 X-GMAIL-MSGID: 1784344257045817705 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 Changes since v9: - Removed alliedvision,lp2hs-delay-us property as suggested by SAilus .../media/i2c/alliedvision,alvium-csi2.yaml | 81 +++++++++++++++++++ 1 file changed, 81 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..d3329e991d16 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium-csi2.yaml @@ -0,0 +1,81 @@ +# 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. + + 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>; + + port { + alvium_out: endpoint { + remote-endpoint = <&mipi_csi_0_in>; + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <681250000>; + }; + }; + }; + }; + +...