From patchwork Mon Nov 6 08:20: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: 1859850 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=20230601 header.b=QfSJq4Od; 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-13982-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 4SP47Q2zHbz1yQ9 for ; Mon, 6 Nov 2023 19:21:22 +1100 (AEDT) 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 021552811D5 for ; Mon, 6 Nov 2023 08:21:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F59DFC15; Mon, 6 Nov 2023 08:21:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QfSJq4Od" 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 46FAF11711 for ; Mon, 6 Nov 2023 08:21:15 +0000 (UTC) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89027100; Mon, 6 Nov 2023 00:21:12 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-53de0d1dc46so7039637a12.3; Mon, 06 Nov 2023 00:21:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699258871; x=1699863671; 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=vaiRdQ1c+DDVs4Z20fjdvqfJxBU+ISFg2fzCunWfAwA=; b=QfSJq4OdRjjyGEApLEquTzMlT9+zB8YKfzrh7PwB1CAgL5wp2+YNNZG2yiQjBegNTG YYVdrzcjbCxXYuzGyswwICnR+EfQw+MmkpYmMKHVdpfokYPQq85Cjtn91hbAO1pBHtlw Q+KCf13dfv5f6LwRnVCf063/Uex7fwVdqhdgh7h8ZdZGwlaCGiOeCuMLCHRZN8/k6qDd bTHwc1IWzppMtC3PGg3TYuetuk9vOzoSMrH5pPLy/SaacnegCFobGZIGzGZsAiEmfZ+f cyqP5MeP/1lv8i6wk1/OCZO1bZJGvSRoSliaGDgAMAZ2LCyIBi9uz+rsdT0ZzwO93Oo8 1PGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699258871; x=1699863671; 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=vaiRdQ1c+DDVs4Z20fjdvqfJxBU+ISFg2fzCunWfAwA=; b=PgHaTts3BfA8K2Hrx6QA7BR5tLhLviqadAGxYtkYbYM6C3BR3U//uH/Xindc2nagXv CImVcOp7xBZzV74VfdR9acbbu152VTa85y3Pc4OrZdKkeZMZkJRJZEtKMzsaYl91i88T tO5LlWTkrtNkIq72IYxtdxTk2zgsFM/s21k049C4dCZkI4LO8vNyo+yLg8W2UNx4KzS8 Tc9j0lHNHEYq6gAgxKicLrxm3Ez97FDfmQa1p43/JIy4B00Sk8P5xRAtAdtns0EXt0FE jR++iHqMs7ME3zA9rS+g+cio6dz6uAugs8xvIgNuduutgjXfQ49IFlvfetxDyfLKXl+W XiTQ== X-Gm-Message-State: AOJu0YzLJGtpOc8cToFyvKq85gIocdgxrSQGsxhgcqWDTlVMjLHLinzw 4JPZj6tYvD+v5S5VC8yyFEY= X-Google-Smtp-Source: AGHT+IEKtqsrKB1kb71jbhsBeqfKpuKEo8Mpz0qgW31whm9CYTmPVCnOab2ipxX4HfKaenFakbVAlg== X-Received: by 2002:a50:8e5d:0:b0:543:c50c:cacc with SMTP id 29-20020a508e5d000000b00543c50ccaccmr10881395edx.41.1699258870749; Mon, 06 Nov 2023 00:21:10 -0800 (PST) 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 x1-20020a50ba81000000b005434e3d8e7bsm4221884ede.1.2023.11.06.00.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 00:21:10 -0800 (PST) From: Tommaso Merciai To: Cc: sakari.ailus@linux.intel.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, mhecht73@gmail.com, linuxfancy@googlegroups.com, laurent.pinchart@ideasonboard.com, Tommaso Merciai , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Heiko Stuebner , Shawn Guo , Jagan Teki , Chris Morgan , Icenowy Zheng , Sebastian Reichel , Hans de Goede , Hans Verkuil , Tomi Valkeinen , Gerald Loacker , Bingbu Cao , Andy Shevchenko , Daniel Scally , Nicholas Roth , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v13 1/3] dt-bindings: vendor-prefixes: Add prefix alliedvision Date: Mon, 6 Nov 2023 09:20:56 +0100 Message-Id: <20231106082102.368937-2-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231106082102.368937-1-tomm.merciai@gmail.com> References: <20231106082102.368937-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 573578db9509..4763fbfcd936 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 Mon Nov 6 08:20:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1859851 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=20230601 header.b=aTUwTWIU; 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-13983-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 4SP47c22Hmz1yQ9 for ; Mon, 6 Nov 2023 19:21:32 +1100 (AEDT) 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 C65EB1F21844 for ; Mon, 6 Nov 2023 08:21:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 351B7FC1D; Mon, 6 Nov 2023 08:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aTUwTWIU" 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 29AE9FC1F for ; Mon, 6 Nov 2023 08:21:21 +0000 (UTC) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D0DB1B2; Mon, 6 Nov 2023 00:21:17 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-542d654d03cso6802809a12.1; Mon, 06 Nov 2023 00:21:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699258876; x=1699863676; 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=aTUwTWIULmOQDpVlQQ7AS1fkELni6W6YUvc3hP61PlxVcXXVDPp0yf7hA/x/6eki0A 0KE+slNoRFjwS1FuywnUZxqO3OfqNp2KOTbOVha/TYl0bpWIfyC24dLmwMb0sL7sp0U5 jETc/oDAehgi+Vr/ioUliDqhc/9DUlrQFkCd8Eh8bcuysZ42hiXovlEpjQVbv3e+1u1l 7aGHJpCSkDH+2GVk6nZAF7rk1FE9I0cyMoc+GPYsmftsvX9D6hbHaUQHe5BUnMyjZ9Ca hO32qRVk5jmHnr4A2dqNx6k8IEM9p5s7vZpnTYs/BfCTQgz9sgo4YzCkwX6LMohxibgc 9mdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699258876; x=1699863676; 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=arwW765zBVajCskmx9FUQbv79IH3LiKWNT+BTWJVIuD5uAovIWNCJ8eHoF/7TdcpkY xaPCIMnJ6gW7CuvXi3hBNkBto08CfiiVhbDPYp+vPEhYTbgCzwfP4gOsxvNomiFfKXVR Pu84U//S7jv2epegABj/390czMOOFHI6GIe0+hdTtaUKucFrY8yoWvnYDrFial8GH+bf oagSbOrivLs9s9K6W/O3yxfsglD7YZ4/NHrQlDKq91mJW11SYzD/MoG07vfPZ4v9Y+5u u9a7iJHgwvGibjuQVb5dyXa9KHLuRk8Ddc9TDtwDjZuGPXK0T5D26uAph5h66ump+nqC KcRQ== X-Gm-Message-State: AOJu0YyjRnjQJKU2MTqExY1AeJpqMsDRdQ2GgSxPahP67i4lzOGla9bq XXZGwibiSDDeBwVnJbaoRL8= X-Google-Smtp-Source: AGHT+IGg0/pfCAk54rdqXv1lCo2XKWLAzW1VHX02HrHzOGvjf0VULJqs/AvV6snZhUnV6cmS2NEYSw== X-Received: by 2002:aa7:c494:0:b0:53d:e5d7:4148 with SMTP id m20-20020aa7c494000000b0053de5d74148mr26327795edq.1.1699258875791; Mon, 06 Nov 2023 00:21:15 -0800 (PST) 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 x1-20020a50ba81000000b005434e3d8e7bsm4221884ede.1.2023.11.06.00.21.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 00:21:15 -0800 (PST) From: Tommaso Merciai To: Cc: sakari.ailus@linux.intel.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, mhecht73@gmail.com, linuxfancy@googlegroups.com, laurent.pinchart@ideasonboard.com, 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 , Nicholas Roth , Linus Walleij , Daniel Scally , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v13 2/3] media: dt-bindings: alvium: add document YAML binding Date: Mon, 6 Nov 2023 09:20:57 +0100 Message-Id: <20231106082102.368937-3-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231106082102.368937-1-tomm.merciai@gmail.com> References: <20231106082102.368937-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 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>; + }; + }; + }; + }; + +...