From patchwork Wed Nov 1 12:21:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 160529 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:abcd:0:b0:403:3b70:6f57 with SMTP id f13csp375665vqx; Wed, 1 Nov 2023 05:23:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2jwdyX99F5aC1RuPiiq9UvVIv+JmvEWr9itxVjhJaMbFhlFP1569o1Quv49Rzvzv0Eely X-Received: by 2002:a17:90a:6f03:b0:27d:6b5:9e07 with SMTP id d3-20020a17090a6f0300b0027d06b59e07mr12679721pjk.1.1698841391155; Wed, 01 Nov 2023 05:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698841391; cv=none; d=google.com; s=arc-20160816; b=oUYaxMq4Q6T0+96ATb4NPuuyHpzxihcrDx1/odC4G6GhstBr1iIUPbHrchUl6YhJaP XzanDHJjOQn5hr7MAlodkJFy8ST7UinPyKgzQNUmmJgZU7UHcJ5QnXNJ+BjVdva2bhaG 4CXClPhcqQsQj9IH0rQvnooXFBpv01dstE4zUI8pP0p+rBNFAI7ErLTa4bTnTIdiKANt QKYRj4IsqaVJIRv4EsiZ/Ncq5ooUNxmb60iXBuFbXtQd3SoF1ihaYIAO/TfV9fDSzEFw +iJFBt5cN7/aNgve6XqKc2iHgsm+O/gnxotgDD1enIpvzFnKm00SrbjljC2NjUNhGPor jPCg== 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=f655zyhK1rDHIpnmzvLjpY66jKxx007cy7M0kSTJPdw=; b=lqTMU9bfYD7rgwJnEwn0A6k/6cAwR7YcKLojgN8FwfHsa02u+6gOE/UGRjbc+2BU1k JU3MP4Gf7K+AhhdgsBUeUM9Fbg2r2CEnixRPragaCoIM95m4GN2ynocFfTekt5wMud/6 2HgNOi0M4S9sJ/9tGRLNugArDqN2q2llXp5D23Q9gYMDua0dxGUdS23vVn3xRZQVhMzl tkTioRxINWARhVCdeqhNcM8cvAcQ+ibrMhW0JPdTGKoogbLXfZDFgswd8mwib0psAx8B IdFUgf8hpo95vQQYVMQ1NGV+NAL3+zZ1kDfZ/YcqUnyV6k2Xrm4XlklHdQlXwv8GuPaS MO/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=awDZgx1j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id gj19-20020a17090b109300b002800d96168bsi726391pjb.25.2023.11.01.05.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:23:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=awDZgx1j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id CCB36809EE0A; Wed, 1 Nov 2023 05:22:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343550AbjKAMW3 (ORCPT + 35 others); Wed, 1 Nov 2023 08:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235148AbjKAMW0 (ORCPT ); Wed, 1 Nov 2023 08:22:26 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 385B710C; Wed, 1 Nov 2023 05:22:20 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-32f5b83f254so4563573f8f.3; Wed, 01 Nov 2023 05:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698841338; x=1699446138; 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=awDZgx1jn4XcFSGzwpA+stA+m7vI0pvRmEE6G/+N3eN4LFJWgmYQgcrNcFw7v372dg kh/Ev2iNlq2VgHWyPW37BLoxuthUBmpyNGCSATBTOIiHhL3Z/8/40hZyJbl2Yw6jBn1F qSRqG7P5xLDLxFHVfua2NcdWRS7ZxvWttXTpH9G10GdMHM2SmW78kZjyCRgwkybIlzby 9kBvjXTfS1DpIOXNL0c74GbWcpBWDSpHRMzNWIU/OfPa1pF61D5l26zE/kx8Dktdpmly 8qUzQQCYQwh8Ee96DVPMAb2AcdXley4Wv65RNINZSiE1z7vUBNKUxLHEArx+HLbLSBWA xpdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698841338; x=1699446138; 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=QMf4yuMZrDpfYU8xejJBVBiavx5go5FLZJv7Q7yz6/k4zB6e8LN6TXOjivqjURajkZ aC09x8j1NHW4dv4Kn0roH13wUK6ahew+LpctR2MLuKNaG4N3vRszlmll17R+4ekdy76Q Te7mneFQrP7N82GpNjpSuc9BfOaKUI1/q6130tENqVtMmdLM+fE5eGnD823+4H3U/9Fb cVpZjSIUsUC2M1FJtavBpfgQ6rbOmzdEW68UpE9B2LJb8coGunQJu6gqKDEdGfcB2ymE evjOOMqfK44kHDxJoUIxzC0E6rzNT2NJCOALtuTf/uEUeGrmjrFAAugjUl430h7Dd357 4Cig== X-Gm-Message-State: AOJu0Yyk9FZD+2/v6rb+13RN8TNAkzS1WM2iJDs1SCacZhcRAZun6dp6 7yfPQkTOLlSGx/dM/84FBnA= X-Received: by 2002:a05:6000:184e:b0:32f:7b14:89d9 with SMTP id c14-20020a056000184e00b0032f7b1489d9mr12027289wri.9.1698841337767; Wed, 01 Nov 2023 05:22:17 -0700 (PDT) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation.station (net-188-217-59-109.cust.vodafonedsl.it. [188.217.59.109]) by smtp.gmail.com with ESMTPSA id i17-20020a5d6311000000b0031ad5fb5a0fsm4024582wru.58.2023.11.01.05.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:22:17 -0700 (PDT) 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 , Gerald Loacker , Bingbu Cao , Andy Shevchenko , Linus Walleij , Nicholas Roth , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v12 2/3] media: dt-bindings: alvium: add document YAML binding Date: Wed, 1 Nov 2023 13:21:56 +0100 Message-Id: <20231101122200.1203499-3-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231101122200.1203499-1-tomm.merciai@gmail.com> References: <20231101122200.1203499-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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 05:22:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781364310893453889 X-GMAIL-MSGID: 1781364310893453889 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>; + }; + }; + }; + }; + +...