mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nikolai Burov <nikolai.burov+review@abscue.de>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	Ulf Hansson <ulfh@kernel.org>,
	Matthias Brugger <mbrugger@suse.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org,
	Nikolai Burov <nikolai.burov@jolla.com>
Subject: Re: [PATCH v2 1/3] dt-bindings: power: Add MediaTek MT6858 power domain controller
Date: Mon, 20 Jul 2026 21:09:46 +0200	[thread overview]
Message-ID: <db76f500-0db5-4c5f-b4cb-60818702787e@abscue.de> (raw)
In-Reply-To: <20260720-vigorous-groovy-cassowary-9912d9@quoll>

On 7/20/26 8:05 AM, Krzysztof Kozlowski wrote:
> On Wed, Jul 15, 2026 at 04:54:05PM +0300, Nikolai Burov wrote:
>> Add a new compatible and document bindings for the power domain
>> controller of the MT6858 SoC.
>>
>> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> 
> To provide review, please open and read the entire file.
> 
>> Signed-off-by: Nikolai Burov <nikolai.burov@jolla.com>
>> ---
>>  .../bindings/power/mediatek,power-controller.yaml  | 21 +++++++++++++++++++-
>>  include/dt-bindings/power/mediatek,mt6858-power.h  | 23 ++++++++++++++++++++++
>>  2 files changed, 43 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
>> index 070c6e5666dc..d03e4a925163 100644
>> --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
>> +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
>> @@ -25,6 +25,7 @@ properties:
>>      enum:
>>        - mediatek,mt6735-power-controller
>>        - mediatek,mt6795-power-controller
>> +      - mediatek,mt6858-power-controller
>>        - mediatek,mt6893-power-controller
>>        - mediatek,mt8167-power-controller
>>        - mediatek,mt8173-power-controller
>> @@ -56,7 +57,7 @@ properties:
>>        faults while enabling or disabling a power domain.
>>        For example, this may hold phandles to INFRACFG and SMI.
>>      minItems: 1
>> -    maxItems: 3
>> +    maxItems: 6
> 
> And the rest? Why does this device have flexible number of access
> controllers?

For mt6858, the "items" list I provided already overrides both minItems 
and maxItems, so it has a fixed number (6) of access controllers.

The top-level constraints are intentionally broad so that the 
SoC-specific constraints below, which all have minItems == maxItems, 
don't contradict them. Those are missing for some SoCs, but isn't that 
an existing weakness in the bindings?

Looking at the driver, apparently those missing SoCs are the ones that 
only need infracfg. That's a single access controller. So they would 
never have 3 or 2 items, only 1. This is not specified in the bindings 
though.

If you mean that it can't stay like this, I could change the bindings to 
add such a constraint for the remaining SoCs, provided that this is 
allowed - theoretically it could break some hypothetical device trees 
with excess items in access-controllers.

Alternatively, I guess one solution would be to add a minItems: 1 and 
maxItems: 3 constraint for the remaining SoCs to keep their bindings 
unaffected, even though that seems wrong from a HW point of view. But 
I'm not sure if that is what you mean.


-- 
Best regards,
Nikolai

  reply	other threads:[~2026-07-20 19:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-15 13:54 [PATCH v2 0/3] pmdomain: mediatek: Add MT6858 support Nikolai Burov via B4 Relay
2026-07-15 13:54 ` [PATCH v2 1/3] dt-bindings: power: Add MediaTek MT6858 power domain controller Nikolai Burov via B4 Relay
2026-07-20  6:05   ` Krzysztof Kozlowski
2026-07-20 19:09     ` Nikolai Burov [this message]
2026-07-20 20:09       ` Krzysztof Kozlowski
2026-07-20 20:09   ` Krzysztof Kozlowski
2026-07-15 13:54 ` [PATCH v2 2/3] pmdomain: mediatek: Add support for secure modem power domain control Nikolai Burov via B4 Relay
2026-07-15 13:54 ` [PATCH v2 3/3] pmdomain: mediatek: Add support for MT6858 SoC Nikolai Burov via B4 Relay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=db76f500-0db5-4c5f-b4cb-60818702787e@abscue.de \
    --to=nikolai.burov+review@abscue.de \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mbrugger@suse.com \
    --cc=nikolai.burov@jolla.com \
    --cc=robh@kernel.org \
    --cc=ulfh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®