From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 70BEE282F3F for ; Tue, 28 Apr 2026 00:52:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777337575; cv=none; b=q9Whh8QZs81GaT7r61VPQhUb6HZBt187Pspr3lEWhTMaBm4Lq1829oOSIYUe7MEsAq8aNSYVjFuIhA3hiIWFd2lqMTO2ma+QuHWKHek5UI6/86SeIxUQGuoiIRWrYZpRY9OKwlO0lEOVXvtmum6n+L3vRYusGh1+TO4qDeshdEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777337575; c=relaxed/simple; bh=8Uem3oqRD7Kri2DSyAgANGL+qzMirF3VGc9HlXIQYOs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=LALFqhnwe/zcTFGynD2V5yU//e87bOrKqe/Qw5culGWvxGyuHEg1qHA1M2XUvBXifhG8pyN2R7GoFWZLj52m4tJxECPQa0gzuiNgylHe/Ri3a64oneuXpS3W5HFAMO/NiY5mOtZfUit/qdlByAMkUoW1vgWxVjkItrTogpvD3FA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b=UmLvCjgn; arc=none smtp.client-ip=209.85.210.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (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.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="UmLvCjgn" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-82f69a286dbso8153943b3a.2 for ; Mon, 27 Apr 2026 17:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1777337573; x=1777942373; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=t3FnaIBp0espZORVL/rfnjBPdcVtbw4VckmuHvIfsjM=; b=UmLvCjgncUFnkOkej4+wGBHe0fTbbx54IoP/u0gXvql2aNFmqqno+yqwl+Ccx54FTN gkS26kFBc2qdrgwLMIhHZo9xqUwAylAU2efyVow9NXrRClAnEBtKOtj/Mp0qDcDB/4pb j2zd9BfXxrR086oPDlyxqLHwu+R15O3ovW4uYngGN7f5NWjRPVzDTRD+39B9JVFrd16p DobTC1E1tD9X+FTQaV5U2PD9+FJcFOxI/fIqxRCnGTh9g/geoS2QDELG7DPvgPquAd8u YrsmS/8TVtKpJgNA9HeCptCErNwn5dpt/rcBqDGk/iUM1o8rRq4SZxubM1IjxyIxGeAj +hGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777337573; x=1777942373; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=t3FnaIBp0espZORVL/rfnjBPdcVtbw4VckmuHvIfsjM=; b=jnrNv7oCvVLF3J2nBqdfif0+Q9rneLHsOwArVE4RMAZ624lTnuzA688SkJ7fJze+SD o2Dt+STb38UC9diGIEh4GGKchszrXwvtKwwY/PgFvlRSzhS30s8qHUI2u9A/hj86+CuV znz9s9DgVxrHyu+jY2Nng/ZijsnIVGuN+qzn1Rng8wWM2/PQRexPbkOs7mi+apqKMfMe Z5kik+MO2garA3h40h+BtVTGTaqKHxktQlhH2smtzuu2YXai2k4AumjFiF6pzmihiZVk 7pBWlGg6+CQFSymGpDYeIGezULX+J3oi10dHDov+CT1HbHu59tfKtrwWRtzYb8JtNARk bhDg== X-Forwarded-Encrypted: i=1; AFNElJ9oXTfvtuw2d0+ykI9odZdubWHPSxAWwdhtdjU06+DA1YK8nmFb+IR0+M4hnL56bg5X5wvmLFKzsQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yyb/kgNPiZBLq8MKEXk0PvJRc0Rn3sav1cgLKzjNyTWwZPGynqK udH3dK66C5J1yJMdXLvc+pUgbembaBqliCeP6W15zaYqixvIELCpicH2FumwDfy7edM= X-Gm-Gg: AeBDieuFf2odDgv4N5PROD/wQ98HtJrtpqSkZjtKFuzR7Sy2keSs6ZzKURUVxcsWRuw wu5u9ywbDGJ5GfvIrgpF5fBRogOBJFXSm2wMkmqPCRQUpgzmCvsCyCkfXJDR0GEEQVqhO2SU0Wo TaUtsUX0qGIcyNI3UT3WoBxgfJmI/rsNtkwlFwSBHGvhcY4f7ciizUnG4SVHzISGjnMSO3uhRDp NS0vdS8xky9rfK5aC0SUX4viZGHh8Oj/TP/5XyNBIRG+TibM2350HEzxpbPFNiITOnV0qguHZjh EOQjBqdSIVrJGm04cMyrU90oHH2HlRSEiPMUu23y8WDNQBiBNYrWeaUS1QYgX2IK1h9y3ML5YGf qV7c3F+lddspicXelQ6OpKsy5ZZuGh1R4yVapi7n8Tg6tEY/wJK+y13bCIKeALMk8xbJn/TD7t3 TkB7KifGvt+L9L+Q79kZAcQgcadYrg2Q== X-Received: by 2002:a05:6a21:339a:b0:3a2:ecb8:56f0 with SMTP id adf61e73a8af0-3a39c214537mr1036677637.33.1777337572752; Mon, 27 Apr 2026 17:52:52 -0700 (PDT) Received: from localhost ([97.126.187.42]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-834dae1ff95sm798672b3a.17.2026.04.27.17.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2026 17:52:52 -0700 (PDT) From: Kevin Hilman To: Geert Uytterhoeven Cc: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Saravana Kannan , Michael Turquette , Stephen Boyd , Philipp Zabel , Ulf Hansson , "Rafael J . Wysocki" , Florian Fainelli , Wolfram Sang , Marek Vasut , Kuninori Morimoto , arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH/RFC 00/14] R-Car X5H Ironhide SCMI CPG/MDLC remapping In-Reply-To: References: <7hcxzqr4qi.fsf@baylibre.com> Date: Mon, 27 Apr 2026 17:52:51 -0700 Message-ID: <7hcxzjewik.fsf@baylibre.com> Precedence: bulk X-Mailing-List: arm-scmi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Geert Uytterhoeven writes: > Hi Kevin, > > On Thu, 23 Apr 2026 at 00:48, Kevin Hilman wrote: >> Geert Uytterhoeven writes: >> > TL;DR: >> > >> > Describe hardware in DT, and perform the mapping to SCMI in Linux. >> > >> > The Renesas R-Car X5H-based Ironhide board is the first Renesas >> > SoC/board combination that implements the ARM System Control and >> > Management Interface (SCMI). >> > >> > This means Linux can no longer perform various system operations (e.g. >> > clock, power domain, and reset control) by accessing the hardware >> > directly. Instead, these operations are abstracted according to various >> > SCMI sub-protocols, and Linux has to send messages to an SCMI-compliant >> > firmware running on a System Control Processor (SCP). >> > More specifically, the R-Car X5H SCP FW SCMI controls access to: >> > 1. Core clocks and module clocks, >> > 2. Module resets, >> > 3. Power domains, >> >> I'm very curious how power domain hierarchy is described on this SoC, >> because one more issue to add to your list is that hierarchy cannot be >> described for power domains in SCMI. > > So far I had no need for such a description. AFAIK, this is handled > inside the SCMI firmware, which does know the hierarchy. Hence the > firmware can power up a domain when any of its children is powered up, > and power it down when the last of its children is powered down? Yes, but this firwmare behavior is subject to the normal list of limitations/quirks/lack-of-bugs/etc. that we usually run into with firmware. So if there's ever a need for linux to understand hierarchy for those reasons, you may find yourself stuck. :) > I think the clue lies in having a PSCI top-level domain, cfr. what > you wrote in [1]: > > "But... how do I describe the relationship of this hierarchy? In > particular, when the SCMI-controlled PDs are actually subdomains of a > top-level, non-SCMI PD." > > Or am I missing something? Indeed, the tricky part is when the domains may have CPUs/clusters in them, and in my case with the TI SoCs, the top-level domain with CPU clusters is PSCI controlled. It wouldn't suprise me that other SoCs have similar features where some domains are children or siblings of domains with CPUs in them. This kind of dependency is pretty complex to manage in just SCP firmware, because it involves TF-A/PSCI as well, so it's a likely spot for firmware "quirks". Kevin