Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1380653lqt; Wed, 20 Mar 2024 02:03:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoNAEXwa/SsItJFXF3ruK1zQfC/V/YJOKSTNKNk23/t1rx3ISRCYnziAlyiBFAbhPvJicH72mKtvLfo0qzg3eV1w6KZqAY7ubH1bV8Wg== X-Google-Smtp-Source: AGHT+IF9+t7bO3VbKNhAQlpqaiiM/XAPRPklo1C/cxIQFKvwxoxB0CcjaMbxpVNW6+EsNJR+2ToU X-Received: by 2002:a05:6402:2489:b0:567:9ddd:65c3 with SMTP id q9-20020a056402248900b005679ddd65c3mr968042eda.29.1710925427085; Wed, 20 Mar 2024 02:03:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710925427; cv=pass; d=google.com; s=arc-20160816; b=QzU+4JvjJ0kdmRGenwOaJxe55Bu9VrwhePlPs4kYcaBpzzUrYnoj1DZ7PkwLeilU3c 8l97La96vb7whJG5Oj9DQLBQW/+TfBN36JFmkZxHLn7j/9OC+YiQc1s64QSfatBEYn3x o7RYxeUzXQsEQitnjBg7oqi68Ne90Tewe+3pJaLwovi0wYDuONbG9CNZQLkZYAtux/p+ KDMDdKiH0zlQk7jr8qy0Gm3xyX0sYWfkbk5CZ9Qf8vFiT+dDpgjX+Q7DXpFxOIJ8oqOS j8i0AlgGa+smOdCThtzeUN4+3dQUHGOaj6wPgf7H0Ta71LA7psqT8OFq1Bsg86BEAXmm ZM5w== 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=eJU0O/BFTc3zZqI0qHLQ8I7updnuUUZkqUj3e31JFso=; fh=xPSJVAqA8KA1ikPPov0nLpYSlczYMy3hlkhFHF4Wl0Q=; b=Vw/bouzOsPsK76SPlEg8YnPhR1PhXxVA+IIviozGYg9+DQjBIqj4ZlOMLukFWAvnMe XDgh5AuDWuod9Ji0W4LpRTRUpi2sKezOnxN7jaoAvQPRq7JhPhQf/QZyJIJTCSPMCYCE qiX4Stjfs1E6aRYEVwP4XrHrH/bxE4IqCpArOc8jD0869fd7JZ3qXLrtYkUkmY42r2aW ZFcmQ5CkLs6BjVUiiAifa150ulGFLsu5kCBIb5Wb5lsY8IlLBaujy7CrZvFeqsYPXcsQ 67EbFU7hLFMDRYbm51gJkvB5G3RILnxBPA4Xve8PoyFwCFU+Uy0xZcIjRE8rlRp5ZByC FBCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=MrNRFhKI; 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-108648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n2-20020a056402434200b0056b902e4b61si1809273edc.294.2024.03.20.02.03.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 02:03:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108648-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=pass header.i=@raspberrypi.com header.s=google header.b=MrNRFhKI; 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-108648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108648-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CC3531F25CA7 for ; Wed, 20 Mar 2024 08:53:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C43F839AC7; Wed, 20 Mar 2024 08:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="MrNRFhKI" Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (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 0F10E39AC4 for ; Wed, 20 Mar 2024 08:51:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710924695; cv=none; b=QuRRFylQHy0I/EPnwG3oPZDz8JgSlaX7pXj7QMDGRiaeYG2rT2tAWd5gv2LlcKsvVxAOKWWBOuJxWfLEFj2Irb3wfqc/w705mUazDGefpbw29ZKWrwUYcF2635kDuOrW+sBtOyDvYLeb0PFniqQgxlm8vD5FC6m801MEV/TJDW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710924695; c=relaxed/simple; bh=4fd1zmbuBjJCarH+myUoDkVe8GZxjxI1yQiK5tJX+FA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sK9xP14xGNPNuVjuHJuL4TjqW6KzOnnv7i3zpk2forDY4AJ0d00JB8tUFHeV/FRqX7XqGDbUYEuZJhjqBHWDkJNcsmy2+EV6gRKV4/27YlkCGyZXINwYWJjbZ5p57kPFbAbZGgHWXvKW2mWwRe7iGZ0Vy/21diJBSCdTFdSK87A= 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=MrNRFhKI; arc=none smtp.client-ip=209.85.128.178 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-yw1-f178.google.com with SMTP id 00721157ae682-609f359b7b1so75909997b3.1 for ; Wed, 20 Mar 2024 01:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1710924693; x=1711529493; 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=eJU0O/BFTc3zZqI0qHLQ8I7updnuUUZkqUj3e31JFso=; b=MrNRFhKIYxa8NThkiByC4hWNMWn2bXlDervnqKeGQliI5QcLv6jJkXmjAEPpE54qUy VbfTieTMHzZHhVsCclfW1hcvHh2auQM2ieqcoA/uMcTiuSXC2sLm9PScVUS0y8eYLIeG M6G4Cpyfx3x03MsUAAKK+sLMtSgBbkdhSccEUZ2wYzoxPg9RTLLvl/5rqEaHuyPGnZwA abZSzmUp/4fX2NGspHB4YR6CCQdAd+Cs3UTIlbEV9rE4XWTeINC7iCpkAlcv3KM1+1tn xI92Cqy/4mxSueGf4LJHX+/HqjMFr19vAkF7XJ7ySXBppO4EuH/ZUCwDm9lCSxviSppX hanA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710924693; x=1711529493; 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=eJU0O/BFTc3zZqI0qHLQ8I7updnuUUZkqUj3e31JFso=; b=aVxQ6akZFow+l4tPGxqSz12MZoW5K0gcgKtlBYn/JKQtUE5ptTjG75IdsAFVsXxTRD LaIsCJGADBcGCNMp47c0KX+7pignHcza5wptv8tSqC37e0PeB/StFlT/bJ0whHkN8/NG HyWdVGDRmabE1LCGG2ECD0bBii59jljo6ZWfWOdBM/ODcRK4holvZp/FTqM5V6qlYNCk EVYdG0iaLHuManHioF2EOLMSGC+n6yEVn9a0Ano9Kvmnipg8ZaozOqReOkGluV36JdWl jaqGYyQOJkLktAPYhiEDDzQlNJ0yUsYv6NlkDy4mBr24+uEMOY0HmM0NcG5CQ9uf2TH+ uWGA== X-Forwarded-Encrypted: i=1; AJvYcCVMo/+EmE5LlI5hsyJcL9kgnvufR6SlZpgOH7vjvhIzwHCUKgENd+qdnTcpjo19MVEtFNVhLpRdrHN4HWMPxqp7QoL7fRIyKHrtdi2x X-Gm-Message-State: AOJu0YzJk6LePO8FfFn6vRKsVO1jG6Sp4yNb+OJKP+JBMZ8GHhRX62nA NOUzLrVKDL6p+I/j2AClo2tq9lbChOI5bUSHSM5KBUds2QNM1vJuJlYYRcmbLgvVYkzyktABFN0 /EG2pDoMhiUl+RfhPEuCjL+SeGfJHRr9gldHx7A== X-Received: by 2002:a0d:e657:0:b0:610:d86e:954d with SMTP id p84-20020a0de657000000b00610d86e954dmr5086956ywe.34.1710924692900; Wed, 20 Mar 2024 01:51:32 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240318-rp1-cfe-v1-0-ac6d960ff22d@ideasonboard.com> <20240318-rp1-cfe-v1-2-ac6d960ff22d@ideasonboard.com> <30430e0e-70de-4831-97ad-974e350a2e54@ideasonboard.com> <5ca1d005-1beb-47ec-943a-9358ae3c6704@linaro.org> <89d459dd-cc8c-4780-a56a-809e24343e69@linaro.org> <9d238cd6-0e11-4775-bc00-7df50f0a6638@linaro.org> <0401eb0f-0172-4371-9a16-f51b6b885b55@ideasonboard.com> In-Reply-To: From: Naushir Patuck Date: Wed, 20 Mar 2024 08:50:56 +0000 Message-ID: Subject: Re: [PATCH 2/4] dt-bindings: media: Add bindings for raspberrypi,rp1-cfe To: Tomi Valkeinen Cc: Krzysztof Kozlowski , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Laurent Pinchart , Sakari Ailus , Jacopo Mondi , Kieran Bingham , Mauro Carvalho Chehab , Raspberry Pi Kernel Maintenance , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list Content-Type: text/plain; charset="UTF-8" On Tue, 19 Mar 2024 at 17:05, Tomi Valkeinen wrote: > > On 19/03/2024 17:32, Naushir Patuck wrote: > > On Tue, 19 Mar 2024 at 14:03, Tomi Valkeinen > > wrote: > >> > >> On 19/03/2024 15:05, Naushir Patuck wrote: > >>> On Tue, 19 Mar 2024 at 13:02, Krzysztof Kozlowski > >>> wrote: > >>>> > >>>> On 19/03/2024 13:57, Naushir Patuck wrote: > >>>>>>>> > >>>>>>>> See writing bindings. Compatibles should be SoC specific. In some cases > >>>>>>>> generic fallbacks make sense, in some note. But don't just choose > >>>>>>>> "generic fallback" because you want. Provide rationale. > >>>>>>> > >>>>>>> If the compatible is SoC specific, I suppose "raspberrypi,rp1-cfe" > >>>>>>> would be the correct string. > >>>>>> > >>>>>> Sure, but then please think what if rp1 is on Rpi6, called exactly the > >>>>>> same (rp1), with some minor differences? Could it be? > >>>>> > >>>>> Yes, this is definitely possible. In such cases, I would expect the > >>>>> hardware to have a version register that would be queried by the > >>>>> driver to adjust for minor differences, and the compatible string > >>>>> remains the same. Does that seem reasonable? > >>>> > >>>> The "would expect" is concerning. The register(s) must be there already, > >>>> with proper value. > >>>> > >>> > >>> A version register already exists in the current hardware, so we will > >>> update it to identify future hardware revisions. > >> > >> But that's a version register for the FE block, not for the whole > >> module, right? Are you suggesting that you'll make sure the FE version > >> will be changed every time anything in the bigger CFE block is changed, > >> and thus the FE version would also reflect the whole CFE version? > > > > Yes, we will update the FE versioning when either CSI2 / FE blocks are updated. > > > >> > >> Can there be versions without the FE block, with just the CSI-2 parts? > > > > There is no version register just in the CSI2 block in isolation, so > > this is not possible. > > I meant could there be a future RPx with only the CSI-2 parts on it, no > FE? In which case we would not have any register for the version. But > then, that would be a rather big change, so a different compatible > string would be in order. > > So, while it's not exactly a perfect version register, I think it will > work fine, assuming the HW people will actually increase the version > also for changes outside FE. > > >> > >> Also, I'm still wondering about the RP1 part there in the compatible > >> string. Is it necessary? The CFE is located in the RP1 co-processor, but > >> is that relevant? > >> > >> Is there a versioning for the whole RP1 chip? Maybe it's going to the > >> wrong direction if we use the board/SoC for this compatible name, as > >> it's actually the RP1 where the CFE is located in, not the SoC. > >> > > > > I don't really know the conversion required to answer this one. > > Logically CFE is on RP1, so it makes sense to me to have "rp1" in the > > string, but I will follow the judgment of the maintainers. > > Well, my thinking here was that if we have a register from which to read > the version, and Raspberry Pi would create a new co-processor, RP2, with > the same CFE. Would we then have "raspberrypi,rp1-cfe" and > "raspberrypi,rp2-cfe", even if there are no changes? Or would a plain > "raspberrypi,cfe" do for both? > > In other words, if we don't need the "rp1" for versioning purposes, > should it then be dropped? I agree with the above, you've convinced me that "raspberrypi,cfe" might be the more appropriate string, or a convincing argument for that to be a fallback string. Naush > > On the other hand, maybe it is safer to just keep the "rp1" there anyway... > > Tomi >