From: Krzysztof Kozlowski <krzk@kernel.org>
To: "irving.ch.lin" <irving-ch.lin@mediatek.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, 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 <ulf.hansson@linaro.org>,
Richard Cochran <richardcochran@gmail.com>
Cc: Qiqi Wang <qiqi.wang@mediatek.com>,
linux-clk@vger.kernel.org, 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,
netdev@vger.kernel.org,
Project_Global_Chrome_Upstream_Group@mediatek.com,
sirius.wang@mediatek.com, vince-wl.liu@mediatek.com,
jh.hsu@mediatek.com
Subject: Re: [PATCH 2/6] dt-bindings: power: mediatek: Add new MT8189 power
Date: Mon, 18 Aug 2025 16:45:44 +0200 [thread overview]
Message-ID: <fa24dba2-8569-4564-83ef-08c5f8734e61@kernel.org> (raw)
In-Reply-To: <20250818115754.1067154-3-irving-ch.lin@mediatek.com>
On 18/08/2025 13:57, irving.ch.lin wrote:
> From: Irving-ch Lin <irving-ch.lin@mediatek.com>
>
> Add the new binding documentation for power controller
> on MediaTek MT8189.
>
> Signed-off-by: Irving-ch Lin <irving-ch.lin@mediatek.com>
> ---
> .../mediatek,mt8189-power-controller.yaml | 94 +++++++++++++++++++
> 1 file changed, 94 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/power/mediatek,mt8189-power-controller.yaml
>
> diff --git a/Documentation/devicetree/bindings/power/mediatek,mt8189-power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,mt8189-power-controller.yaml
> new file mode 100644
> index 000000000000..1bf8f94858c8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/mediatek,mt8189-power-controller.yaml
> @@ -0,0 +1,94 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/power/mediatek,mt8189-power-controller.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MediaTek Power Domains Controller for MT8189
> +
> +maintainers:
> + - Qiqi Wang <qiqi.wang@mediatek.com>
> +
> +description: |
> + MediaTek processors include support for multiple power domains which can be
> + powered up/down by software based on different application scenes to save power.
> +
> + IP cores belonging to a power domain should contain a 'power-domains'
> + property that is a phandle for SCPSYS node representing the domain.
> +
> +properties:
> + $nodename:
> + pattern: '^power-controller(@[0-9a-f]+)?$'
Drop. Reg is not optional.
> +
> + compatible:
> + enum:
> + - mediatek,mt8189-scpsys
> +
reg goes here.
> + '#power-domain-cells':
> + const: 1
> +
> + reg:
> + description: physical base address and size of the power-controller's register area.
No. Don't use AI tools... Look how this is written based on other bindings.
> +
> + infra-infracfg-ao-reg-bus:
Follow established practice... You do not get common properties.
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: phandle to the device containing the infracfg register range.
Also do not say what is obvious from property name, but explain the purpose.
> +
> + emicfg-ao-mem:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: phandle to the device containing the emicfg register range.
> +
> + vlpcfg-reg-bus:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: phandle to the device containing the vlpcfg (very low power config) register range.
> +
> + clocks:
> + description: |
> + A number of phandles to clocks that need to be enabled during domain
> + power-up sequencing.
> +
> + clock-names:
> + description: |
> + List of names of clocks, in order to match the power-up sequencing
> + for each power domain we need to group the clocks by name. BASIC
> + clocks need to be enabled before enabling the corresponding power
> + domain, and should not have a '-' in their name (i.e mm, mfg, venc).
> + SUSBYS clocks need to be enabled before releasing the bus protection,
> + and should contain a '-' in their name (i.e mm-0, isp-0, cam-0).
> +
> + In order to follow properly the power-up sequencing, the clocks must
> + be specified by order, adding first the BASIC clocks followed by the
> + SUSBSYS clocks.
> +
> + domain-supply:
> + description: domain regulator supply.
> +
> +required:
> + - compatible
> + - reg
Incomplete. Devices cannot work without power and many other things.
Sorry, but this binding is very poor and I feel like you did not put
enough of effort to write correct one. You are not independent
contributor, but do it as part of Mediatek, so I do not understand why
in Mediatek you cannot do basic in-house review.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-08-18 14:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-18 11:57 [PATCH 0/6] Add support for MT8189 clock/power controller irving.ch.lin
2025-08-18 11:57 ` [PATCH 1/6] dt-bindings: clock: mediatek: Add new MT8189 clock irving.ch.lin
2025-08-18 14:36 ` Rob Herring (Arm)
2025-08-18 14:42 ` Krzysztof Kozlowski
2025-08-18 11:57 ` [PATCH 2/6] dt-bindings: power: mediatek: Add new MT8189 power irving.ch.lin
2025-08-18 14:37 ` Rob Herring (Arm)
2025-08-18 14:45 ` Krzysztof Kozlowski [this message]
2025-08-18 11:57 ` [PATCH 3/6] dt-bindings: clock: mediatek: Add MT8189 clock definitions irving.ch.lin
2025-08-18 14:46 ` Krzysztof Kozlowski
2025-08-18 14:47 ` Krzysztof Kozlowski
2025-08-18 11:57 ` [PATCH 4/6] dt-bindings: power: mediatek: Add MT8189 power domain definitions irving.ch.lin
2025-08-18 14:46 ` Krzysztof Kozlowski
2025-08-18 11:57 ` [PATCH 5/6] clk: mediatek: Add clock drivers for MT8189 SoC irving.ch.lin
2025-08-18 11:57 ` [PATCH 6/6] pmdomain: mediatek: Add power domain driver " irving.ch.lin
2025-08-18 23:57 ` kernel test robot
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=fa24dba2-8569-4564-83ef-08c5f8734e61@kernel.org \
--to=krzk@kernel.org \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=irving-ch.lin@mediatek.com \
--cc=jh.hsu@mediatek.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.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=mturquette@baylibre.com \
--cc=netdev@vger.kernel.org \
--cc=qiqi.wang@mediatek.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=sirius.wang@mediatek.com \
--cc=ulf.hansson@linaro.org \
--cc=vince-wl.liu@mediatek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).