From patchwork Tue Oct 31 07:34:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1857374 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=JI+kM589; 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:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=devicetree+bounces-13063-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::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 4SKMNG20Ylz1yQ4 for ; Tue, 31 Oct 2023 18:34:38 +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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E96C8B20DE0 for ; Tue, 31 Oct 2023 07:34:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1DE710966; Tue, 31 Oct 2023 07:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JI+kM589" 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 CD29510A00 for ; Tue, 31 Oct 2023 07:34:30 +0000 (UTC) Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B06A2C1; Tue, 31 Oct 2023 00:34:28 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9be3b66f254so785970366b.3; Tue, 31 Oct 2023 00:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698737667; x=1699342467; 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=JI+kM589L0PPkuhMRUeomEeRDB5sYzG74h+OOF0oPJuI1d6+cju5Gmke3lD04o4pdj Ke1d1fGI4Fehiymy/9M/r1OMQ47sNgbgJRbOD2ingZZljJVfwjyh7QV9YNidtIOHtSBs xiJCVxczGD6aN0X96tNcg9h9GeG7R2K63skldisf4wl50rwy5dlapHFrb1kQd40mIniT U1AfY3rQM5wyAX7Ww1rfir6q0/i3ujsCeuwDWSA52+PMSlGuRi/IzARyswGQjwhCS+Wb l+pRt6bobkqrrnTjg1bBz2O2C2PmwgLqVdWgBouAhk1JmHcfrlw5uYjSyaO1P1zV+TSW lD/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698737667; x=1699342467; 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=jtMl5fGgdBymVbLzJq+8dsRmj4LpwVbB63x21UzTjftd7Vw33GZ0umAfB9gn2pGsYi JDY/SP4Y/R7cPCn+R7rZL0fF7gGUcGLHcySFdRsNRa+UIk5e0/B60MJ0kP7x2cQtAZvJ K+Jyo8ulophAuxzxr0/ajCkAqpOjWFC/CMuPn2ick31LGIYxOq6GePSC28ilfSydmx+M 8Crpyy2bOA8jTmc1f5/FI3kdNTHIA/9u8anbsN0frglsCDG/9cGm0oLGTeI4/agUyLTw VKpFcKCefIg8Bmy7DbKriygD/YzstYEwS4KOhMDdB0RZmCnXjs/HCR8cAOv0W6zjNotB YDog== X-Gm-Message-State: AOJu0Ywllbm3mtRGHCS5muSl6VRha7zoOMAc7FDAhGVJ9yrbAg0NqBVA aXki1q/G9Jg+HlNUpJTkzKg= X-Google-Smtp-Source: AGHT+IFRnJwlt4jfCJeK/JlYyYRhoZ7FYb/4ga7Vff4anXgGHDAddPNvbI9KlDs0XYs+4Z0fQL6qug== X-Received: by 2002:a17:906:57c4:b0:9d3:6040:cf05 with SMTP id u4-20020a17090657c400b009d36040cf05mr5078257ejr.31.1698737666962; Tue, 31 Oct 2023 00:34:26 -0700 (PDT) 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 jj13-20020a170907984d00b009d51f9d54edsm486845ejc.126.2023.10.31.00.34.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 00:34:26 -0700 (PDT) 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, Tommaso Merciai , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Liam Girdwood , Mark Brown , Heiko Stuebner , Bjorn Andersson , Jagan Teki , Chris Morgan , Sebastian Reichel , Yang Xiwen , Icenowy Zheng , Hans de Goede , Hans Verkuil , Tomi Valkeinen , Gerald Loacker , Nicholas Roth , Andy Shevchenko , Daniel Scally , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v11 1/3] dt-bindings: vendor-prefixes: Add prefix alliedvision Date: Tue, 31 Oct 2023 08:34:12 +0100 Message-Id: <20231031073417.556053-2-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031073417.556053-1-tomm.merciai@gmail.com> References: <20231031073417.556053-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 Tue Oct 31 07:34:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1857375 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=eYrlIjyw; 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=147.75.199.223; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-13064-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [147.75.199.223]) (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 4SKMNL0q13z1yQ4 for ; Tue, 31 Oct 2023 18:34:42 +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 B68031C20BE3 for ; Tue, 31 Oct 2023 07:34:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87D7C10966; Tue, 31 Oct 2023 07:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eYrlIjyw" 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 B14131096B for ; Tue, 31 Oct 2023 07:34:36 +0000 (UTC) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AA43DF; Tue, 31 Oct 2023 00:34:34 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9c41e95efcbso749530066b.3; Tue, 31 Oct 2023 00:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698737672; x=1699342472; 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=eYrlIjywWJc/2KvT8Tg7G7gGgQgBN4p3QpiPQTmEQy3heMU+hAarH9HmrZp0Exq7hH HaGoQclYJSJLTUPLdmvCd2CohzL6GxFgu2iC2y3csmgF4acU4yYzQ8F1uJRo0f4GSOwu rwZX6H2o8i1aiZuoCAfM/Zx8egQBvwUaXX+iMZZ2fw3JOSWzJYEdIQYQdT8Qn4f36znN ywl0D+UCzhfroq3MpZs379l5rkK29vPa/haU+B2YwlDppxnaexNmARYUNH+feGJ7xQEZ cDogmYfDs++oUXLinEE1+E5DamdEVwO1A+xDu70ykTxkYlvE1GK1P9V008sv545zzqgu +B9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698737672; x=1699342472; 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=J10Ea/SsZ9cZ1E8uqJIWwCxhys+EulWE3BhYu0INpGWZ6t0Uy7SJFhsYEZUVZyu3Oa xgHpOcn/0wmLycGkHYvORxhEbACeWn3DrbDNUTeNRYkXa82FmbtG2jSXTvq5CTOuMj63 v6xCIDS9JR7Fyp6Yz80BDKlBv5dM7HSfETePkxmBb+Sli2Z15rFB50aaptwnfLEPi4AO Z48LQnhsPfeFiEBy8SYugMtAPJqRN3srQjL0pQSgKuWdiV1fNkk5HlgdKYyMEGOTBuqg afZaniqpEkK7KvOx2917j0hL7E4mRVIMXKqteEjDUfztsy0uzYZJ4tUr1grZMmS2HXMg uLaQ== X-Gm-Message-State: AOJu0YzfQMtJeaInEe7YDHR5Ri6iqyQYd55e+sBpVlJ0ggcMyUp4Mj15 /tgauqASGBmESsobkY6Bv7k= X-Google-Smtp-Source: AGHT+IFzjZHpiCRZlFRvUsGK5qlln7bqB2iHwteiCctESW0v/jUn+yJHOjOZoI0xOzJQG58FnKSGmg== X-Received: by 2002:a17:907:c293:b0:9c7:5667:5649 with SMTP id tk19-20020a170907c29300b009c756675649mr10125836ejc.73.1698737672320; Tue, 31 Oct 2023 00:34:32 -0700 (PDT) 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 jj13-20020a170907984d00b009d51f9d54edsm486845ejc.126.2023.10.31.00.34.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 00:34:31 -0700 (PDT) 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, 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 , Nicholas Roth , Andy Shevchenko , Daniel Scally , Bingbu Cao , Linus Walleij , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v11 2/3] media: dt-bindings: alvium: add document YAML binding Date: Tue, 31 Oct 2023 08:34:13 +0100 Message-Id: <20231031073417.556053-3-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031073417.556053-1-tomm.merciai@gmail.com> References: <20231031073417.556053-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>; + }; + }; + }; + }; + +...