From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F091FCD11DD for ; Thu, 28 Mar 2024 20:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qs65ID2kFIJYfbUMd2jVBEbfsJwlKnLqOEISez2Vrjs=; b=E7zwuOPxsq8CvB wIKOwfaXKaQqpUtuayGYJLoXCRPcu9HPzH3ECx7NwvDPhWtwQL2IxKhaMfMGbb0lGHBXyVLRsiWTq z//CAQ4eCJbUZd7Z2Ankn2K3r9k6iVQHoTHKtCFoY4BfU1G62D1bMGG5Vh3105wwUE8HPz8o+WZ/c ka2SM0likfXQVCFYltOPaRrtUDiEaLJ/892beQs0iknEViu4ChW5zwl23TNRtGoKBG2aCX9OMq3+X L2yN5xvlvfEeF0G80e366EhrKSJcHjdj3kU1k+PjoXKyR+JuafJArQZatmr3DTC3fjvHx/dIdmsNL S4uEbM3OTSaREN1ppkfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpweW-0000000Ff57-1Y66; Thu, 28 Mar 2024 20:47:12 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpweM-0000000Ff1f-28bA for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2024 20:47:04 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 236E1CE2B7F; Thu, 28 Mar 2024 20:47:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33C12C433C7; Thu, 28 Mar 2024 20:46:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711658819; bh=QQYVHiy+u+KBEmbQ6gpDQCtkUEA+z81/KyKlLgui3Ik=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tHEYohWIooI/AM2MGCX5BanOCBSCRMl/Q4bnCRxGdQYgaVYEOi7Dq23527GyBIofb ji2liTpRRZBw9JFIdsiraERfPx8L+rCvHR94DVg/+VngThRPwJFGfFfDb+Jpj6o/pt p+LBt90HXly2fSFQz21npyk20qZpwlSO+x9eBB4n9r4tpxlEFlgtij1jNfuibFTtOC BfjXQS+nXHFv0SU2K8z1Q7pD6LF+a2kw4G+qzQ+vNzHa4Fwto9CYgUdcB4UKBDcMgi K7smeT5sYKFDVnxip/T4r+CiSGpF0xLQg+8DZtt3bKop0toKMz4zvEH3qfSF9aYJOp R03jYi9O93eYQ== Date: Thu, 28 Mar 2024 15:46:57 -0500 From: Rob Herring To: Luigi311 Cc: linux-media@vger.kernel.org, dave.stevenson@raspberrypi.com, jacopo.mondi@ideasonboard.com, mchehab@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, sakari.ailus@linux.intel.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 18/23] dt-bindings: media: imx258: Add alternate compatible strings Message-ID: <20240328204657.GA314523-robh@kernel.org> References: <20240327231710.53188-1-git@luigi311.com> <20240327231710.53188-19-git@luigi311.com> <20240328185526.GA88354-robh@kernel.org> <76f999a7-55e0-4676-aa75-8fcd466e046b@luigi311.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <76f999a7-55e0-4676-aa75-8fcd466e046b@luigi311.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240328_134702_909228_88072CA3 X-CRM114-Status: GOOD ( 29.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 28, 2024 at 01:16:22PM -0600, Luigi311 wrote: > On 3/28/24 12:55, Rob Herring wrote: > > On Wed, Mar 27, 2024 at 05:17:04PM -0600, git@luigi311.com wrote: > >> From: Dave Stevenson > >> > >> There are a number of variants of the imx258 modules that can not > >> be differentiated at runtime, so add compatible strings for them. > >> But you are only adding 1 variant. > > I can not speak for Dave but as to why this was added here but looking > at the imx296 yaml that has something similar where there are multiple > variants that may not be detectable at run time but does not include > similar verbiage in the main description. Should I drop this from the > description so it matches the imx296? Just change "add compatible strings for them" to "add compatible string for the PDAF variant" or something. > > > > >> > >> Signed-off-by: Dave Stevenson > >> Signed-off-by: Luigi311 > >> --- > >> .../devicetree/bindings/media/i2c/sony,imx258.yaml | 6 +++++- > >> 1 file changed, 5 insertions(+), 1 deletion(-) > >> > >> diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml > >> index bee61a443b23..c7856de15ba3 100644 > >> --- a/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml > >> +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml > >> @@ -14,10 +14,14 @@ description: |- > >> type stacked image sensor with a square pixel array of size 4208 x 3120. It > >> is programmable through I2C interface. Image data is sent through MIPI > >> CSI-2. > >> + There are a number of variants of the sensor which cannot be detected at > >> + runtime, so multiple compatible strings are required to differentiate these. > > > > That's more reasoning/why for the patch than description of the h/w. > > > >> properties: > >> compatible: > >> - const: sony,imx258 > >> + - enum: > >> + - sony,imx258 > >> + - sony,imx258-pdaf > > > > How do I know which one to use? Please define what PDAF means somewhere > > as well as perhaps what the original/default variant is or isn't. > > Would it make sense to change the properties to include a description like so > > properties: > compatible: > enum: > - sony,imx258 > - sony,imx258-pdaf > description: > The IMX258 sensor exists in two different models, a standard variant > (IMX258) and a variant with phase detection autofocus (IMX258-PDAF). > The camera module does not expose the model through registers, so the > exact model needs to be specified. Looks fine, but I'd move this to the top-level 'description'. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel