[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250702-debonair-lynx-of-serenity-ee7138@krzk-bin>
Date: Wed, 2 Jul 2025 08:50:28 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Cc: robh@...nel.org, conor+dt@...nel.org, matthias.bgg@...il.com,
ulf.hansson@...aro.org, arnd@...db.de, m.wilczynski@...sung.com, nm@...com,
khilman@...libre.com, kabel@...nel.org, quic_hyiwei@...cinc.com, pjp@...oraproject.org,
tudor.ambarus@...aro.org, drew@...7.com, u.kleine-koenig@...libre.com,
gregkh@...uxfoundation.org, devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-mediatek@...ts.infradead.org, laura.nao@...labora.com,
kernel@...labora.com
Subject: Re: [RFC PATCH 2/3] dt-bindings: firmware: Document the MediaTek
Hardware Voter (HWV)
On Tue, Jul 01, 2025 at 05:11:48PM +0200, AngeloGioacchino Del Regno wrote:
> Add documentation for the new MediaTek Hardware Voter, found in
> MediaTek SoCs like the MT8196 Kompanio Ultra for Chromebooks and
> the MT6991 Dimensity 9400 for Smartphones.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
> ---
> .../mediatek,mt6991-hardware-voter.yaml | 70 +++++++++++++++++++
> 1 file changed, 70 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/firmware/mediatek,mt6991-hardware-voter.yaml
>
> diff --git a/Documentation/devicetree/bindings/firmware/mediatek,mt6991-hardware-voter.yaml b/Documentation/devicetree/bindings/firmware/mediatek,mt6991-hardware-voter.yaml
> new file mode 100644
> index 000000000000..173b74c23a91
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/firmware/mediatek,mt6991-hardware-voter.yaml
> @@ -0,0 +1,70 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +# Copyright 2025 Collabora Ltd
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/firmware/mediatek,mt6991-hardware-voter.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MediaTek Hardware Voter (HWV)
> +
> +maintainers:
> + - AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
> +
> +description:
> + The MediaTek Hardware Voter (HWV) is a SoC-internal fixed-function MCU
> + used to collect votes from both the Application Processor and from the
> + various other remote processors present in the SoC, and transparently
> + turn on or off various hardware resources (for example, power domains
> + or system clocks) based on aggregation of votes done in the HWV MCU's
> + internal state machine, therefore guaranteeing synchronization of the
> + hardware resource requests between all components of the SoC and hence
> + avoiding, for example, unclocked or unpowered access to the hardware.
> +
> +properties:
> + $nodename:
> + pattern: "^system-controller@[0-9a-f]+$"
> +
> + compatible:
> + const: mediatek,mt6991-hardware-voter
> +
> + reg:
> + items:
> + - description: Address and size of the Hardware Voter MMIO
> +
No resources here, so this should go to power controller
> + power-controller:
> + $ref: /schemas/power/mediatek,power-controller.yaml
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: true
> +
> +examples:
> + - |
> + scp_hwv: system-controller@...00000 {
> + compatible = "mediatek,mt6991-hardware-voter";
> + reg = <0 0x14500000 0 0x3000>;
> +
> + power-controller {
> + compatible = "mediatek,mt8196-hwv-scp-power-controller";
mt8196 in mt6991 is very confusing.
Anyway, this does not address my comment at all. You again create some
sort of syscon for voting, so no. You are supposed to use generic API
for voting: clocks, power domains, interconnects - whatever is there
applicable or necessary.
Best regards,
Krzysztof
Powered by blists - more mailing lists