From patchwork Fri Oct 20 14:13:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 156136 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp1087968vqb; Fri, 20 Oct 2023 07:15:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDO3lOGTRwfPkzLDDieBYJzYvenS1uRjdqVapf/cA+WgkrQ3mnsKvUo7xReQ1IoXWSFlQ0 X-Received: by 2002:a05:6a00:1705:b0:6be:bc50:b5e6 with SMTP id h5-20020a056a00170500b006bebc50b5e6mr2241383pfc.0.1697811329153; Fri, 20 Oct 2023 07:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697811329; cv=none; d=google.com; s=arc-20160816; b=Ab9kEs3QHwSkKLg2mPyHwIHz0nT3EAg7VQgIwBjXu0dUDWQV/Y/X8kavKcshjFM2qH 59LqvD9JpxnspUrofZaEiwKXmAjWv9KNoQLWAN+yL+3kQmj+cbyLB67JvJiycirKrFJr qFQwnmLTddyQswcsAaNJvtyBmoYLg0nPQBMl0ZyFb30AhWARJY+H3E5DBjIcYaRss1Kj lENtgJ484NiwJFsxeG3QfaECizqeHNw30j04fz5p04u3R0vqNsALdEKz1K46HydDV3P1 tUVB8Dn/24s0VyLHc7f6z8cbKLaHaMeZ3pABrWdvBCgYkhufSQj9ePZlsr2L6TEqgD40 +bXw== 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=WAkE6N58iv9ZlL35+7s9gY4pQHaPFju6clZQFlGVEvg=; fh=hwWeJ6X3LdSJZ7wbTPqiXUDQqkGHaDlNsdQZRPAftow=; b=U6TVhFBVUVMXcb3ToaPDfpgShaC3Yispoua8EUrqBv5RHxlct8Lpukez/D2+IEF1cv L1J4WIdFxwc98W0Rer2ivoi1V1zNUu2/p3D9w7zJRYnDwOr14dPZncONeicAVakiRUIG JTdA9p/eRbEoPdbdScJ0uC7K1L2L+v55qgdMMPnd8zSxk0NWjniWdbWOEGjd9N+0srSh 1fwiCsEL0MRQBzlLa6dZ++zdwOnit9BURdPYOg86N9Z9DhUD59U8C79WjVSUm093Q+Fs drKlxVhCuJphiXg+4+UTlJr/69/WkyFkeSbwilCKVmz2VQ3STNc+L1cZtv7kvu3u4Bhf cxOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=JkC+lnfc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id az1-20020a056a02004100b005859c255ce8si2062195pgb.819.2023.10.20.07.15.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:15:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20230601 header.b=JkC+lnfc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6DE8680DD6AC; Fri, 20 Oct 2023 07:15:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377551AbjJTOO4 (ORCPT + 26 others); Fri, 20 Oct 2023 10:14:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377546AbjJTOOz (ORCPT ); Fri, 20 Oct 2023 10:14:55 -0400 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 0B019D61; Fri, 20 Oct 2023 07:14:53 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-99de884ad25so135489366b.3; Fri, 20 Oct 2023 07:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697811291; x=1698416091; 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=JkC+lnfcJ3tTh0Mt1qQCay8kZw/o6Rkn4rzGEN0Rif6ZtTZilk9O35TORqDBVxLuUn mU46fgdZ6rnwIlma9mAkJzweykitX8Odu8mZWWcoKMBpoEFaE5fH86x8MFWYV9DmBMRD YP5cj+YYXg7itdN/oGvG82rACDj2+TtsNUv1a0GIS16dpktpTLReibHSORbQAGGifeID nI+KHvRD90gBdCYB3ZbXJOwuTvCqbsL4fikrbjQROrkiHJg4NFm++jvGzGCKRKmo2D2f hf2L/IP80dJzcTKQBi1Sl04kkquBJ/awseFUTzmPaPWiW6L+JJKpDI5U1mgf4hRPHTR7 4/dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697811291; x=1698416091; 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=f8kLyii/16dHfh8mtfJ+fo3oHhMSgk/+Gu6nXgxKCT6sYu23PsXoWqFqc2VfRoPgwV yYu0MrsmHRXZhxS9/qkIEVxrpzqAvKE0aukWLB2EMOGDIC+Dq/uJxTQvWL+mVTvnI7ov pBkMLsJIl7rUshNxGjb86optIcJVhHE9NyNeY/Jue/aMmsvlCX13KUBZSFA5kFpvOOD4 +htRiCANjQm4gp5XLA/oYe0+07bkW6LIJ06gNP3jZmKO5fR48EadpNYxnzihtWsnqy/t YzSGQdGh26uuRPg4q4ig2n+09XWPv1+Oe05gFEv7wjGT0naKGyb+JbRE0RLdyIlDlDOF nd1A== X-Gm-Message-State: AOJu0Yyh1OkPeuJhVXzyR1aKeRJ+bcaShU+3PaWJRFJ6Tm+Hm1NJeUoO aH2lk0m3riSoJueQohxQ/r0= X-Received: by 2002:a17:907:98c:b0:9bf:84c:4c11 with SMTP id bf12-20020a170907098c00b009bf084c4c11mr1594841ejc.13.1697811290815; Fri, 20 Oct 2023 07:14:50 -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 i6-20020a17090671c600b009ada9f7217asm1562914ejk.88.2023.10.20.07.14.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:14:48 -0700 (PDT) From: Tommaso Merciai Cc: sakari.ailus@linux.intel.com, martin.hecht@avnet.eu, michael.roeder@avnet.eu, mhecht73@gmail.com, linuxfancy@googlegroups.com, Tommaso Merciai , Laurent Pinchart , Conor Dooley , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Hans de Goede , Hans Verkuil , Tomi Valkeinen , Marco Felsch , Gerald Loacker , Andy Shevchenko , Bingbu Cao , Benjamin Mugnier , Nicholas Roth , Linus Walleij , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v10 2/3] media: dt-bindings: alvium: add document YAML binding Date: Fri, 20 Oct 2023 16:13:50 +0200 Message-Id: <20231020141354.2500602-3-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020141354.2500602-1-tomm.merciai@gmail.com> References: <20231020141354.2500602-1-tomm.merciai@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 07:15:11 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780284212312103177 X-GMAIL-MSGID: 1780284212312103177 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>; + }; + }; + }; + }; + +...