[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250721195821.GA1163453-robh@kernel.org>
Date: Mon, 21 Jul 2025 14:58:21 -0500
From: Rob Herring <robh@...nel.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Cc: linux-mediatek@...ts.infradead.org, krzk+dt@...nel.org,
conor+dt@...nel.org, matthias.bgg@...il.com, ulf.hansson@...aro.org,
y.oudjana@...tonmail.com, fshao@...omium.org, wenst@...omium.org,
lihongbo22@...wei.com, mandyjh.liu@...iatek.com, mbrugger@...e.com,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-pm@...r.kernel.org,
kernel@...labora.com,
NĂcolas F. R. A. Prado <nfraprado@...labora.com>
Subject: Re: [PATCH v2 03/10] dt-bindings: power: mediatek: Document
access-controllers property
On Mon, Jul 07, 2025 at 12:55:58PM +0200, AngeloGioacchino Del Regno wrote:
> Allow specifying access-controllers in the main power controller
> node and deprecate the old mediatek,infracfg, mediatek,infracfg-nao
> and mediatek,smi properties located in the children.
>
> This is done in order to both simplify the power controller
> nodes and in preparation for adding support for new generation
> SoCs like MT8196/MT6991 and other variants, which will need
> to set protection on new busses.
>
> Reviewed-by: NĂcolas F. R. A. Prado <nfraprado@...labora.com>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
> ---
> .../power/mediatek,power-controller.yaml | 39 +++++++++++++++++++
> 1 file changed, 39 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> index 9c7cc632abee..82bfd3899b22 100644
> --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> @@ -44,6 +44,17 @@ properties:
> '#size-cells':
> const: 0
>
> + access-controllers:
> + description:
> + A number of phandles to external blocks to set and clear the required
> + bits to enable or disable bus protection, necessary to avoid any bus
> + faults while enabling or disabling a power domain.
> + For example, this may hold phandles to INFRACFG and SMI.
> + minItems: 1
> + maxItems: 3
> + items:
> + maxItems: 1
Drop 'items' as how many cells is up to the provider.
> +
> patternProperties:
> "^power-domain@[0-9a-f]+$":
> $ref: "#/$defs/power-domain-node"
> @@ -123,14 +134,17 @@ $defs:
> mediatek,infracfg:
> $ref: /schemas/types.yaml#/definitions/phandle
> description: phandle to the device containing the INFRACFG register range.
> + deprecated: true
>
> mediatek,infracfg-nao:
> $ref: /schemas/types.yaml#/definitions/phandle
> description: phandle to the device containing the INFRACFG-NAO register range.
> + deprecated: true
>
> mediatek,smi:
> $ref: /schemas/types.yaml#/definitions/phandle
> description: phandle to the device containing the SMI register range.
> + deprecated: true
>
> required:
> - reg
> @@ -138,6 +152,31 @@ $defs:
> required:
> - compatible
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt8183-power-controller
> + then:
> + properties:
> + access-controllers:
> + minItems: 2
> + maxItems: 2
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt8365-power-controller
> + then:
> + properties:
> + access-controllers:
> + minItems: 3
> + maxItems: 3
> +
> additionalProperties: false
>
> examples:
> --
> 2.49.0
>
Powered by blists - more mailing lists