Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp664024lqh; Thu, 28 Mar 2024 12:21:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCfQqyFFO9MZJ9VTa5Ry4taNic4rVjBn0LN81pKOsk50AlcqPX4lqoZDXM9LdY4I8STzpJ3K/EfZ9Q9qZTiT2UqwZQZx812vo2wn9IDQ== X-Google-Smtp-Source: AGHT+IECWmirGAUZNtiS+KfdSGSAGAuG1SV43QdUjglqV/lZQMhKwyMNIRfqjrh/89uzDnTZC3hW X-Received: by 2002:a05:6512:3e04:b0:513:5990:206b with SMTP id i4-20020a0565123e0400b005135990206bmr335200lfv.5.1711653709828; Thu, 28 Mar 2024 12:21:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711653709; cv=pass; d=google.com; s=arc-20160816; b=nZHaGyr4Rz9kboNDcvhGICUrIuvZWBaD/5OLOC+tKNyREctcy/Y+nlNzGI6NGKxggq BM/B54hKpvscfhLSmRfnFoLN2qP1O2401gcp0xVbJyMm9ncCuADJmqJPkcnVvn1HYFog B0Gk97c/VZyC4EPQZvnTuXTK/RdrR03HNS2ySys7uWRjuxQVlO/FtclqzzYJbDuGADco 98KDnoX9/OBTb3uPcXa2r2jgGva8HtkqKbC7n9x+hHI3UIwgLSvoHC/9F40jtjlpDCU4 v98tDL6wHGhVpnfQFeNUY2H0ckA2YPJhVEhVMNFl/u5wpxniael/BIbuRXUEizFs1vjD ndPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=tQJb1jl0+k5VWPtDnFdvdOzbEiK5LWRoPsu+EFTE44M=; fh=7OtxybTTSZYjr4x27d2FW8BmOIA/l0DM6s5hBHSG5tM=; b=TLPe3xApXsOkAgavWGyh6Vs8OIM/mYjSpYEbJr8aTkQdzc9bzFYOeBcFQcH42QBvxb FV/XR27BxEPWMc0aLiuNkchXhzxQ9cies2oSAfpt+Z87WNku9RTEZT9SXex0VuDJiBw1 TJlcXxM6YSEbzRweMdvJIOmGiUyymEc47gAAAAJ47fc7OoWxWeBD5V5mZJNLPrEh7OL3 f9Kf7vhdeZyK5zjzKjSty32BwB6oxbKQZdIUwyYz2pkJa0uMLJzwhWFdDMWQqMrjPvA7 +o4HL86eYiBCb8Hiri24RlXvjDAky7kVdXn0f9111QSrs0AlPI852xFOSeA2wS2G74xK bwPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=qwCXm9BF; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-123468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123468-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id kv15-20020a17090778cf00b00a46e9f5a524si1020060ejc.957.2024.03.28.12.21.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 12:21:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=qwCXm9BF; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-123468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123468-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 893C51F271AB for ; Thu, 28 Mar 2024 19:21:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C79D137C36; Thu, 28 Mar 2024 19:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b="qwCXm9BF" Received: from mail-108-mta37.mxroute.com (mail-108-mta37.mxroute.com [136.175.108.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14C4C657C6 for ; Thu, 28 Mar 2024 19:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.37 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711653701; cv=none; b=jEgQL764HgQ7/F5B83mUdS4G20G3k42tlSROt7zMp3vmE9A3WIdL/V9E4Oqnn22i4TL2dx2rk7ycUereqw15mqOn30ryhkypzbTOwZcZy2gIlMKZz34YIe5Y5VGNCP1BPksMoB8yFTtjYWe+L6YQniqaCzEx+CpnqN4kXESh64c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711653701; c=relaxed/simple; bh=+P6JDdjJ1Ex7kuwioyIjjSETZSNuTHoLH51U4FVMcjg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=u0e6jvtewsS/oPQab6o+xPS0+vTPw18xgzlCB9NuUYCCblZ5hoBG+uVSy+U/2+1IxnrlVxJdy9g6qWRjM0O9E0DPdUQt1LVH6Qf/Jj8q6nh6jrE14jdVJbbUohGI5Sf/WCofozmlT9/uhjFxDoRTwBxQePLovHLBVQ1l/xJQSWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com; spf=pass smtp.mailfrom=luigi311.com; dkim=pass (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b=qwCXm9BF; arc=none smtp.client-ip=136.175.108.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=luigi311.com Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta37.mxroute.com (ZoneMTA) with ESMTPSA id 18e867e00920003bea.00f for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 28 Mar 2024 19:16:28 +0000 X-Zone-Loop: a9895551fbf5b6096aa45139c742d6e239e08287b159 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=luigi311.com; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tQJb1jl0+k5VWPtDnFdvdOzbEiK5LWRoPsu+EFTE44M=; b=qwCXm9BF5B/BKG1LMbYhN94yUV rAc3/t4oTkVHcORDV9B8HrlemSm+v5kD/t39rjI6ws/L1XXVKQc+i7KbjwCBB3NAAxMyt6oXQ1EfD IlhlxeC1iAParASXRSIBb+oE/zna2MuWrkPKPO3l9gROf39Fs21jOlpBJqFu10PqisHRKMl6kjNEs Jahj+QjNfU9EwqGze4OsIvNSOts0YMcTLDSyvubePtWWK2F9R9GVJI0nuN0jtfVHViTaIo6lOu3qn aRtavdTKoklJWGZYZx6JUB9w2wB3k9wPEXoOAViWsskP1Jok9Yibg6Z30Qwhewbeb2ybGBRRe9khs pEyvc0EQ==; Message-ID: <76f999a7-55e0-4676-aa75-8fcd466e046b@luigi311.com> Date: Thu, 28 Mar 2024 13:16:22 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 18/23] dt-bindings: media: imx258: Add alternate compatible strings Content-Language: en-US To: Rob Herring 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 References: <20240327231710.53188-1-git@luigi311.com> <20240327231710.53188-19-git@luigi311.com> <20240328185526.GA88354-robh@kernel.org> From: Luigi311 In-Reply-To: <20240328185526.GA88354-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authenticated-Id: git@luigi311.com 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? > >> >> 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. > >> >> assigned-clocks: true >> assigned-clock-parents: true >> -- >> 2.42.0 >>