From patchwork Fri Nov 24 09:30:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 169336 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1032422vqx; Fri, 24 Nov 2023 01:31:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFku88fpeTcjfoRsP1FEXjKJdMsC8lCG2vo1PlPCbV3NZhiEwlDF/gRGUEzHQL+RkSOL9FV X-Received: by 2002:a17:902:e746:b0:1cf:a3e1:21a9 with SMTP id p6-20020a170902e74600b001cfa3e121a9mr1264802plf.47.1700818296088; Fri, 24 Nov 2023 01:31:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700818296; cv=none; d=google.com; s=arc-20160816; b=HmDKgOAiOqXzRpo7Xw5R9eH67ovz1IQ+XroC27yRXjZM4YKvHnan3vJC2vJJecmSgJ stwXsBkuoeQ8DGugziJR2I7DnOLIOL9/wQuqSyBtLsLoA8bp73R/9LnTU1xkoHfaZC4p 0wFUpy07p1NFFtvIajXF2Zp01rabF5cbic6tAipjjwJOfC/GhayLWf1XdCBqZ6y0Dwaq 83fMzjGP05hii7pIY5qPfFA9ATWVKaZNxyiia5/W+i/kNVtK2PtNYH5E6fDKy7gBMffr tTSquxD961wIcKFCnJh2UCi/urNpy82GoiSFWk3pZ1ptpQRPJ7kOWJML+gHcEPt3jDL6 t0Bg== 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=M9iynsIY+nhsxdOfTvuI7K6O0bmFIX1sgfiFSxpQY+o=; b=AcAy7EqZQor8I9ywz+MTfDoGiAtLygr1Rrydh811qPKeWh6uVX6QI8G5kSOTpgdmCF mYJCjc1yBPqQfVU0mZ7idFJW3nqhi71AOls84GcCixNCVnHVUjhsi68UqXDjilaM5E9u /aQn4sj9ocEP/W19MJUJzuszZ6RY7EnAPU8DQsyrdOfpJMqpeOwg2sN/1AnFZGownLqS du9UhZJ9+45A7GqISn4odzXz88K4b8Uq5RNY+0exxIExBjGVeeLpbl54/WTSTO8j9CqN 77NzbD4ww8JQ5BY6e5HcIpB4WOIaocp0/lWLXkJYdO+EjwnlHbg1I/mSn3F/qUhRlPYS AcFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=c6D12Y2l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u4-20020a170902e5c400b001c9ad8ca211si1132475plf.18.2023.11.24.01.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:31:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=c6D12Y2l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id AF9018068972; Fri, 24 Nov 2023 01:30:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345199AbjKXJab (ORCPT + 99 others); Fri, 24 Nov 2023 04:30:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234713AbjKXJa0 (ORCPT ); Fri, 24 Nov 2023 04:30:26 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5434F10D0; Fri, 24 Nov 2023 01:30:29 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a00ac0101d9so229244966b.0; Fri, 24 Nov 2023 01:30:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700818228; x=1701423028; 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=c6D12Y2l5wF7miHE6ulPv469womIuPkYolEWI8ezU88IkIg/QlZXzFqeD6HTOj7q0U XeuBUTYLeYXnXegvNWhawXm4MQmVv+VdDDn7y7tsDvoD0z4KE9uTe0oFw84FiCcauZ4f B7Vj2nYfcrPS7djTvTWi8MuZfMKqZ2jOearPUymlgl3xJeHJ4h/DIcBuoda7ErD94teH laDXd/2qJEPTF4eceoFSliR929Z+Q9OrxHrGa2GEZIpfZyZK0L2Rw3Ca1SDlRd//z8qS JIVgUjM/9yfJtkVLViGuvhfodZmLjOvNBrarseN3ftLw+aCHqfRf9mpj6UMHZoswlNn6 DXiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700818228; x=1701423028; 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=Gm7raymOhwKUdNQ7f/wf771crprf95Tx8FbsSSfr2NoSLbuY9CQjeCQaSxgRBGTfIA wVoleQUhF6aDUHubAart97l2UALueMIDr8wFDoLbslh42ByYKCuqUEidwp4pf4r2timz /l0r/oWoIZ8LrsY7Gzp9nOQIAYXM9cR2vgiNnPPX2ZdtgRAf7+7nGLGU5nFlIcwbu4Ha ALOESee0DxCOxHS8raL3M5x2JFOuwT8FQCfgbeVWUJyHuKoR84Avku6ByZA8N4qVlny2 eEXzvqo4FQdt/0cMYAE7iWUPbM6fw5WShlgbzOubKz5Q25S2OcR9j0xQqQtKMMbYM30e +UEw== X-Gm-Message-State: AOJu0YwYImrRTdLrsVTeN4bSoJJLXbQQ3ldXQmYCYcZZWZH0XszFSJ0+ TWZR27TAJUiN6dl6UHVzNus= X-Received: by 2002:a17:906:519b:b0:a04:d5e8:cd84 with SMTP id y27-20020a170906519b00b00a04d5e8cd84mr1491806ejk.56.1700818227406; Fri, 24 Nov 2023 01:30:27 -0800 (PST) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation.station (net-2-39-142-131.cust.vodafonedsl.it. [2.39.142.131]) by smtp.gmail.com with ESMTPSA id k9-20020a170906578900b009fee12d0dcdsm1856307ejq.15.2023.11.24.01.30.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:30:26 -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 , Gerald Loacker , Bingbu Cao , Andy Shevchenko , Daniel Scally , Linus Walleij , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v14 2/3] media: dt-bindings: alvium: add document YAML binding Date: Fri, 24 Nov 2023 10:30:06 +0100 Message-Id: <20231124093011.2095073-3-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231124093011.2095073-1-tomm.merciai@gmail.com> References: <20231124093011.2095073-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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 24 Nov 2023 01:30:44 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783437245643531904 X-GMAIL-MSGID: 1783437245643531904 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>; + }; + }; + }; + }; + +...