Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2389681rwd; Sun, 28 May 2023 14:50:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Es6kmXgVJ7+3Ih4O9rfVXgl5iM6broTdYPWamQM4L6wzrpal2lsnkBG1o1cnpWM885yqD X-Received: by 2002:a05:6a00:18a1:b0:63d:2c2f:e3a2 with SMTP id x33-20020a056a0018a100b0063d2c2fe3a2mr14631181pfh.18.1685310630152; Sun, 28 May 2023 14:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685310630; cv=none; d=google.com; s=arc-20160816; b=maCEgsbWHOfbWcvE3Krt0LR+UhMUUfuTycCzei2UjnuMskb9T8VyyaNEwY/U4cJH/R 49QefE3FG+vTDnc+qWK5jkhouRJpfHyidKbpoSzqmkU72A6pFGcyRjaQ7aWbc7suMdyo T3uOKQkwwAVYdWxIDQMyGclAjITOeq5oCZ5r9gWUzbNNECXWtzKBN7j3G0KgZ8mje45m EHtf2m1g6nBYIfSwZ/9HZBwgcKALn7m0nQ639JgsHxBZgLZDBxWlc1/EUXw98T0eUhAK bqDvdFo2Gzhy9MFJK+vBnpjkoUhATsecaVorh9w5XKhDGCfgVzhvnzFDfVl7yQHZCIno w6Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zV5ufUuszLAq4H3SQx05VhpDi6a0CdmtzawnwhwVX6Q=; b=ToxengoFaUY4Boije3nN4MQwCeJ3Q9WfIBUEFASzl9MFQjIqz74NSX5/E+onAPisBu MxUrhzXRivCZvtlNU/lvB2kDo/PUq+Ah+y09R46gm894eCpJyilv0/62LP9Z+oLvQ9oB BdXDNaz92FK755LTL1E5RDaoD0IU1U7oGv6W9VhVN1zTC/MElnjcfvTyapGSPI2oOVi4 xn+1Xiv0U6xBve1BubgPsy9hzkCf5AcJ3rTm8SCvl/NtEZFDQR4L9LT1BvtJ4Kz95ZiJ R5oUtw+NmxqpKbjful+h+HNWMb3GjFUPTtSfCbIiANR0lHTTedXXPKWPb+eUI30kIO1R 7Wdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=COkOnpd1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p190-20020a625bc7000000b00643a50dd697si7670927pfb.265.2023.05.28.14.50.07; Sun, 28 May 2023 14:50:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=COkOnpd1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229628AbjE1VQR (ORCPT + 99 others); Sun, 28 May 2023 17:16:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjE1VQQ (ORCPT ); Sun, 28 May 2023 17:16:16 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4B3EBE; Sun, 28 May 2023 14:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685308573; x=1716844573; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Y+BKlDevzCKXevCjvN6HMiTRWqU67ZdEh2bnFi5G5hM=; b=COkOnpd1GGIUfY3ziqE2jHpxwLEPSnkosf07+D8zeU9fB0g3R6hq/SqG PIdzhl40fHV4k0HwCUUPMHQMWLKuEh0mxWSQvDNS0ny2XOFj8bVbTbjD0 N1GypvAc/M5t07rPfb8WmtrruAHqOsN81iNKQd7tq7koUhOKlhRr5EYKt hE26FRdPQRWqwt26GejsbfQzZah0nTvn08X86pul57FILPIPE6WWTCTfZ WZaw0TSFyGSDtbWIGF3JMhn1VitwJvVbo0ZtnN+N0aHNPvyeVKMlQDyNO og4ehN2f22JBnFWeR2tUbR6PT5BSOFgFOdrn7mZlQ126LgBhD9HnIXdBC g==; X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="440918217" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="440918217" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 14:16:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="738927868" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="738927868" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 14:16:07 -0700 Received: from kekkonen.localdomain (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 32BBA12303D; Mon, 29 May 2023 00:16:05 +0300 (EEST) Date: Sun, 28 May 2023 21:16:05 +0000 From: Sakari Ailus To: Tommaso Merciai Cc: jacopo.mondi@ideasonboard.com, laurent.pinchart@ideasonboard.com, martin.hecht@avnet.eu, linuxfancy@googlegroups.com, Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hans Verkuil , Marco Felsch , Gerald Loacker , Krzysztof =?utf-8?Q?Ha=C5=82asa?= , Shawn Tu , Linus Walleij , Benjamin Mugnier , Mikhail Rudenko , Nicholas Roth , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] media: dt-bindings: alvium: add document YAML binding Message-ID: References: <20230526173955.797226-1-tomm.merciai@gmail.com> <20230526173955.797226-2-tomm.merciai@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230526173955.797226-2-tomm.merciai@gmail.com> X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tommaso, On Fri, May 26, 2023 at 07:39:43PM +0200, Tommaso Merciai wrote: > 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 > --- > Changes since v1: > - Fixed build error as suggested by RHerring bot > > .../media/i2c/alliedvision,alvium.yaml | 115 ++++++++++++++++++ > 1 file changed, 115 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/alliedvision,alvium.yaml > > diff --git a/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium.yaml b/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium.yaml > new file mode 100644 > index 000000000000..81e9e560c99d > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/alliedvision,alvium.yaml > @@ -0,0 +1,115 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/alliedvision,alvium.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Alliedvision Alvium Camera > + > +maintainers: > + - Tommaso Merciai > + - Martin Hecht > + > +allOf: > + - $ref: /schemas/media/video-interface-devices.yaml# > + > +properties: > + compatible: > + const: alliedvision,alvium > + > + reg: > + maxItems: 1 > + > + clocks: > + description: XCLK Input Clock > + > + clock-names: > + const: xclk I'd also drop this as you have a single clock only: it's redundant. > + > + powerdown-gpios: > + maxItems: 1 > + description: > > + Reference to the GPIO connected to the powerdown pin, if any. > + > + reset-gpios: > + maxItems: 1 > + description: > > + Reference to the GPIO connected to the reset pin, if any. > + > + streamon-delay: > + maxItems: 1 > + description: > > + Delay before camera start capturing frames in us. > + > + rotation: > + enum: > + - 0 > + - 180 > + > + 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: > + clock-lanes: > + const: 0 The driver can know this, no need to have it in DT, i.e. please drop it. > + data-lanes: > + minItems: 1 > + maxItems: 4 > + link-frequencies: true > + > + required: > + - data-lanes > + - link-frequencies > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - port > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + camera: alvium@3c { > + compatible = "alliedvision,alvium"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>, <&pinctrl_csi_mclk>; > + reg = <0x3c>; > + clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>; > + clock-names = "xclk"; > + assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO2>; > + assigned-clock-parents = <&clk IMX8MP_CLK_24M>; > + assigned-clock-rates = <24000000>; > + streamon-delay = <20>; > + powerdown-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>; > + reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; > + status = "okay"; > + > + port { > + alvium_out: endpoint { > + remote-endpoint = <&mipi_csi_0_in>; > + data-lanes = <1 2 3 4>; > + link-frequencies = /bits/ 64 <681250000>; > + clock-lanes = <0>; > + }; > + }; > + }; > + }; > + > +... -- Kind regards, Sakari Ailus