Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp713549lqh; Thu, 28 Mar 2024 14:07:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzKjAay74Z0Zt/Vj5blapQeRW/Ei/7dd/9JwBW2lvLVTo+fws1TPhiH7UC8fCQtqsrOQ4aicV0U1qz9leCBwK0vcMYNDLSPN1pXwHAwg== X-Google-Smtp-Source: AGHT+IGrg8q+yWGE1ZlpzaLxj7lm97mUU1AVFWNX1mq5AXJjfbra7RgHUnN5uQG27oHOHz0pWdwU X-Received: by 2002:ac8:570e:0:b0:431:5b18:5c61 with SMTP id 14-20020ac8570e000000b004315b185c61mr685937qtw.36.1711660075974; Thu, 28 Mar 2024 14:07:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711660075; cv=pass; d=google.com; s=arc-20160816; b=JP2olJIt1E0WHeXpPNIHNzFHUL9za5THUdtuqXIM/P2RtW6Z4YhFiq07wbZV4k5f3Q iFInPaY3jUiDKTOp3tzhTCILRd2qIvkZU2dWRUrmV2XcX6FlDYCJ21+idLU/UEBQmG6H L8U2RC16e1s6kjabYGes5jbQzQLFpNtnhebutcrAzxSapA8mljyZehZa55e74jNrvs5S CpwA0xdtBp5aChStMfw/DwQ7eD+C0DVku8YqxBwZrvJC+0iPigK5l0C2YyRZwybFnfTo z8Rlf4rDpXryk1GAu5flQqfcvwVTZqnG7KRRy3vQ0CD7SHiGtP0+d1DTHjDm0uQsMIZH 0K9w== 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=n0BJjZfxDNb/uyF3bBh2pp0ckq9viE9E1DscdmPJyFc=; fh=7OtxybTTSZYjr4x27d2FW8BmOIA/l0DM6s5hBHSG5tM=; b=Om9cYJetcS+Y0V9JYBsv+U7BxnAIf4UTp/1Uv3epZ7XV0CEXO71frbSXm/y3pN9XBL hzavXTN9XeSJnv3XpnafQZHmvmgcN37zFMvduoCHbe2ljST+YsA37/ly3pG7MuDa3y62 UVRQJeyywkAUjCfzA+thk2X5JyKzFU9kftHhOHXPelB9RYjgDX0o93N8uCVRe60CvxvS LJda74UBdQrwfm4ntZnRCp8o81KuroQbYwN8NEWfa0Y8C9XcIAQGDLvLqBw3Tvsfw4Jp 8vcJSYpHVjlbsQLlRyrPVv6H8QdoML3KF+nQP6v22pLaDBBlBLbXxZctq27LA9Iogqld bLjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=h8XynL+L; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-123648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123648-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e2-20020a05622a110200b00431f81013a3si2274903qty.191.2024.03.28.14.07.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 14:07:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=h8XynL+L; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-123648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123648-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8BA4E1C25545 for ; Thu, 28 Mar 2024 21:07:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B10713AA54; Thu, 28 Mar 2024 21:07:29 +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="h8XynL+L" Received: from mail-108-mta247.mxroute.com (mail-108-mta247.mxroute.com [136.175.108.247]) (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 1FB6613AD09 for ; Thu, 28 Mar 2024 21:07:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.247 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711660048; cv=none; b=qz+/Cta8XWtD5FjCSIct9K8lfCRukuUasai9/HkMl510yAjqKhoI1tCk9WAJX4ZLmkcTFryivQHG1/AcLj3nw8VFVv/MBQYUJqEuFmw2eZGLEtBmFRk2gDZOUJvVcZG+UeyH/3qHbX2NU3WmEhzKO4s2EBPVmlYwroqYt7xWN8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711660048; c=relaxed/simple; bh=r0EcBPQ3qmpeCX4m58ZcZEDwZXCeT1PRpsmqW991s+0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LCRxA72tOv6D1b2/LxotRAxtr1MxEFoxXYIWhxQy29z1YmmW3QBFrI3t9f1tHfqE3VQWIsPteUQzrVwqYsX02yYlWOpMmsz4xtGDzekCQ7iuaBbAuUxMmLTOMlBmpENl4oz8wD+ey6U4PxNb7mvbQH/BzJJGeQb8dGvWq0AYzkA= 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=h8XynL+L; arc=none smtp.client-ip=136.175.108.247 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-mta247.mxroute.com (ZoneMTA) with ESMTPSA id 18e86dee3df0003bea.00f for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 28 Mar 2024 21:02:18 +0000 X-Zone-Loop: 1f5b0abd1513aa85b7eae87ebd2b27b7e0522eb1d293 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=n0BJjZfxDNb/uyF3bBh2pp0ckq9viE9E1DscdmPJyFc=; b=h8XynL+LgJCxtIBV8QoxL5mr/m ev7KBLRvh1FI44Uu/Nw6Gc9q5HYuzaORe8rm19V2oFqd5dbEjW7JUE+4+ewSexyZrmHpJF0AN2IIg pKUexC3rVtTJNgN9njahSH9UbTXDwti85J8R2TiTnWvA+j4M2PbDcVJSlUdLZZlEH8BqWFI2+o8OR NinPlMA4xScARG2ZZaWVJfvu+sy+0ZtNEA5lDuXMqls5/t4Y4S8BWe84VKcVCVk1bezjOAoIxcBh/ vNE5NchcJTfHxXpKHkXkQ9Ds9q2+FFMaFYeB6+cj05AkMYqnuW0XSjbsnqWKSYnF4WZRE0S+uf8Kv VTD5pPvQ==; Message-ID: <0b6fe14e-c990-4084-bc54-57872aa9ae21@luigi311.com> Date: Thu, 28 Mar 2024 15:02:13 -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> <76f999a7-55e0-4676-aa75-8fcd466e046b@luigi311.com> <20240328204657.GA314523-robh@kernel.org> From: Luigi311 In-Reply-To: <20240328204657.GA314523-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authenticated-Id: git@luigi311.com On 3/28/24 14:46, Rob Herring wrote: > 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. > Ohh i see what you mean now, this is in reference to the commit message, it was throwing me off because the imx258 description had almost the exact same wording. Yes that makes sense, ill change the commit message to specify PDAF. >> >>> >>>> >>>> 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 Perfect ill move this to the top level description and remove that small section that Dave added