From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) (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 3A3FA3B0AFD for ; Fri, 24 Apr 2026 11:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777030106; cv=none; b=mrS+wkZsMP1IQkOezzyPW6IUf2Ax6UKTI9w3D/xCsc5vfzzTpIuDjWtEsQrZZlR041D1uDpWS0AzKVafY6T5UnHcR+RTcwakNDu/7au9VDYtftZo+6gwV6M1pKMCvOqHMLlRuUFRggNW7zEEaCZUj3vQmAwnrZ0KcO9mG4pLlfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777030106; c=relaxed/simple; bh=NrNB0Z4JheJ9/gWbOMPohCnZWZtAqhLPKDbrHylRWo0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TFjVTEMTAee0jKu2E2vu2kUoVqM+frLuG3THz/M67+hqxQzAOTM7LMPcl11kgh34z6XBrwoaMZ/KhxXXymLW67RsJqGrc98Eq23A6y2eC3ORWAct+L714G9RGLujauVdCgz/JzuVMTfXRAAzBmjNjl9a/pzCf7h45hCS7iwtZgM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.222.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-f43.google.com with SMTP id a1e0cc1a2514c-94b07fddecbso4466217241.1 for ; Fri, 24 Apr 2026 04:28:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777030104; x=1777634904; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eTjTO3Vp0zB9Wc0GJptJYSFqlnWOG96HJNT3Sm1YIxY=; b=OJAQAdwVbRaTh0pOYYHXd6Kkt8jDeNc4e1l0FAxEuWlp8hcis1Lm7iPBV2W5JTW4pV dYWDQE7FnSK9XjCqqIQiuz4IlNPT51ECvW3s7psxNurEsGA5yackuKb1ujV8QvFQZZXI fkmPrqb03vt83Cmsy+eOFneh8cUn5lNFynywJO4B8gKxfkwnoLOiCmU+icxRGsfSVZzP uB2VdUkjOp094Z2QdHjn5N+voFVn7mRMONQxYiYuO+5TUhshjk3cGGw/1p/IOGJOlmhE 0PT5vZ5T4sbob+cbE+fWiAdM/dckIRvhRGTWe0RHwvKZ46TBmlkNTlXbsx/YmEL5dMk5 KdSQ== X-Forwarded-Encrypted: i=1; AFNElJ8p9NByfOJOCTy/caM/tPrj84dF5BY0ZEisfbqOip5/wOobQjIm/8r/0xsypiZhJDNnoV3mEDO9ZBT7k0I=@vger.kernel.org X-Gm-Message-State: AOJu0YxqAswyp5h8dGyuSCwUvDqZzJG5fFw6BHII30LHarcsS2wuBNMy +pGbjRUSTOKa7NKIfEiqUoUyi6fHkfIgCGn+Qm6I7OF/aywd2hrzStBfgLYkwzG2EVw= X-Gm-Gg: AeBDietsY79KAX1/wGT0BQQxzYAl+t+giX88Qy9012ABJlW6qgqc5qoBz6yQYuM40RB q/mfo9e7jzUWssBVUkhXbk4dP01iZHhQ75BL1KaY34nrU1avsa13XS6JPtCOuxu0NvmQxH0WhfS DlMA7ckpjaQ5mfJiT1nHr0RcmK9482RgMHUT1avc488R2CEMRNY4uI4NvfKxXeKG/RouzSxX5V+ kNLNiY5UJr2gdW9XpPaXv0yf1tVSqpg3JpSnR+eSUG8i1iMVfCRNud96+dbq3rrSMze1HjE9hJN fbMv/+XU1YTeevC30Y9wiP2/WeFBazuy2RCAECMHLvp8eY8m7wHbSv0hlh8CvJt+imHTJVbR4+4 ruWEdG4oeWLLjeWFx4QSDqlV7QStROpIPm+tk0xXxN1z7ucviAtArk8m4lg4qPu48zSmq+TT8mW zWLnYssPVnLI681B/5Sj9Dqnb7CHCd1kX61vSd0agEdj9I73EbBzK2cLsdZzWu2Udt1HWHrB0= X-Received: by 2002:a05:6102:4a82:b0:611:82b:a599 with SMTP id ada2fe7eead31-616f6efc14bmr16009411137.21.1777030104095; Fri, 24 Apr 2026 04:28:24 -0700 (PDT) Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com. [209.85.222.46]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-6213c1eea74sm2070542137.6.2026.04.24.04.28.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Apr 2026 04:28:22 -0700 (PDT) Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-94aaa5d3bfcso4465633241.3 for ; Fri, 24 Apr 2026 04:28:20 -0700 (PDT) X-Forwarded-Encrypted: i=1; AFNElJ/VCx1nLU26hsBOKO+nZJ6Z54PUh5QH8qs3Bw7QrUaG6WFbRyh0zfLchwyFSelydRA+/s2b9wWgO69OSDw=@vger.kernel.org X-Received: by 2002:a05:6102:292a:b0:60a:cd0e:5cee with SMTP id ada2fe7eead31-616f4f84fdamr16386481137.12.1777030099174; Fri, 24 Apr 2026 04:28:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <7hcxzqr4qi.fsf@baylibre.com> In-Reply-To: <7hcxzqr4qi.fsf@baylibre.com> From: Geert Uytterhoeven Date: Fri, 24 Apr 2026 13:28:06 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AQROBzBE70P7irgYnQUYx63AIUadZqGfMGlPrac0wi4EECHihh00jV8ht_DYoMI Message-ID: Subject: Re: [PATCH/RFC 00/14] R-Car X5H Ironhide SCMI CPG/MDLC remapping To: Kevin Hilman 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 Content-Type: text/plain; charset="UTF-8" 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? 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? So far I have used only a few devices on R-Car X5H, and e.g. the serial ports are in the always-on domain. I did experiment with a dummy UFS driver, as UFS is inside a real power domain, and that seemed to work fine. [1] https://lore.kernel.org/arm-scmi/7hecy3h7ky.fsf@baylibre.com/ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds