Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp922754rwb; Fri, 28 Jul 2023 01:45:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlFNR4proJvnb8tnf1ISY+dpQ1/mLRbpxdjgHfR0OHeTU/c6/Dx7/NyWIIoeBboJVKH2wJ5U X-Received: by 2002:a05:6402:14b:b0:522:2813:2557 with SMTP id s11-20020a056402014b00b0052228132557mr1354753edu.15.1690533926653; Fri, 28 Jul 2023 01:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690533926; cv=none; d=google.com; s=arc-20160816; b=op3T+YWBfFqVU181MVAig/A+jMvkmur19IcReKIguFJY/DNDL/3s0aKgz8BpvqE5d0 4xsnwhwkzcD7xDHrTQJx76JgN6K0BzCTD3FxkyvZ05wKvS1bbw6+4usx1DWMepmhct4+ EM/dLM5ZvO2VlnjkJIDSnjzObiSHQxkBeDckGDw4jI1TOKmwm/MLnOlaAeSqzMAiXEd7 iK1gJfQnEh6So5l2xZP/fj04/WEmkrMx5uaPp9JZPXjiSdqzgD87EThgJIrBoisvpx9L MYFsrEM6QXOp00q51wf2PY7zNGaacKJeAEw2k4LLNdI1o4AotwirTJNFQCUbLwMjy8+A 3dDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fROslNxWQSQOIOYjPRobNiFxZAstubmHXg2kPDJ7/nM=; fh=Vbi1dEGxSrErH/TvAsw8etBVdKjSLigmwhMwR2Tvroc=; b=NvmEr3j9XsTT3Kr/9AYvzhm4mFENoH44+OOXO/7DTxV+QWpEpDPUEMP0LReEPAHC38 ncibkebtRIZDWeFKFSMbGp2/OmeMt9Yiny8l48u8iRu8KElgBGLoC6YtRFVywMsEsvaF 43iBXfwI28OATjztz25m6JenkQK5+b3UWjj447P4qO4r2uxdZhffOPgJcyVxgR+UY4St Hjq5cP9jRHE2itOT0tn4mmhgeG8Oxq9yjmxduL9b8CnezlPay7BfVhid8UF7GSCs6KeW QLDYC06QeYLMofSMtE3Td3Cbg01efubS/F1OcS70UBrraNnaADL//n0iDoYQAeqU1M4w Xw2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AtjGgYEA; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020aa7d80a000000b005223a5a81d1si2250111edq.247.2023.07.28.01.45.02; Fri, 28 Jul 2023 01:45:26 -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=@kernel.org header.s=k20201202 header.b=AtjGgYEA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234875AbjG1IT2 (ORCPT + 99 others); Fri, 28 Jul 2023 04:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234809AbjG1ITJ (ORCPT ); Fri, 28 Jul 2023 04:19:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D847E1BC6; Fri, 28 Jul 2023 01:19:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 634A062046; Fri, 28 Jul 2023 08:19:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BCACC433C8; Fri, 28 Jul 2023 08:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690532341; bh=fi+a2t7tNdwyL0bBeVh7ZcTqwoG6vf1Wbk6bUaq+pLc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=AtjGgYEAp+/8NgBK9Vt9i/NstWExo712ZM4PRxLAXz+yMXci14VaBM555GppP8SWM nSnm8b+KUfTZcEeZEg69EpQqnbfKRCiU0D65eygmQSlyyDWFZFWuT+Iy37SmWFCneN xlsHeRiip7ODldMLdmA6E1goHgoLp+zKTqSRAIdG7u0oKUe7O2butxJ3paF/d05tVN xzjARnEXcifNHk7SdOG+IAFPW/8xdtzKjXYL9rw7J4R4QL051WLdwaUiyHgIInzqqu GOqqKjgolWMNzTojYe+LTdEttPWoEcR4PSU0Z4MCpu2ilkrwLYpf0ECDZCsOitNjQs 9jvMF3qAmrzLA== Message-ID: <7dea9abf-4ab4-55ec-5a00-829840b221c2@kernel.org> Date: Fri, 28 Jul 2023 10:18:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] media: dt-bindings: imx519: Add IMX519 DT bindings Content-Language: en-US To: Umang Jain , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Lee Jackson , Mauro Carvalho Chehab , Sakari Ailus , Laurent Pinchart , Hans Verkuil , Shawn Tu , Nicholas Roth , Mikhail Rudenko , kieran.bingham@ideasonboard.com, Marco Felsch , jacopo.mondi@ideasonboard.com References: <20230727154108.308320-1-umang.jain@ideasonboard.com> <20230727154108.308320-2-umang.jain@ideasonboard.com> From: Krzysztof Kozlowski In-Reply-To: <20230727154108.308320-2-umang.jain@ideasonboard.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On 27/07/2023 17:41, Umang Jain wrote: > From: Lee Jackson > > Add YAML device tree binding documentation for IMX519 CMOS > image sensor. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. > > Signed-off-by: Umang Jain > --- > .../bindings/media/i2c/sony,imx519.yaml | 113 ++++++++++++++++++ A nit, subject: drop second/last, redundant "DT bindings". The "dt-bindings" prefix is already stating that these are bindings. > 1 file changed, 113 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx519.yaml > > diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx519.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx519.yaml > new file mode 100644 > index 000000000000..6f38b09890d2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx519.yaml > @@ -0,0 +1,113 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/imx519.yaml# Please test. > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sony 1/2.5-Inch 16Mpixel CMOS Digital Image Sensor > + > +maintainers: > + - Lee Jackson > + > +description: |- > + The Sony IMX519 is a 1/2.5-inch CMOS active pixel digital image sensor > + with an active array size of 4656H x 3496V. It is programmable through > + I2C interface. The I2C address is fixed to 0x1A as per sensor data sheet. > + Image data is sent through MIPI CSI-2, which is configured as either 2 or > + 4 data lanes. > + > +properties: > + compatible: > + const: sony,imx519 > + > + reg: > + description: I2C device address Drop description, it's obvious. > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + VDIG-supply: lowercase > + description: > + Digital I/O voltage supply, 1.05 volts > + > + VANA-supply: lowercase > + description: > + Analog voltage supply, 2.8 volts > + > + VDDL-supply: lowercase > + description: > + Digital core voltage supply, 1.8 volts > + > + reset-gpios: > + description: |- > + Reference to the GPIO connected to the xclr pin, if any. > + Must be released (set high) after all supplies and INCK are applied. > + > + # See ../video-interfaces.txt for more details > + port: That's not how this is done. Open existing bindings, e.g. imx219, 258 or any other and look. Please, do not write patches entirely different than all other drivers/bindings. There is a reason why some things work but other don't > + type: object > + properties: > + endpoint: > + type: object > + properties: > + data-lanes: > + description: |- > + The sensor supports either two-lane, or four-lane operation. > + For two-lane operation the property must be set to <1 2>. > + items: > + - const: 1 > + - const: 2 > + > + clock-noncontinuous: > + type: boolean > + description: |- > + MIPI CSI-2 clock is non-continuous if this property is present, > + otherwise it's continuous. > + > + link-frequencies: > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint64-array > + description: > + Allowed data bus frequencies. > + > + required: > + - link-frequencies > + > +required: > + - compatible > + - reg > + - clocks > + - VANA-supply > + - VDIG-supply > + - VDDL-supply > + - port > + > +additionalProperties: false > + > +examples: > + - | > + i2c0 { i2c > + #address-cells = <1>; > + #size-cells = <0>; > + > + imx519: sensor@1a { drop the label imx519. Best regards, Krzysztof