From: Rob Herring <robh@kernel.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: linux-mediatek@lists.infradead.org, krzk+dt@kernel.org,
conor+dt@kernel.org, matthias.bgg@gmail.com,
ulf.hansson@linaro.org, y.oudjana@protonmail.com,
fshao@chromium.org, wenst@chromium.org, lihongbo22@huawei.com,
mandyjh.liu@mediatek.com, mbrugger@suse.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org,
kernel@collabora.com
Subject: Re: [PATCH v1 01/13] dt-bindings: power: mediatek: Document mediatek,bus-protection
Date: Fri, 27 Jun 2025 15:15:43 -0500 [thread overview]
Message-ID: <20250627201543.GA4171766-robh@kernel.org> (raw)
In-Reply-To: <20250623120154.109429-2-angelogioacchino.delregno@collabora.com>
On Mon, Jun 23, 2025 at 02:01:42PM +0200, AngeloGioacchino Del Regno wrote:
> Add a new mediatek,bus-protection property 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.
Protection like access controls? We have the access-controller binding
for that.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> .../power/mediatek,power-controller.yaml | 40 +++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> index 9c7cc632abee..2530c873bb3c 100644
> --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> @@ -44,6 +44,18 @@ properties:
> '#size-cells':
> const: 0
>
> + mediatek,bus-protection:
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + 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
> +
> patternProperties:
> "^power-domain@[0-9a-f]+$":
> $ref: "#/$defs/power-domain-node"
> @@ -123,14 +135,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 +153,31 @@ $defs:
> required:
> - compatible
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt8183-power-controller
> + then:
> + properties:
> + mediatek,bus-protection:
> + minItems: 2
> + maxItems: 2
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt8365-power-controller
> + then:
> + properties:
> + mediatek,bus-protection:
> + minItems: 3
> + maxItems: 3
> +
> additionalProperties: false
>
> examples:
> --
> 2.49.0
>
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org,
mbrugger@suse.com, y.oudjana@protonmail.com,
linux-pm@vger.kernel.org, ulf.hansson@linaro.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
lihongbo22@huawei.com, wenst@chromium.org,
matthias.bgg@gmail.com, mandyjh.liu@mediatek.com,
krzk+dt@kernel.org, kernel@collabora.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v1 01/13] dt-bindings: power: mediatek: Document mediatek,bus-protection
Date: Fri, 27 Jun 2025 15:15:43 -0500 [thread overview]
Message-ID: <20250627201543.GA4171766-robh@kernel.org> (raw)
In-Reply-To: <20250623120154.109429-2-angelogioacchino.delregno@collabora.com>
On Mon, Jun 23, 2025 at 02:01:42PM +0200, AngeloGioacchino Del Regno wrote:
> Add a new mediatek,bus-protection property 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.
Protection like access controls? We have the access-controller binding
for that.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> .../power/mediatek,power-controller.yaml | 40 +++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> index 9c7cc632abee..2530c873bb3c 100644
> --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> @@ -44,6 +44,18 @@ properties:
> '#size-cells':
> const: 0
>
> + mediatek,bus-protection:
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + 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
> +
> patternProperties:
> "^power-domain@[0-9a-f]+$":
> $ref: "#/$defs/power-domain-node"
> @@ -123,14 +135,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 +153,31 @@ $defs:
> required:
> - compatible
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt8183-power-controller
> + then:
> + properties:
> + mediatek,bus-protection:
> + minItems: 2
> + maxItems: 2
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt8365-power-controller
> + then:
> + properties:
> + mediatek,bus-protection:
> + minItems: 3
> + maxItems: 3
> +
> additionalProperties: false
>
> examples:
> --
> 2.49.0
>
next prev parent reply other threads:[~2025-06-27 20:26 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-23 12:01 [PATCH v1 00/13] pmdomain: Partial refactor, add MT8196 support AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 01/13] dt-bindings: power: mediatek: Document mediatek,bus-protection AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-27 20:15 ` Rob Herring [this message]
2025-06-27 20:15 ` Rob Herring
2025-06-30 9:36 ` AngeloGioacchino Del Regno
2025-06-30 9:36 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 02/13] pmdomain: mediatek: Refactor bus protection regmaps retrieval AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-27 12:12 ` Fei Shao
2025-06-30 9:32 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 03/13] pmdomain: mediatek: Handle SoCs with inverted SRAM power-down bits AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 04/13] pmdomain: mediatek: Move ctl sequences out of power_on/off functions AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 05/13] pmdomain: mediatek: Add support for modem power sequences AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 06/13] pmdomain: mediatek: Add support for RTFF Hardware in MT8196/MT6991 AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 07/13] pmdomain: mediatek: Add support for Hardware Voter power domains AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 08/13] pmdomain: mediatek: Add support for secure HWCCF infra power on AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 09/13] pmdomain: mediatek: Convert all SoCs to new style regmap retrieval AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 10/13] arm64: dts: mediatek: Convert all SoCs to use mediatek,bus-protection AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 11/13] dt-bindings: power: Add support for MT8196 power controllers AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-30 22:09 ` Rob Herring (Arm)
2025-06-30 22:09 ` Rob Herring (Arm)
2025-06-23 12:01 ` [PATCH v1 12/13] pmdomain: mediatek: Add support for MT8196 SCPSYS power domains AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-23 12:01 ` [PATCH v1 13/13] pmdomain: mediatek: Add support for MT8196 HFRPSYS " AngeloGioacchino Del Regno
2025-06-23 12:01 ` AngeloGioacchino Del Regno
2025-06-24 14:24 ` [PATCH v1 00/13] pmdomain: Partial refactor, add MT8196 support Nícolas F. R. A. Prado
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=20250627201543.GA4171766-robh@kernel.org \
--to=robh@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fshao@chromium.org \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=lihongbo22@huawei.com \
--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=mandyjh.liu@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=mbrugger@suse.com \
--cc=ulf.hansson@linaro.org \
--cc=wenst@chromium.org \
--cc=y.oudjana@protonmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.