[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250708191816.GA770716-robh@kernel.org>
Date: Tue, 8 Jul 2025 14:18:16 -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 01/10] dt-bindings: memory: mtk-smi: Document
#access-controller-cells
On Mon, Jul 07, 2025 at 12:55:56PM +0200, AngeloGioacchino Del Regno wrote:
> Some of the SMI Common HW provides access control to at least
> the power controller: document the #access-controller-cells
> property and allow specifying it only for MT8183 and MT8365
> as those are the only known SoCs with an SMI acting as access
> controller.
>
> Reviewed-by: NĂcolas F. R. A. Prado <nfraprado@...labora.com>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
> ---
> .../memory-controllers/mediatek,smi-common.yaml | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
> index 0762e0ff66ef..74b355a08493 100644
> --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
> +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
> @@ -74,6 +74,9 @@ properties:
> minItems: 2
> maxItems: 4
>
> + '#access-controller-cells':
> + const: 0
Kind of odd for an access controller controlling only 1 device. You
said 'at least', so maybe this should be 1?
> +
> mediatek,smi:
> $ref: /schemas/types.yaml#/definitions/phandle
> description: a phandle to the smi-common node above. Only for sub-common.
> @@ -168,6 +171,19 @@ allOf:
> - const: apb
> - const: smi
>
> + - if: # for SMI providing access control
> + properties:
> + compatible:
> + enum:
> + - mediatek,mt8183-smi-common
> + - mediatek,mt8365-smi-common
> + then:
> + properties:
> + '#access-controller-cells': true
> + else:
> + properties:
> + '#access-controller-cells': false
> +
> additionalProperties: false
>
> examples:
> --
> 2.49.0
>
Powered by blists - more mailing lists