From patchwork Fri Nov 24 09:30:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1868072 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=GIL62tk7; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-18514-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::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 4Sc8qS3TFkz1yR8 for ; Fri, 24 Nov 2023 20:31:00 +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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DD57D1C2123F for ; Fri, 24 Nov 2023 09:30:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 061EA171CE; Fri, 24 Nov 2023 09:30:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GIL62tk7" X-Original-To: devicetree@vger.kernel.org Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08367D71; Fri, 24 Nov 2023 01:30:23 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9c41e95efcbso233662666b.3; Fri, 24 Nov 2023 01:30:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700818221; x=1701423021; 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=dlD1L1Blhuj7LYCi9p/96xfAYg47OV7zJ/+QMDlhceM=; b=GIL62tk7Wk5UwBCQdP0DRtSmJgJI0/iWr9YxAkFs3PcqfhJXydWee3a8nZ4+McVc6T UrepW4CFXeqxRusKb5OQTZDDbjaL5IafIIuR8B9tZcSv2Pu6RNBHsSC/pr/vrrxsKEPb cjKOxg05Ab+vrDuaLRO/Qs9llyBelhSFOtV7ShSQwRj/VrNfQ4rQB5xxIGJ45kJvauAJ Kqf0SA5zF0jLmGaAz9Hrb/DoMInQW0dobQG3BfwcYe87Q8mnpA3nYibLrOUZigQeScLD koEBD1Il+bfAt0BQT1V6h8/8FnSiRvrWWQOjM4pUxWhDf6Z6ZEkrekqZTofQXyo1Ph1w KpzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700818221; x=1701423021; 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=dlD1L1Blhuj7LYCi9p/96xfAYg47OV7zJ/+QMDlhceM=; b=hacSil+rKYz7kzh+00hDlhg7eBdRj2WltsXDyP18AHtaUtWpKWR4HVxMCsHJ0rrnvV l9TG9ED/Mwtty6ZL/I6kTr4C5BLUH65EuPgDNh7Fi+SF9SMlOOODzC8g2M9zm/CYy6x7 v5ltMVJwyyOWkbfpggmG3ZdDBMXhlH9kr2v6DGMshXkLAufMuC99W26FuMuSDVBmCLVg KBINcl5Mu5iz/HFyTjbZtIDRUG8ppkGczBBY6YxZ7NzcYdSbTRYZPk/E+ImlHrmdhE2H ab6yNseyGp8jCpzIiX0jErHwTrZMf0my4kjEYb+/JuXrh8evikY5YjVYzSK+0HnLdhPJ G6Zw== X-Gm-Message-State: AOJu0YwNcDOQ22Wa++giEAZlok3NC4/wSUnzrrodmi7Bc6omehcs2CpD 2whw2LhLDFDgPQSUQ7N3aDQ= X-Google-Smtp-Source: AGHT+IF8NZLVv1DMiaMh6D/GGpI2K8eqISYSTtQum5S48E2/5ZNlIFTlclxI7yX+dKVjWkEiyqTQ4w== X-Received: by 2002:a17:906:c41:b0:a02:89cf:e8fd with SMTP id t1-20020a1709060c4100b00a0289cfe8fdmr1492277ejf.57.1700818221322; Fri, 24 Nov 2023 01:30:21 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:30:20 -0800 (PST) From: Tommaso Merciai To: 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 , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Linus Walleij , Hans de Goede , Hans Verkuil , Tomi Valkeinen , Gerald Loacker , Nicholas Roth , Andy Shevchenko , Daniel Scally , Bingbu Cao , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v14 1/3] dt-bindings: vendor-prefixes: Add prefix alliedvision Date: Fri, 24 Nov 2023 10:30:05 +0100 Message-Id: <20231124093011.2095073-2-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> 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 309b94c328c8..841da69aeeb6 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -79,6 +79,8 @@ patternProperties: description: ALFA Network Inc. "^allegro,.*": description: Allegro DVT + "^alliedvision,.*": + description: Allied Vision Technologies GmbH "^allo,.*": description: Allo.com "^allwinner,.*": 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: 1868073 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=c6D12Y2l; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-18515-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 4Sc8qk64dXz1yR8 for ; Fri, 24 Nov 2023 20:31:14 +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 4EF77280F96 for ; Fri, 24 Nov 2023 09:31:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93E8D1805E; Fri, 24 Nov 2023 09:30:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="c6D12Y2l" X-Original-To: devicetree@vger.kernel.org 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-Google-Smtp-Source: AGHT+IFLLIGT3F/7D+QUclPftOjNeL6ctVPTJZfb0shdfyTlc4h/Yf47Cx6Prs4+r6xmPKI/MH8+QA== 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 To: 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> 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>; + }; + }; + }; + }; + +...