From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795185195; b=Tew+Pni4oCIxLoWfw1VKEGYmmP41dR79825r5E1B6UPaOQJv1JTkaRaY26tJo5f82V8q eV1D8TvY/1EGFOD6QPLVvsPq03yIwPQGsO1n3rHDa4H+6wdiWjfRq7XzAQnVjuTvB+4gf enTh/IxykFY4lOBXjq0DScc9pIujzbOod1TOWwvdWBdAmqxzcGBQ+s31SAeWbHGxIRWhQ oKNst6LrDR0i+eTAwgXWJqkj/6azSGTuCqslrtOesGTWsuAd+SyjSqkjkG7Nq4Ed1Ejr6 IePhAY08YMtMhiIrAwfIoDFFMoY4PmuXrnRE6F40KVV5X4xituSnAJPTcK2okv8Y+/g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795185195; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:Autocrypt:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=92f6NRETdzojaigU8EyzxjI/4N0lXsB5qD5xAdIQvbI=; b=k9ntKS7705sQcBIZ4jRIi+vMfC93IMzituf/dGbLnh2qo3JP/olMdw9Bc2CBTdVtkcqn 2Ix/0MJT7JpI6oCdq/CDz0LiMj2dMzIenlRPW2mufbTamzbfd8DuHfpapwfrS22M70eeY CCAKdTkWraePT9osd0a6TWam2uzY4DBUkuC7E8K2p7J6Cu2DND2G4pT5842eSUszxUSa0 8Z2izw9u3u7czUyjN3o4M8N0MwJPyVjw+f9nT69WWxh9s9uvADOU3acMCJbxs3xeFv+IO J+V525kwV1m4XYIq2Nlyx0XNYC/M72UEOybWuRB6wu03l4oA/pgkA+yvcCUR9bCMdtA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b="fVLeH/NA"; arc=none smtp.remote-ip=209.85.221.43 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C86F606A326 for ; Fri, 20 Nov 2026 14:33:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5C86F606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=fVLeH/NA Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-4a32576da88so542995f8f.3 for ; Fri, 20 Nov 2026 06:33:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795185193; x=1795789993; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=92f6NRETdzojaigU8EyzxjI/4N0lXsB5qD5xAdIQvbI=; b=fVLeH/NA1t57W3/bCEZIZWhbOFBjWy0sHlhrpoG4Izfr9IGJew9nG3j42Rw6alippY BT0vIYEC5b2uFta9Ajxyvq4HLZxEk6248gD6bsXwocEB04kMqZ4iVDN+XhjDx7wYj2f6 uRvILwXA3WGpDt+jghB/balcWGgm/XhfllCE5NU7WQYSOgIR2D7ZhZUwKnFGGT6d0eig b/JzF7ykNyFPqess44kwGAbKuEIt95T+yu/epovAsfSDyGaR6R7UBvrFEfadI+1dBacK vz3mktPikbpyKm7zBsyaRloECJHvgHavA5eOStrOxSwbRpMvHMV7WonZA+z5qaQHN/Vp Ae2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795185193; x=1795789993; h=content-transfer-encoding:content-type:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=92f6NRETdzojaigU8EyzxjI/4N0lXsB5qD5xAdIQvbI=; b=wHAdcfWbv62nLMYEkIUhdgKD+eRM/3XOsBmMUI8gab5Wj4AkEL2JyXWVzIn/bH9Rnx aMWWqQT2jolTnL4fxjOmJ3KY6xjEkZPcPAQ055GIbcg0rpp7xqmug08ozGm5wsXpDxzi h4sefUh3GcU9ssSuwQsR3Z+AJV1bqLCAt6xQOelJ2UbARPog8bxWApdBmj4VhaCEMcY0 9/3QyRCz/cFb6P/Dvwc6jKlgvgAgLeuyJapCxb2SUKpblyTYUsW7UtY7Uu6cHbN+Y4x4 zv8DwoyFkyw5gqQyFxglCGLT6NIKp4nM+vFeEkFy6sOBl/VbZGDv17wtvz0BFYEpUEak xWOw== X-Forwarded-Encrypted: i=1; AL+hErHzkAkhLclUFyeS/Slkg5lTHlUhyv0wagbt0cNgV24eZcDedmE53vPUvgIDIeH3essrOBQRnUZjFkBX@vger.kernel.org X-Gm-Message-State: APuU4Z9rqAm9+JETcac+f+nzrapOXq/QM4z3yLricGiyNFfQRuf9dCHv IBmq8HTX2jyKpwB6RcpBnSBlbiqJua2ch8ncwU1cOgsMf8/pUYEg3xz5WhbyGAHO9Xc= X-Gm-Gg: AZFdTZd94e+uNonEu8NA4S2BEwgmw/f18astTsJxFnvnYogYEwPIgL+Jq8M1VfZ+V5G o1f27Etv1bIGzmRQZc+6izFngIdhHv+gg/BOkl/9RAIXq9wTSyd5hlYoTv3+floKf/MT2B8WQAj ypjsqhDJuTeDR3El92ymReyK+vFP9ieRVx31H1pkuCJ+l7vu3ZHxYyqUVWrMViQSg7ozyzTy0JI BXMEhQPhxE56LuORv4xDCYqvgpvwofvYYj4Q16hhx1MfV9yDKZDJGP+BJ5FPQtXHTGgUO+FIb5r cQmsCEt9GlJ79080xpEEt2MZ9i9CzMeHQ4318uwXIJlgydR1Ev8RnqY7pcxKWB5wkC0Ja9AhOSj YueE7PIknjOpb0munaJwQM8vaCVAm/rL85CBsftDhI3N8Vq2KePmuU1R1CNe3p9NEE+wpFNaOIJ NhmGq/kVWZ7Dr1NI7nslNRGtH6KlOn2dMpK69qUNmnjFL8TwQUmUQ3hOwvmEQRV7MFm3U62VO0x 5uJNlH1x8IVM7h1M/me7mJCxsMQkoEoNkHNyA5k0NcSSeoeIJmWsJyOD2mkl8t8WqKYDb0abAVn +ZpYOFU/jhIdIKfcNAwsrcH7yXp74cL7GPfQPsduCTWbCL7/ZhnS6XiJww== X-Received: by 2002:a05:6000:400b:b0:4a8:dbbd:69ab with SMTP id ffacd0b85a97d-4abb4f58c75mr6786554f8f.27.1795185192603; Fri, 20 Nov 2026 06:33:12 -0800 (PST) Received: from [192.168.1.62] (140.30.66.37.rev.sfr.net. [37.66.30.140]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b110d56sm5978154f8f.40.2026.11.20.06.33.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Nov 2026 06:33:12 -0800 (PST) Message-ID: Date: Fri, 20 Nov 2026 15:33:11 +0100 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 00/15] R-Car X5H Ironhide CPG/MDLC SCMI remapping support To: Wolfram Sang Cc: Laurent Pinchart , Geert Uytterhoeven , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Brian Masney , Jerome Brunet , Ulf Hansson , Philipp Zabel , "Rafael J . Wysocki" , Marek Vasut , Bartosz Golaszewski , Konrad Dybcio , Kevin Hilman , Vinod Koul , Kuninori Morimoto , Paul Elder , Sudeep Holla , Cristian Marussi , arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org References: <1e9c5ac3-d82b-4af9-9946-0302cadf7404@baylibre.com> <20261119234759.GB2324725@killaraus.ideasonboard.com> <19c3745a-6308-46ff-bb37-3acc88fe22e2@baylibre.com> Content-Language: en-US, fr From: =?UTF-8?Q?Cl=C3=A9ment_Le_Goffic?= Autocrypt: addr=clegoffic@baylibre.com; keydata= xjMEafx9bxYJKwYBBAHaRw8BAQdAtc85GIwDXLz0rh9thWXC80Lji0otVDVncXT4qaS4j1fN K0Nsw6ltZW50IExlIEdvZmZpYyA8Y2xlZ29mZmljQGJheWxpYnJlLmNvbT7ClgQTFgoAPhYh BJjMiHuM4ZUwFqUPr36EW4KtCh6TBQJp/H1vAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQWAgMB Ah4BAheAAAoJEH6EW4KtCh6Tt+sA/jVC35rY1npFlOy7YnncTdrID8Qf855JA78IzXgvzpGp AP9FkuuT80m66PP3DvgYX9kVnG17mSDKO0+v2W18v6ZgCM44BGn8fW8SCisGAQQBl1UBBQEB B0DMwF4u//aQyzsFlO8rPJ/cqsAuPH80IeIA3HOEo5mlVgMBCAfCfgQYFgoAJhYhBJjMiHuM 4ZUwFqUPr36EW4KtCh6TBQJp/H1vAhsMBQkJZgGAAAoJEH6EW4KtCh6TdSgBAMDS0MiWCivt LjzZc9bs+P/xdXywUjDKq3lpQGJ6vZ0GAP9vI6DnN7vwVK6jt6/+0aBGkog5Ura9+WwRFEdM vLfPDQ== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Wolfram, Thank you for the rewording, it is clear On 11/20/26 12:10 PM, Wolfram Sang wrote: > In the past, we wanted to support all kinds of firmware. Sadly, each new > firmware introduced different IDs here and there. So, we came up with > some stable IDs ourselves and mapped them to the IDs per firmware. This > is a n:1-mapping of firmware IDs to our stable IDs. Sure, that is part of firmware development. I know several SDK versions exist, and supporting several of them is work for a vendor tree. As Geert's cover says, "While upstream Linux must only support sufficiently mature firmware versions, vendor trees (e.g. renesas-lts) may still want to support development firmware versions". Each SDK version can then have its own DT there. > The support for firmware versions got serious opposition from > upstream. We concluded that supporting only the latest firmware will > make most controversial discussion points vanish. So, we now have a > 1:1-mapping of (the latest) firmware IDs to our stable IDs. Agreed, supporting several numbering upstream for the same chip only brings confusion. But then, why can't that one mapping be one DT? > I guess this is what Geert means with IDs becoming "stable". > firmware versions might return IDs, but supporting only one firmware > we get the same "stable" ID from it. > > Sadly, of course, with the next firmware update, we still might get a > different ID all the time. So, not stable in that regard and we still > need the mapping :( When the firmware can be updated, I think an id change should be fixed there first. That is what I would do in the open-source SCMI server firmware I am writing for this chip. > Yes, this means the driver is then tied to a specific firmware version > because it only has this mapping. Not nice for a user. But we didn't see > another way moving things forward for now. I think the DT is that other way. With the SCMI ids in DT, only the DT is tied to a firmware version, not the drivers. If a release that changes ids is already out, it needs a new DT, or a quirk for that one release when the DT cannot be updated. The hardware stays described The CPG and MDLC belong to the SCMI server, so the DT should mark them status = "reserved", and the consumers use the SCMI clock, power domain and reset providers. The Devicetree Specification v0.4 define "reserved" for this case (section 2.3.4, Table 2.4): "Typically this is used for devices that are controlled by another software component, such as platform firmware." Zephyr also uses SCMI on this chip, and it already keeps the SCMI ids in its X5H DT Juno and STM32MP15 handle their firmware differences the same way, with separate -scmi DT variants that simply include the board DT and an SCMI .dtsi. If the number of variants grows, tools such as Lopper, which I mentioned before, can help manage them. Best regards, Clément