Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795185195; b=FlJ4h/sJZBYcS+TGG0t/lAeZdndNzNvq7F1A5J/VItA2oijRn8MX0adP5mj0deyamA1J bvqss7WudCzZchhbgTRjdl9qdVSUtB5vrEsNChKBvtKeI4J+mHgMsHmrbD74Wlq5XhZMz 5Ln2RrJ3H1U70klk5g8jQpzN4ngkOhaBXkmkG3wZuwXF3v8Rhhs4PdECRyIb31peygPyT vK+f5V15DhsPNF4tU+6wn372pOczyHWURdHbkgCTeTsE0dIAoB1azp3QPqSCoGpehH1hV xsRR9g2rR7jmRcN42EHRtFoAtn1E/vg7OPmCoXm0Q8DqmcszwOEfiD0X7C/zU+5dcDA== 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=xRV2pClbPHFAYmYmvWfrG42XLIz745ChckulxlK6crFTwJ8teYnldtujCsFKQy5vsBrF GzxXR1PSfVE573bxkfCgC3HTiprg4hYbbx4AygC028T4Q3Eq+VxyA/77qx4fOBR9Rbs7w FrF7KpVhstngn2WUUPKoPxy/SI/EjNzpFCJBBUAI8SLHp0yWjntFAL13263BWFwkB1nd0 ZvL/A5j9CmTGP+l+UC95F8IN7ZGybNtfzmeSG7HO/kS1uUHEYxefBXTHGMR3UY7a0Zw6x lMrmu/od5q/zBGikRyfogNJ13InzaBmnZ5daF6YWZsgqDYZomA4w1wH7FsVQYKzjtbw== 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.51 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 53A61606A320 for ; Fri, 20 Nov 2026 14:33:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 53A61606A320 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-f51.google.com with SMTP id ffacd0b85a97d-49a92144733so486438f8f.0 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=grF6TDrLR1ojywhB7gCtBahZvgVpBf6n0axZx+s4nKVMw77meElyzD5voJZAuzsUmq qVnLMh0R9PNiJBlt7Fbtt8P8wm6kYs3xd7pqHfvmy3fBvmmXfr62tKXlhlX9gvNl9GRc gtO1LERais7Oz5moUWnv+A4fgylLb42NDZdDzRo9PH4AXiu+9HmSvxfDnnWk7GRV07Ee r06HxapUqB11Yf6+D692rxQtnxRZJQK+uKiMIQ4FF0oMWtf5NeU2lfvDGcWp7X/i+w7B HTorLkQZUS7ddPWuKqPkwvs9EWigaXZQglOLDoVZTLJAGclFLI76SUnQztVwA/q17pQW ZAQg== X-Forwarded-Encrypted: i=1; AL+hErGiw5s3C/m20T8wDTLkMrNWSb0sCwx77WEKUhOhhEpr7OpdJinpjcY1oBUPgOzbk/9WtrJGJSa16Q==@vger.kernel.org X-Gm-Message-State: APuU4Z8Z/JJzaPEr4ZGTRZi0M70ME7v8qmqBIR2z8lLiJaAyRybHLvaq GSqtRCn3OFEfJlNKwzMGH5XMcUkb61ZTGenUB6F0xaYaCMcN15EKkqfkM8ZT4/eMzmE= X-Gm-Gg: AZFdTZfpPJMMX/459tlrhGCSGXp7+4mg8bqdMCPhI71xEvFp8rR+MnfI+Cp0y9srg4C Wbfxyu9LbIDkOVpL7ZnLzue/40rseDn2ZapMh9WhKTOhZsOOfDFZqhSWhwJMJVThyElJuPzxGIx eFJyfd1jH6VAzkyFKaMxnGQZitxwiOAzrAVqsAk9fh8HcPGdot+5D2iISQ9xY//Xm/rdNDjmaf9 QvL3wGBC6auxp8uMuwdux019SJ99TqeZS7mM+2jBYO7uiGn0MSXChVgKSQKqU0Ct652IJGt7+Xa 9VEPz2hJUmW+3ezE6nmnBlsJEqakt8qD5Jk2SWE7tYyMX3YMb3iF1p+N3PJySuG1hla097pyJRV ALYBNbj2EbrwznJgzsmT9FlW+t2UiUIeD4MZjokivwoG16t0KCvzFuaxjWvhdddh33ApwZPAsjD HJB770jY+WlWtpVeTrMAdNkEV6nlqw7Ce2QJV46gyHTmtPzpQsJl24x1apd+8bNVMCbfywjDlu6 0EYd16bvR/i/eyAN3Y5d7lkYPj4hkVky2zkmQFMU37xxTjqubQ4L0nl9tDI6n7Uw7qH7MaSO2Q0 voDZlHv8UeLEZUdJWILRNPRxRzG8ttGBZAkYxuYWxKH4YyqtcT6hJxgb5w== 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: arm-scmi@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