Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp588040lqh; Thu, 28 Mar 2024 10:11:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/wmPvsq2Mg3cGmK6fmu1DD9xflDvs1fWpiC4gMc03Fge9+sRbZnpV39uqwdHFxowV8RjRKP1BWeDxFn+MTLFsCtUGgvdWOAAeKJIiFA== X-Google-Smtp-Source: AGHT+IE3QY6GGH8uJqA9ksxihRfKOQl4IaXcA359EFxXxk/9BK7+NxQcvnOgwSOg33p2eXdErXSu X-Received: by 2002:ac8:5bc4:0:b0:431:5f3a:6602 with SMTP id b4-20020ac85bc4000000b004315f3a6602mr4056230qtb.43.1711645874747; Thu, 28 Mar 2024 10:11:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711645874; cv=pass; d=google.com; s=arc-20160816; b=MVrlgibon/wtgD2cY7aYAAfcbmEpNSf/zqP9Sa1uj4MfOHnRTkbx6rnJFu7Br7KpwY atTMGujgRvKxEt5CogpGO3EV1x3AU0SfCSuevKYyhrqOPBxvKOMP3WwPnweRu4Dc9ful 9MDXayFOKCPLLVL1Y6PoE+iOK7o95j9aROZusTrXxWbIcCVVKuvBT5TbQxBMekYWOZSQ iM3aWKSS0rxp6uslh0thE8v5Muw0huD2wMULbJSTtDTpzltqW+uOrS1uSxuIkozd3p0w fWLQ63W17vZhyAuYQ63MyePBxMlIidjMiqq5VK2qNjaxzb1ls9f3QIhLUW+TcQmOCIGg gRlw== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=mZL5hLBkloRsl6YhllysqkuiGbw1qHa4I22VeBcbYtE=; fh=9+CD/qylCOFOmheejU+R/vPlretvDKRVZ8D6ABi3rDE=; b=wztyIrbnmAqFfaZhoRGzxfJcNLLdq4EGvNjhRy4mWIFVr4wV8gKkzOU6xcPH1sPE3B GiQEv2TIfkms05Ya7oKVcgItXYYwh4+qkhaXB9awDTit9IVa/rTu4QFuRhHygyB+riIv ij2J111nRl2c2oQsZ36cZahGYx4jDfrj4VmkTGuAbQJCRif/N/+ToavWEVUh2PFNsZo7 I5dxpAx49hHArtpFhCm/oZp6B3rjIr210mZupwQ03p5gtnT/7i7T3MO5JBYWEqSmVbET lfOjIEnOdEf56qfDdMDFiSXqvPVPXB8YPOsNLO+80OqnxMBeYLTk0VHdc0ymXQEMPsr+ 70+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=ytSYbPaf; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-123347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123347-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f7-20020ac859c7000000b004315e4b87b3si1817826qtf.208.2024.03.28.10.11.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 10:11:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=ytSYbPaf; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-123347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123347-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 6B21D1C31DC5 for ; Thu, 28 Mar 2024 17:11:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE4DB3BBE4; Thu, 28 Mar 2024 17:10:24 +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="ytSYbPaf" Received: from mail-108-mta98.mxroute.com (mail-108-mta98.mxroute.com [136.175.108.98]) (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 236EB3BBF9 for ; Thu, 28 Mar 2024 17:10:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711645823; cv=none; b=PgeZuV3fKL7gOdmGltg3cc7oH+aLhOSbTVOmyCp8h2eYVg1vl1SnKAsSBovO9tNzuGYgtZGa/nCBIHSM9sDycdLo8FaHJRfDldtask97P80GbdJPOr6qsMDgcR2zE++Jh7tx4tC6/UoX1/iPg7/GJMISWvR6BgA22pk3eFGxDoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711645823; c=relaxed/simple; bh=9zNP92bNPgp9w0XFvKSF/0xg28mBtIKDRH7jxflanx0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WlbBEvEKhQbJLeUKEAa5TtCUUe67dd7E0d4+1bjyRr3VDCLiingVoUm6Mf3B1iAUEv/kxjCu/3Fns105UmcJOQZT0vwVCqSHwtipCqccX93ZeypYOtzOJPNZwbrZBWQbKRn0S/ONE5I9DFaXCUNVAnXgiqkiSeDE7O21bFyUz/E= 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=ytSYbPaf; arc=none smtp.client-ip=136.175.108.98 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-mta98.mxroute.com (ZoneMTA) with ESMTPSA id 18e8605d28c0003bea.010 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 28 Mar 2024 17:05:12 +0000 X-Zone-Loop: 2e6eb48510aad9f9c42fc20b45c616eed76f18f744e2 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=mZL5hLBkloRsl6YhllysqkuiGbw1qHa4I22VeBcbYtE=; b=ytSYbPafdQBqFW/aT7tiYbrWV2 vCDSLcj/SXxrXAEOyX7t//p6PPq+Fne+0Kcnb7Ie5h8X63HWNxJBYSLEKNzAA33O4nEE5r6B6WVV+ EXlEH+oH/+qZRIwHLX4KChloLIYrXkHu4qdajB2S0q8uVSuBzZksOzFF4aS7A9gDlFqdqLEo7l+qw t9xKAIgM6QhretsOfuKTDPilYyGXf5PPYMM344OtVOZ9b9lGSFBveuZayUo801/N8eZfKyoM0Se2d X1umR6FA73bFEhY8XCAAxFl/Ht6t6hmqVKiTpgfSim60XGUAM587LvOf42kDCig3Q8NY7JUSaZ9C9 +dBivuRQ==; Message-ID: <30d886be-cac8-400a-9b2f-dd2ce64b34d8@luigi311.com> Date: Thu, 28 Mar 2024 11:05:00 -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 To: Krzysztof Kozlowski , git@luigi311.com, linux-media@vger.kernel.org Cc: dave.stevenson@raspberrypi.com, 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 References: <20240327231710.53188-1-git@luigi311.com> <20240327231710.53188-19-git@luigi311.com> <586bdcc9-793d-4cbe-9544-9012a665288e@linaro.org> Content-Language: en-US From: Luigi311 In-Reply-To: <586bdcc9-793d-4cbe-9544-9012a665288e@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authenticated-Id: personal@luigi311.com On 3/28/24 01:47, Krzysztof Kozlowski wrote: > On 28/03/2024 00:17, 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. >> >> 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. >> >> properties: >> compatible: >> - const: sony,imx258 >> + - enum: >> + - sony,imx258 > > Two people working on patch but no one tested it before sending. Do not > send untested code. > > It does not look like you tested the bindings, at least after quick > look. Please run `make dt_binding_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). > Maybe you need to update your dtschema and yamllint. Hello, looks like I messed this up during my v2 (sorry missed the v in my format patch) when I took this off Dave's hands. This is all new to me so thank you for the command used to check, I was only compiling the kernel and testing that so I didn't realize this needed separate testing. Looks like it no longer complains when i run make dt_binding_check DT_SCHEMA_FILES=media/i2c/sony,imx258 with the following properties: compatible: enum: - sony,imx258 - sony,imx258-pdaf If that looks good I can go ahead and include that in the v3 > > Best regards, > Krzysztof >