From patchwork Thu Sep 14 15:47:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1834301 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=WrnzjoC3; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=permerror (SPF Permanent Error: More than 10 MX records returned) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-275-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RmhfM0HtFz1yh0 for ; Fri, 15 Sep 2023 01:52:27 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5EC86282504 for ; Thu, 14 Sep 2023 15:52:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E9181D523; Thu, 14 Sep 2023 15:48:10 +0000 (UTC) X-Original-To: devicetree@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1293ECA78 for ; Thu, 14 Sep 2023 15:48:09 +0000 (UTC) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF93DD; Thu, 14 Sep 2023 08:48:09 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-31427ddd3fbso960116f8f.0; Thu, 14 Sep 2023 08:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694706488; x=1695311288; 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=173yD9VjwXTBKZr7qMJ/4Ufdnz2W816dljbeIsZNNJE=; b=WrnzjoC33WeYGdNGgn35Wh6m92DaACtpZ69Q1tOCE7koxOhwL817R5DHaocmBqkuYt /2FGU/wAh9Bjy+0dXTf6U2ii8jCtRUEZA1Z324W0L0XADiO+uHBELM8aushwVrOglcZ8 VO52KogniC0yGEtWtEBK5Q+oJNdkSQWg6b2/n5UCZySqJzQllA1n1Q4gwDfGsYpLSiGq LVH6AzF9cz2jOR9/Kwr4cLMFHDv4Vzd+aeEQET95H2DZ9f7MqRNMNT8NGimk7+HzTpuR ZrOrr7Z+zRd6gxsCy7K5fIm/moeJwPQ9L6ebD4S2ml0oPbGVK8AEi9AeawE1XhYFe+u6 jN5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694706488; x=1695311288; 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=173yD9VjwXTBKZr7qMJ/4Ufdnz2W816dljbeIsZNNJE=; b=ef6h1lx2GVKOKga97c6/PJFe7VWUji7JMkFeKsdY9CS7u327JngqgSspqOpIWc+jdt pXx2A4Yv0589X1aE5XHS67hA50rEM6FNpdSIjT15kZDP008UJUec9Bzh7Zo/v2FMI/b+ Ej/KjbOYOCPqOKomIpQo11CgWm7hAMfx9JVolp38Ns5yDdrNo1AZUskuMosVMdcsiTFH KYiW3/W+9ldu1k/dp+WF0uM8YQGylCovNYJzKUSZNh1ugMfXvcBdMdiF3XtN8Fwh3Htb q7NQSU8ePMY4v62x9v7Ipr7zh/3wVKcgzWqBRLlSV/3kNu1rsVFwZKMrvIDeqj1jYVYx x9hQ== X-Gm-Message-State: AOJu0YysHXWc5JF9rT2MxK2f54ahAwCmFDfd07uZPlA+qeZIu8i5d5y+ dRQJgX3pqcOxVhJ5PBgiejA= X-Google-Smtp-Source: AGHT+IExFJBi9Q/weXMg9QbYK5aU/ZB8UO7tgl1uqyFTBjDeP5xJo3SlFUOuek25Ef8mJ+0llrnpzA== X-Received: by 2002:a5d:5587:0:b0:315:a17d:dbc6 with SMTP id i7-20020a5d5587000000b00315a17ddbc6mr5250564wrv.14.1694706487552; Thu, 14 Sep 2023 08:48:07 -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 f13-20020adff44d000000b0031c79de4d8bsm2071169wrp.106.2023.09.14.08.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 08:48:07 -0700 (PDT) From: Tommaso Merciai To: Cc: jacopo.mondi@ideasonboard.com, laurent.pinchart@ideasonboard.com, linuxfancy@googlegroups.com, hdegoede@redhat.com, Tommaso Merciai , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Martin Hecht , Liam Girdwood , Mark Brown , Shawn Guo , Heiko Stuebner , Bjorn Andersson , Jagan Teki , Chris Morgan , Yang Xiwen , Icenowy Zheng , Sakari Ailus , Andy Shevchenko , Tomi Valkeinen , Marco Felsch , Gerald Loacker , Bingbu Cao , Hans Verkuil , Daniel Scally , Shawn Tu , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v8 1/3] dt-bindings: vendor-prefixes: Add prefix alliedvision Date: Thu, 14 Sep 2023 17:47:53 +0200 Message-Id: <20230914154758.1795663-2-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230914154758.1795663-1-tomm.merciai@gmail.com> References: <20230914154758.1795663-1-tomm.merciai@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add a vendor prefix entry for Allied Vision Technologies GmbH (https://www.alliedvision.com) Signed-off-by: Tommaso Merciai Reviewed-by: Laurent Pinchart Acked-by: Conor Dooley Acked-by: Krzysztof Kozlowski --- Changes since v3: - Collected tags from LPinchart, CDooley, KKozlowski Changes since v7: - Fix company legal entity from Inc. to GmbH Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index af60bf1a6664..0a1d75c5a302 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -77,6 +77,8 @@ patternProperties: description: ALFA Network Inc. "^allegro,.*": description: Allegro DVT + "^alliedvision,.*": + description: Allied Vision Technologies GmbH "^allo,.*": description: Allo.com "^allwinner,.*": From patchwork Thu Sep 14 15:47:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1834302 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=PoeNwb/I; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=permerror (SPF Permanent Error: More than 10 MX records returned) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-276-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Rmhfp0KBFz1yh0 for ; Fri, 15 Sep 2023 01:52:50 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5A87F1F22575 for ; Thu, 14 Sep 2023 15:52:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FF5BCA78; Thu, 14 Sep 2023 15:48:15 +0000 (UTC) X-Original-To: devicetree@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 656571F5FB for ; Thu, 14 Sep 2023 15:48:15 +0000 (UTC) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91F661FF3; Thu, 14 Sep 2023 08:48:14 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-307d58b3efbso1011294f8f.0; Thu, 14 Sep 2023 08:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694706493; x=1695311293; 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=PoeNwb/IhjyDyhTBRq6+sH6XuabY2D4vh+HaN9mAZ9L3VwinT+KcXnj25g6JCqXj09 slcCXew7Uqv/A7Y2ZU5cMioG4XVcwo5BORzve+9u8Jf0jpZfsnJ3YM99BHClKEHyIkGp A9L/3/q0H84je4tTi2au1sqPKOWqpXeM+uWlNs2dudU8XxEd+M0lU+TSFYZ1ht16o6Xz 0WS+pNd5cBsEUC8OqcMRewi/DHIhO+p2YQgoz8vvtaG8rIzj0Flh25GqxSoLGdjipG53 dLKd70KKFsPIuwPwyCNJOSRODt5kA7qfn5du0npiTjQdkrkb+iBcXMknGzXPyt2CppKK sxcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694706493; x=1695311293; 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=I56EFNmdFoFc6ZDThI07825P4SiGEB5FFynQXco4pskilwwTYyru4YFCaaY37BKOSF wfF7sDhk/cDZmmnKsiz3OzQRzksYGp8+NzVeeo+VSakeiTR+CaQG/mN0jV+c4IvVdn7C LgqRkqxW5Lxr2vXRkAiA/PdW7PDGcvxG3dDc1RudOLAblLqVHz3yCwIduxgKZEZxN9u1 8QPPdEeg132QJO/dnDwtcUAfghZm8IXnQUV0+HD0l/QYJ9TaeJnFSAesstWGggNySQjd Zgd6PK8uvvtEJqHivFizrPJzC9w0/YplI5GL4r6CCuTn9DlRz6hR5918u0I3bD+rWZHh uaag== X-Gm-Message-State: AOJu0YzkFRhHeOuBeUaRYROHJPdx8Xq+X0hPUWOExabEodUsttwlbXd4 us4x4zEb6/PK8JI+LY9D2RU= X-Google-Smtp-Source: AGHT+IGfr0epp6GKwOUQ1Bn38d8YU+tLMrL5M1UVMssjFHX9xasrYIFC0diJTkN3VSRaxrHtgVMokQ== X-Received: by 2002:adf:fd0a:0:b0:319:6753:8104 with SMTP id e10-20020adffd0a000000b0031967538104mr4798650wrr.47.1694706492665; Thu, 14 Sep 2023 08:48:12 -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 f13-20020adff44d000000b0031c79de4d8bsm2071169wrp.106.2023.09.14.08.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 08:48:12 -0700 (PDT) From: Tommaso Merciai To: Cc: jacopo.mondi@ideasonboard.com, laurent.pinchart@ideasonboard.com, linuxfancy@googlegroups.com, hdegoede@redhat.com, Tommaso Merciai , Conor Dooley , Martin Hecht , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Sakari Ailus , Andy Shevchenko , Tomi Valkeinen , Marco Felsch , Gerald Loacker , Nicholas Roth , Hans Verkuil , Mikhail Rudenko , Shawn Tu , Linus Walleij , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 2/3] media: dt-bindings: alvium: add document YAML binding Date: Thu, 14 Sep 2023 17:47:54 +0200 Message-Id: <20230914154758.1795663-3-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230914154758.1795663-1-tomm.merciai@gmail.com> References: <20230914154758.1795663-1-tomm.merciai@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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>; + }; + }; + }; + }; + +...