Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2373985rwd; Fri, 16 Jun 2023 03:04:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7tSuxbmWztJrDuuxEOWOJ/7ee81N/Jra9+CVtAzWOCY55f/HNiXG8Ipfj1KwOEnhki0LR4 X-Received: by 2002:a05:620a:3e8b:b0:75e:c4b8:8d6d with SMTP id tv11-20020a05620a3e8b00b0075ec4b88d6dmr1032392qkn.25.1686909867486; Fri, 16 Jun 2023 03:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686909867; cv=none; d=google.com; s=arc-20160816; b=fkxjfpFCEAYaeZjnDENRdxeoQc0uvFezavy0vh1O74E2dhsdrGoEsQyckAJ34RO5x6 yzDYbaJNRnVzAjQ3QmCRpnbtcwF7FAEW+kZozUEBX9qjenBt/1Y2HtZ9tlvKQ8qDKLo6 9YhrWPUED17b/IVmj1/T0q/VQ8OGVpMg2ubpBMkET+A8joOsQqqgBNKl20gzryUQOo+8 0CbYQrZBBUPVXdmZ//mbXKvjCd9277UrWnr7VGej74k3GiFBSXBJpMzzMCOTHn+OctCJ aNa4yqTfhtjSYzcIHHsNJY5fB457roYpirVzo3CfKKoYxN8upEY1ZMmQ9vZ/BgMGSa4x U6og== 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=; b=GvbJk3sXn4aFsrfBElo8D2wTBcV3YZveJ1WCbti/8bnJcoVpu4nkO9h8ckrqnE5Zcx NahP2/LkNI7hTqthekh2p6ldY+bYM2DVswH4QoVBT0z3Fzs26o33QOZtMVPmh8GEMhJC ZkGUs+rInLHrEoPheZRFTWDr4F26YAg1CG2P5Lih+5elWaqZKHcOi/hZiMHqNHEFm1k2 InYp5H1G7S20A8VRilXAUoToxrdF84ExdhesCd2ZtV+hFxNO5zK5JwlKou0ViU6Z2HJW UGrZKR8InlG8Lw5jyCsG8TRNXm1JhYWrXF+d75NSiQT9WQlFVoK0nl4f+xQ80lEGmjUD 84WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20221208 header.b=Qd0RqYeS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a63384a000000b00542d2508ac8si14166535pgn.89.2023.06.16.03.04.14; Fri, 16 Jun 2023 03:04:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20221208 header.b=Qd0RqYeS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243969AbjFPJ6L (ORCPT + 99 others); Fri, 16 Jun 2023 05:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234233AbjFPJ55 (ORCPT ); Fri, 16 Jun 2023 05:57:57 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D12FF2D60; Fri, 16 Jun 2023 02:57:55 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-985b04c46caso73969966b.0; Fri, 16 Jun 2023 02:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686909474; x=1689501474; 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=Qd0RqYeSJt5XFXwT9bL0N8gU1e2WUCiaLqTl4TaHUW7EN29mIBLlWbyL/ej8TmF8pm qT+/F0PFFvKgeCCo1XEcNq7PYgiwUEn1fE02Jdo8xvuyYq+L4QnNzEtzAxpWUtCh6gOY UBhXUIqPq9j2Bq3i7bfX+ixKLK6xjraZKkhitT74oplzUGFoz5JqjgW/Qy17eRzCgFrJ wT5nMFaLkzbeWp8pFfJTZfxVuCNC3PhADjmQYoXhEOeGCrvOIDy7NMr3KsIEmKyo6dcz 5hD9C9Fvc6n3YlVhPKSyt758xnRg7IBzs+TLwV7yrB+wyRfXUWpIEYjjqUX4Ceai74uf zjyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686909474; x=1689501474; 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=aK+ZBA/w1Vt9VP5R6xhz7pNUBhnuCnrA8NQ8PKNwMnKYTtSTmSlK6ssMer7cWG3mQy 815UKfyl8yunuJAsdQ0arV+XjgHC8Z50uFPrcnkPW0j4QHuc5HrWf12XDCC5TGuonUe3 y9mW5BSSdLo2uoBZ8bMilyNCpbSOZkUj1pVu1Tl3scMR0hh078RrAvY1MiJzRgDWqRlX ULpBuwL57JLrDFjGkFtlNJhZFuo2GAxpjDMeLG7MgubYOubud7GOK9SmtKCRefvCV+mC ctQy7Dqp/7BiVR2zmD22JsuFDgrO+re4dTKsffmHkKo5YGW1Or/HB5c8FQlsIY8M95fC YiaQ== X-Gm-Message-State: AC+VfDxRjW1kKTmjgWVKABK6wGEJOdy0ORATGGvN/LNHy5yCkPy7HeF+ u8qQOMNvuGHryN3N9JlEnS8= X-Received: by 2002:a17:906:db0d:b0:977:abac:9635 with SMTP id xj13-20020a170906db0d00b00977abac9635mr1299464ejb.20.1686909474080; Fri, 16 Jun 2023 02:57:54 -0700 (PDT) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation.station (net-2-39-142-242.cust.vodafonedsl.it. [2.39.142.242]) by smtp.gmail.com with ESMTPSA id v22-20020a1709063bd600b0098314c30e8fsm1110083ejf.46.2023.06.16.02.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 02:57:53 -0700 (PDT) From: Tommaso Merciai Cc: jacopo.mondi@ideasonboard.com, laurent.pinchart@ideasonboard.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, linuxfancy@googlegroups.com, hdegoede@redhat.com, Tommaso Merciai , Conor Dooley , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Sakari Ailus , Hans Verkuil , Marco Felsch , Gerald Loacker , Nicholas Roth , Mikhail Rudenko , Linus Walleij , Dmitry Torokhov , Shawn Tu , Benjamin Mugnier , =?UTF-8?q?Krzysztof=20Ha=C5=82asa?= , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 2/3] media: dt-bindings: alvium: add document YAML binding Date: Fri, 16 Jun 2023 11:57:00 +0200 Message-Id: <20230616095713.187544-3-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230616095713.187544-1-tomm.merciai@gmail.com> References: <20230616095713.187544-1-tomm.merciai@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + }; + }; + }; + }; + +... -- 2.34.1