Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp599927lqp; Fri, 5 Apr 2024 03:26:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWP1VFnCa3pDanJLw4wv3uMUYqapwveLITE92gRC5cbPlgFBfC2qvGZnVAHlRpaz1Ku++LPF5Zt2jn+RM/sy7Zv20gjJOpw2TXuSLuGPw== X-Google-Smtp-Source: AGHT+IEuMZC5dAI+w+r9NiW2txRMUAw4806qapxhtSRVZ8klKNyKVw4taL9sO6aX4nkS8MENMkVj X-Received: by 2002:a05:620a:458a:b0:78b:c1d1:327f with SMTP id bp10-20020a05620a458a00b0078bc1d1327fmr1235793qkb.31.1712312776806; Fri, 05 Apr 2024 03:26:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712312776; cv=pass; d=google.com; s=arc-20160816; b=q6tjBRhZizIjbn+HGO6B6fNAR1QFXNdG+FrkoIUEMot8Tb7Jh+0iSiK7MKC30wbtmw vT9U5TlwCJK9N/yKY5bXbqyKvi0z5x+FDIBjFQP8QNpCn3Y/eee79LsyR5tjuGNGW4G4 rKgTJ12pVn+jSd7sC0XlyN2SJEN2gkOgpHgfOknJ2yPN5sIGRyZCk0qRxYqIt9up5s6h T5eLEEU5P6WbIHsEfKh/v6Lf+c7iAr3WXuwtH5AxcpH0rsJZQn6uK5ZJu3wx7b8zTNZ5 oWigA4iMfANoQtHBr4Hxs1GZor9Dln3MvQobxHR/SFu/zjXcPMvdXqtVYChC1JYJpFJO HVWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=iARPaYJhsEjl43QzURc5h56Y/6xNJ33w7/reZZghG84=; fh=7i8eQSCA8+1AgP6ERMu7kYMaT5S7SeZDo4WAWYRPQ8c=; b=EXxDteRHH/q8CzbZMR6wbr+MLlwGJ/mo0vby63+OkWZ76UXMyv4j4t18x92hTV0MD8 +X+voyZG+QNS5Hc4THlofAib4bCqwwQw7+3IrFMjm/jIAWXBZjCfLkPXLuSKvrjdXV/4 H8ROxPdfs5DZnb9+do6dBNQCeBEDtALFMuh6Ntnw8uZFUbc7NHFeaucbJhZMyIqTgIcv a7Mx66BIyzoMr+zxcmakRjvdCkdGHvaBaCm2Qja8cSQgCUDKSb8ggfcYwZbXJ5eiQOHf MUVewl67QnhTkuq2kWt+g5aBJSQhbIr7yaC9rivsFS0uHKk89RFnUFdX2Ld5L4NUrMZf oi5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=p9BH6h0S; arc=pass (i=1 spf=pass spfdomain=raspberrypi.com dkim=pass dkdomain=raspberrypi.com dmarc=pass fromdomain=raspberrypi.com); spf=pass (google.com: domain of linux-kernel+bounces-132820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id wj14-20020a05620a574e00b0078a00a41f69si1412703qkn.678.2024.04.05.03.26.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 03:26:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132820-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=pass header.i=@raspberrypi.com header.s=google header.b=p9BH6h0S; arc=pass (i=1 spf=pass spfdomain=raspberrypi.com dkim=pass dkdomain=raspberrypi.com dmarc=pass fromdomain=raspberrypi.com); spf=pass (google.com: domain of linux-kernel+bounces-132820-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com 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 82A1D1C2151B for ; Fri, 5 Apr 2024 10:26:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 452B71649D1; Fri, 5 Apr 2024 10:26:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="p9BH6h0S" Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (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 8ADFA163A9B for ; Fri, 5 Apr 2024 10:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712312769; cv=none; b=azFp9A45MtHWTMtiGNvk/w68OhfMssgTF9yOLS+fh4hf7i6fwBaQyLRcfbMkVMax0PeEXbDEzhmGIOZsJT/cMry0P9jxsHL4C9eLjo7PR5yGqkZRXs05EiUpEYelvtilt6VMh5HCUIvB72bwU2k58fJzwUcSqKTWRUwSMXcDdCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712312769; c=relaxed/simple; bh=BmBFgykMPvqdnMoOyGWVJk45cd5kDC9vL/wpVpRu1Xs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Kle4pCPxLdE7DfO8V4w2DFx14FgcwWKC02ZU5W7CoxOWV1QGjugAqoAeN9mSU2CEvH5uTNEL7Besosgkwp56ZcL3F0RiBlYOUJn4Qr3uECWztEdcYROkipcef73Pcn/MVF3QBfCd8vNotPuIsV8sLVvBoepTLHseu/Fh43eS5a4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=p9BH6h0S; arc=none smtp.client-ip=209.85.219.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-dbed0710c74so1863081276.1 for ; Fri, 05 Apr 2024 03:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1712312766; x=1712917566; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iARPaYJhsEjl43QzURc5h56Y/6xNJ33w7/reZZghG84=; b=p9BH6h0S5gK+WTCDV66QyrPRpG2IELHqzgoT2ckfqC/SmyxB9mCQAvRgO7mhWuz2NT ojbvmKt9Y3swtLE50ZnkTHJUeFolks7+bZFbY3nfcFiA0dde6npQGzebgjiklP+4um8M TQNN8MlDFAv8WRSV5ncwy2h5gqjiB4t9NFesBOIVTkd0BJIBIkiPQDsGQMWdyPLZ4PrR QhUdRQ1njlk/d1KALeSEHnWmJ2lVvbLPbZo0KXkwGSR9tRF9HRYyXUnKLOhdA0QS2EaV FD3BuTtyERfjzadLeYOfFxYHdPAD/c8K5x+1ox2dDwjzFctROywebUMgZcVH4hsADJOq MwEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712312766; x=1712917566; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iARPaYJhsEjl43QzURc5h56Y/6xNJ33w7/reZZghG84=; b=u10RjaGk3w9peocWIOSlI/vqzix53R9HM3xwbp/CMaMoR6kPhQcy8MM+BypPj2hLvb 7dapNjd9yfKwlr0KHapH6fmRDxHdt0nqJRfCy/4V7dcAJryPMbTGci3A0mc5fimGkEKw OfbfAq0kxPWln8fgQL4hezSEwnSjOlRB/7vjy23BHDqxEggC6mJQfCaZX+yUEXgtmCEJ w11hDcV30H54i3IHJmMTtsCsqTw19tXWpNLOej4VqB3cK0437Eb1jZ5OBVDPw1kYFP3Y eqIt0VxwQz+QhUU05Mg0GphdfOuTeShO5MKMDBWC1uYf4CrThRbpAAnmeqHslcxtmas8 55yQ== X-Forwarded-Encrypted: i=1; AJvYcCVY1znNap3ANJ9TOHRtjipOX5InY6WVZyyak/BzChC986cWCdd4wwsySoYc35rr5rBW9n3Qf42nAyoYbCsrk9wkf99F561RUk/PVnAh X-Gm-Message-State: AOJu0YxP9zM+pj0A/d837RKW3wTEmfkYGugMTCB3uIeJ9ncH5o16AkfE 1XlYG8TN34jwUMXPFskLXttzNBcYPheU5bwVnXG+ipgNE7xLprrSTl/DySp/EO47ayLRA6ZeOJA qyHHQMjfXX9RCpG7Pm/scH/RjrmLS0wYOO1En/Q== X-Received: by 2002:a5b:f04:0:b0:dc6:d22e:ef4c with SMTP id x4-20020a5b0f04000000b00dc6d22eef4cmr765600ybr.17.1712312766450; Fri, 05 Apr 2024 03:26:06 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240403150355.189229-1-git@luigi311.com> <20240403150355.189229-19-git@luigi311.com> <20240403-vista-defendant-ebadbaa52059@spud> In-Reply-To: <20240403-vista-defendant-ebadbaa52059@spud> From: Dave Stevenson Date: Fri, 5 Apr 2024 11:25:50 +0100 Message-ID: Subject: Re: [PATCH v3 18/25] dt-bindings: media: imx258: Add alternate compatible strings To: Conor Dooley Cc: git@luigi311.com, linux-media@vger.kernel.org, jacopo.mondi@ideasonboard.com, mchehab@kernel.org, robh@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, pavel@ucw.cz, phone-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Hi Conor On Wed, 3 Apr 2024 at 17:14, Conor Dooley wrote: > > On Wed, Apr 03, 2024 at 09:03:47AM -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 the > > PDAF variant. > > > > Signed-off-by: Dave Stevenson > > Signed-off-by: Luis Garcia > > --- > > .../devicetree/bindings/media/i2c/sony,imx258.yaml | 9 +++++++-- > > 1 file changed, 7 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml > > index bee61a443b23..c978abc0cdb3 100644 > > --- a/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml > > +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml > > @@ -13,11 +13,16 @@ description: |- > > IMX258 is a diagonal 5.867mm (Type 1/3.06) 13 Mega-pixel CMOS active pixel > > 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. > > + CSI-2. The 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. > > > > properties: > > compatible: > > - const: sony,imx258 > > + enum: > > + - sony,imx258 > > + - sony,imx258-pdaf > > Does the pdaf variant support all of the features/is it register > compatible with the regular variant? If it is, the regular variant > should be a fallback compatible. It has the same register set, but certain registers have to be programmed differently so that the image is corrected for the partially shielded pixels used for phase detect auto focus (PDAF). Either compatible will "work" on either variant of the module, but you'll get weird image artifacts when using the wrong one. Dave > Cheers, > Conor.