Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2791589rwd; Mon, 29 May 2023 00:28:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ41KIJJi8K3nI6tgyy4O/4q8FdAD4lf6k2nesp/rPI4Z+fYXCnlcik4fgC/FG5awdIyEO0z X-Received: by 2002:a05:6a20:8e08:b0:104:d028:ffe8 with SMTP id y8-20020a056a208e0800b00104d028ffe8mr9856938pzj.45.1685345309991; Mon, 29 May 2023 00:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685345309; cv=none; d=google.com; s=arc-20160816; b=cQStTYnjhBxXJUurNbS+5R7XDmI0chy/gsVQ6mWRIVba8Q2u5VF0IADIYGG/BZ76h1 IsES+MVdz6SwgNQ1HNMkJ49sNhwxXy4XG9awQb4MXoKqaSA3rXRJ6/Xu0xgaiTCuQBJC e1ejOxesCOdyKbXHAzPK/J51qbgyYeXC7tlwyJqRmBEeyS+1qGYoLi3WnT/xuB1gH6rd t9PUjbT1MVV5ItFha6O9MrDLekqM+qHCEaJJF24DWj/78cPggmaCP7EPLdS/VZwLRsyK N+JEP3cgwTm1bx2ncPGHb3DgwQKsa50vQtURGYYDJ7WfE0GlVUl0YuZOYjQogA6tlJa2 XFeg== 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=wjVWxXvSLXJuz7mSrEjAxP2mc1hCweJJgtd+gvyPVdE=; b=m1PeTzyOdyO55jIK38iMxmO5I4rHxVILkwVJ7lXauB7UG80K3kyL7s7ldiVN8W5uiK EFnk6mHAfR78veevzPLflXT9x9ZsguDQaxZK9Yfgl7pN+MYDoYrzcxfdipfvYAlht0mP boOuw0yaR5OV8vqE7bUrnT8ICf+HwTD3KU46LcrdF1HAD2bl5fmKQQm+8eDyeacrnUb6 e2Y+hAWfjpR/lVQka+K1DCjPSOY2XalakfYxft+ZKlO7lkR9XMdnxx9iGHukf/gNA0Rb yxkZz8aPIk/Z7e/ENPRPnB0vpTLRfBEyBMnfT7mIWJIvL+o+ghdg6uO/jjWjC5Zrr7QR YOKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kVe635Jk; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i64-20020a639d43000000b0051b70b1f1f5si7783279pgd.608.2023.05.29.00.28.15; Mon, 29 May 2023 00:28:29 -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=@gmail.com header.s=20221208 header.b=kVe635Jk; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbjE2HWV (ORCPT + 99 others); Mon, 29 May 2023 03:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjE2HWT (ORCPT ); Mon, 29 May 2023 03:22:19 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10745A7; Mon, 29 May 2023 00:22:18 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-96f7bf29550so459229166b.3; Mon, 29 May 2023 00:22:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685344936; x=1687936936; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wjVWxXvSLXJuz7mSrEjAxP2mc1hCweJJgtd+gvyPVdE=; b=kVe635JkcprzHLEEUfko6c9PT0mWkz5Jyn0v4vAndxdy94y9UaQRS+r1GxSAo2nxx9 ivCQxH/AmiVLkiOQKqLsYHMaDJXo5S2tQFrrYOA89L4MwJKK1wQZ5SzUkdtVeycRL3O+ +7NtQovLgeBqUDAZTPi7SplWE6HdFqlcsXUH/EJTMzMIhmOakZqMc0gcTmtE+gX95eUL E2Dr7daOLjUFbP/FicrRKGQdWkrcrvc5ni9zgFRqxcZZXw6YdSGxBRhCGEHbiTkAH9wb BXtvunhN+bgs+F/Yn+v4tiJZISLtGk/Iu+glA3gRC19mmdpXCkKMykO25n81/DgcqTly 3FCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685344936; x=1687936936; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wjVWxXvSLXJuz7mSrEjAxP2mc1hCweJJgtd+gvyPVdE=; b=WdDtPpxbPHjCtMKkweC1mmOWZqNQLReB5tK7egRZ/3j3QLwQvPo+/UfqElfTl+NV7r HvEju2vBKWarF+Nv63gBgd2AOqTj/ycli2Zujivwpmqfd3micA5j+0ofr3To/h+MYhl6 jRhqp+QIoAK1yn1FSXykUkdP9lD/93f2pg7P998KvCFinKCTxsCaI1DbcV56qCvxJgKR iJeFzQS4UZwkgzhefBzF5AYzgN6aV5qQONXJ8ekXxJCiItsWihxp80t3g0lIjANLbYIn +IBHGpjU+GGvMg40jBg0njkmFrZgtm/+++vRF/k6sHokRj9pR2hyPvW0sj9UKcXunFrX rhPQ== X-Gm-Message-State: AC+VfDytWJe2PeaKx5AhclWWR1Ll4KLNCpMYfuGuPWff+kAWDdOrNQlV divtvIVbbVed4i/huinv2bw= X-Received: by 2002:a17:907:7208:b0:971:9364:f8cd with SMTP id dr8-20020a170907720800b009719364f8cdmr9014493ejc.44.1685344936227; Mon, 29 May 2023 00:22:16 -0700 (PDT) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation (net-188-217-50-121.cust.vodafonedsl.it. [188.217.50.121]) by smtp.gmail.com with ESMTPSA id f26-20020a170906561a00b009664e25c425sm5608985ejq.95.2023.05.29.00.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 00:22:15 -0700 (PDT) Date: Mon, 29 May 2023 09:22:12 +0200 From: Tommaso Merciai To: Conor Dooley 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 , Sakari Ailus , 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> <20230526-mural-expletive-76b9dd5db83b@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230526-mural-expletive-76b9dd5db83b@spud> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Conor, Thanks for the review. On Fri, May 26, 2023 at 08:00:05PM +0100, Conor Dooley wrote: > Hey 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 > > No dual license? Yep, agree. Thanks. > > > +%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 > > Description is a bit moot when you have the clock name and there's only > one. No harm done I suppose. Agree, we can drop description. > > > + > > + clock-names: > > + const: xclk > > + > > + powerdown-gpios: > > + maxItems: 1 > > + description: > > > You don't have any newlines, so you don't need a > Thanks, I found the same ">" into ov5640 .yaml > > > + 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 > > Could style this as enum: [0, 180], but I don't mind which you do. For now this property is unused. I'll drop this. > > > + 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 > > + 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 { > > Label does not seem to be used & the generic node name should probably > be "camera", no? What about using: "alvium: camera@3c {" ? Like in some .yaml of ov sensors? > > > + 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 { > > Ditto here, drop the unused label? I think we need this. Thanks! Regards, Tommaso > > Otherwise, looks grand to me. > > Cheers, > Conor. > > > + remote-endpoint = <&mipi_csi_0_in>; > > + data-lanes = <1 2 3 4>; > > + link-frequencies = /bits/ 64 <681250000>; > > + clock-lanes = <0>; > > + }; > > + }; > > + }; > > + }; > > + > > +... > > -- > > 2.34.1 > >