devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	linux-mediatek@lists.infradead.org, robh@kernel.org
Cc: herbert@gondor.apana.org.au, davem@davemloft.net,
	krzk+dt@kernel.org, conor+dt@kernel.org, chunkuang.hu@kernel.org,
	p.zabel@pengutronix.de, airlied@gmail.com, simona@ffwll.ch,
	maarten.lankhorst@linux.intel.com, mripard@kernel.org,
	tzimmermann@suse.de, jassisinghbrar@gmail.com,
	mchehab@kernel.org, matthias.bgg@gmail.com,
	chunfeng.yun@mediatek.com, vkoul@kernel.org, kishon@kernel.org,
	sean.wang@kernel.org, linus.walleij@linaro.org,
	lgirdwood@gmail.com, broonie@kernel.org, andersson@kernel.org,
	mathieu.poirier@linaro.org, daniel.lezcano@linaro.org,
	tglx@linutronix.de, atenart@kernel.org, jitao.shi@mediatek.com,
	ck.hu@mediatek.com, houlong.wei@mediatek.com,
	kyrie.wu@mediatek.corp-partner.google.com,
	andy.teng@mediatek.com, tinghan.shen@mediatek.com,
	jiaxin.yu@mediatek.com, shane.chien@mediatek.com,
	olivia.wen@mediatek.com, granquet@baylibre.com,
	eugen.hristev@linaro.org, arnd@arndb.de, sam.shih@mediatek.com,
	jieyy.yang@mediatek.com, frank-w@public-files.de,
	mwalle@kernel.org, fparent@baylibre.com,
	linux-crypto@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-media@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-phy@lists.infradead.org, linux-gpio@vger.kernel.org,
	linux-remoteproc@vger.kernel.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH 15/38] dt-bindings: phy: mediatek,hdmi-phy: Fix clock output names for MT8195
Date: Thu, 24 Jul 2025 11:16:43 +0200	[thread overview]
Message-ID: <ee525312-bde1-4724-b32f-83be32c87696@kernel.org> (raw)
In-Reply-To: <20250724083914.61351-16-angelogioacchino.delregno@collabora.com>

On 24/07/2025 10:38, AngeloGioacchino Del Regno wrote:
> For all of the HDMI PHYs compatible with the one found on MT8195
> the output clock has a different datasheet name and specifically
> it is called "hdmi_txpll", differently from the older HDMI PHYs
> which output block is called "hdmitx_dig_cts".
> 
> Add a conditional to allow the new clock output name on all of the
> HDMI PHY IPs that are perfectly compatible with MT8195.
> 
> Fixes: c78fe548b062 ("dt-bindings: phy: mediatek: hdmi-phy: Add mt8195 compatible")
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


Please organize fixes separately from this patchset. You touch here
really too many subsystems and putting fixes in the middle of patchset
is another issue.

> ---
>  .../bindings/phy/mediatek,hdmi-phy.yaml       | 25 ++++++++++++++++---
>  1 file changed, 22 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/phy/mediatek,hdmi-phy.yaml b/Documentation/devicetree/bindings/phy/mediatek,hdmi-phy.yaml
> index f3a8b0b745d1..f1207aea8605 100644
> --- a/Documentation/devicetree/bindings/phy/mediatek,hdmi-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/mediatek,hdmi-phy.yaml
> @@ -26,6 +26,10 @@ properties:
>            - enum:
>                - mediatek,mt7623-hdmi-phy
>            - const: mediatek,mt2701-hdmi-phy
> +      - items:
> +          - enum:
> +              - mediatek,mt8188-hdmi-phy
> +          - const: mediatek,mt8195-hdmi-phy
>        - const: mediatek,mt2701-hdmi-phy
>        - const: mediatek,mt8173-hdmi-phy
>        - const: mediatek,mt8195-hdmi-phy
> @@ -41,9 +45,7 @@ properties:
>      items:
>        - const: pll_ref
>  
> -  clock-output-names:
> -    items:
> -      - const: hdmitx_dig_cts
> +  clock-output-names: true


Instead:
maxItems: 1

>  
>    "#phy-cells":
>      const: 0
> @@ -76,6 +78,23 @@ required:
>    - "#phy-cells"
>    - "#clock-cells"
>  
> +if:
> +  properties:
> +    compatible:
> +      contains:
> +        enum:
> +          - mediatek,mt8195-hdmi-phy
> +then:
> +  properties:
> +    clock-output-names:
> +      items:
> +        - const: hdmi_txpll
> +else:
> +  properties:
> +    clock-output-names:
> +      items:
> +        - const: hdmitx_dig_cts


And drop this if:then:else. Binding should not enforce output clock
naming, because if this is fixed, then you do not need that property at
all. Things which are const are implied by compatible.


Best regards,
Krzysztof

  reply	other threads:[~2025-07-24  9:16 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-24  8:38 [PATCH 00/38] MediaTek devicetree/bindings warnings sanitization AngeloGioacchino Del Regno
2025-07-24  8:38 ` [PATCH 01/38] dt-bindings: display: mediatek: dpi: Allow specifying resets AngeloGioacchino Del Regno
2025-07-24  9:16   ` Chen-Yu Tsai
2025-07-25 20:26     ` Rob Herring
2025-07-24  8:38 ` [PATCH 02/38] dt-bindings: display: mediatek,dp: Allow DisplayPort AUX bus AngeloGioacchino Del Regno
2025-07-24  9:16   ` [PATCH 02/38] dt-bindings: display: mediatek, dp: " Chen-Yu Tsai
2025-07-25 20:27   ` [PATCH 02/38] dt-bindings: display: mediatek,dp: " Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 03/38] dt-bindings: mailbox: mediatek,gce-mailbox: Make clock-names optional AngeloGioacchino Del Regno
2025-07-24  9:49   ` [PATCH 03/38] dt-bindings: mailbox: mediatek, gce-mailbox: " Chen-Yu Tsai
2025-07-25 20:28   ` [PATCH 03/38] dt-bindings: mailbox: mediatek,gce-mailbox: " Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 04/38] ASoC: dt-bindings: mt8192-afe-pcm: Fix clocks and clock-names AngeloGioacchino Del Regno
2025-07-24  9:12   ` Krzysztof Kozlowski
2025-08-04  9:08     ` AngeloGioacchino Del Regno
2025-07-24 11:19   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 05/38] dt-bindings: crypto: inside-secure,safexcel: Mandate only ring IRQs AngeloGioacchino Del Regno
2025-07-24  9:10   ` Krzysztof Kozlowski
2025-07-24  8:38 ` [PATCH 06/38] dt-bindings: timer: mediatek: Add compatible for MT6795 GP Timer AngeloGioacchino Del Regno
2025-07-25 20:28   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 07/38] dt-bindings: pinctrl: mediatek,mt7622-pinctrl: Add missing pwm_ch7_2 AngeloGioacchino Del Regno
2025-07-25 20:29   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 08/38] dt-bindings: pinctrl: mediatek,mt7622-pinctrl: Add missing base reg AngeloGioacchino Del Regno
2025-07-24  9:13   ` Krzysztof Kozlowski
2025-07-24 11:19   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 09/38] dt-bindings: pinctrl: mt6779: Allow common MediaTek pinctrl node names AngeloGioacchino Del Regno
2025-07-24 11:19   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 10/38] dt-bindings: regulator: mediatek,mt6332-regulator: Add missing compatible AngeloGioacchino Del Regno
2025-07-25 20:29   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 11/38] dt-bindings: regulator: mediatek,mt6331: Fix various regulator names AngeloGioacchino Del Regno
2025-07-25 20:30   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 12/38] dt-bindings: regulator: mediatek,mt6331: Add missing compatible AngeloGioacchino Del Regno
2025-07-25 20:30   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 13/38] dt-bindings: remoteproc: mediatek: Remove l1tcm MMIO from MT8188 dual AngeloGioacchino Del Regno
2025-07-24 11:19   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 14/38] dt-bindings: media: mediatek,mt8195-jpeg: Allow range number in node address AngeloGioacchino Del Regno
2025-07-24  9:14   ` Krzysztof Kozlowski
2025-08-04  9:02     ` AngeloGioacchino Del Regno
2025-07-24  8:38 ` [PATCH 15/38] dt-bindings: phy: mediatek,hdmi-phy: Fix clock output names for MT8195 AngeloGioacchino Del Regno
2025-07-24  9:16   ` Krzysztof Kozlowski [this message]
2025-07-24  8:38 ` [PATCH 16/38] arm64: dts: mediatek: mt6331: Fix pmic, regulators, rtc, keys node names AngeloGioacchino Del Regno
2025-07-25 10:55   ` Fei Shao
2025-07-24  8:38 ` [PATCH 17/38] arm64: dts: mediatek: mt6797: Fix pinctrl " AngeloGioacchino Del Regno
2025-07-25 10:56   ` Fei Shao
2025-07-24  8:38 ` [PATCH 18/38] arm64: dts: mediatek: mt6797: Remove bogus id property in i2c nodes AngeloGioacchino Del Regno
2025-07-25 10:53   ` Fei Shao
2025-07-24  8:38 ` [PATCH 19/38] arm64: dts: mediatek: mt6795: Add mediatek,infracfg to iommu node AngeloGioacchino Del Regno
2025-07-25 10:52   ` Fei Shao
2025-07-24  8:38 ` [PATCH 20/38] arm64: dts: mediatek: mt6795-xperia-m5: Fix mmc0 latch-ck value AngeloGioacchino Del Regno
2025-07-24  8:38 ` [PATCH 21/38] arm64: dts: mediatek: mt6795-sony-xperia-m5: Add pinctrl for mmc1/mmc2 AngeloGioacchino Del Regno
2025-07-24  8:38 ` [PATCH 22/38] arm64: dts: mediatek: Fix node name for SYSIRQ controller on all SoCs AngeloGioacchino Del Regno
2025-07-24  9:30   ` Chen-Yu Tsai
2025-07-24  8:38 ` [PATCH 23/38] arm64: dts: mediatek: mt7986a: Fix PCI-Express T-PHY node address AngeloGioacchino Del Regno
2025-07-25 10:43   ` Fei Shao
2025-07-24  8:39 ` [PATCH 24/38] arm64: dts: mediatek: mt7986a-bpi-r3: Fix SFP I2C node names AngeloGioacchino Del Regno
2025-07-25 10:50   ` Fei Shao
2025-07-24  8:39 ` [PATCH 25/38] arm64: dts: mediatek: mt7986a-bpi-r3: Set interrupt-parent to mdio switch AngeloGioacchino Del Regno
2025-07-24  8:39 ` [PATCH 26/38] arm64: dts: mediatek: acelink-ew-7886cax: Remove unnecessary cells in spi-nand AngeloGioacchino Del Regno
2025-07-25 10:41   ` Fei Shao
2025-07-24  8:39 ` [PATCH 27/38] arm64: dts: mediatek: mt7988a: Fix PCI-Express T-PHY node address AngeloGioacchino Del Regno
2025-07-24 10:35   ` Frank Wunderlich
2025-07-24  8:39 ` [PATCH 28/38] arm64: dts: mediatek: mt8173: Fix pinctrl node names and cleanup AngeloGioacchino Del Regno
2025-07-24  9:48   ` Chen-Yu Tsai
2025-07-24  8:39 ` [PATCH 29/38] arm64: dts: mediatek: mt8183: Fix pinctrl node names AngeloGioacchino Del Regno
2025-07-25 10:37   ` Fei Shao
2025-07-24  8:39 ` [PATCH 30/38] arm64: dts: mediatek: pumpkin-common: " AngeloGioacchino Del Regno
2025-07-25 10:17   ` Fei Shao
2025-07-24  8:39 ` [PATCH 31/38] arm64: dts: mediatek: mt8183-pumpkin: Add power supply for CCI AngeloGioacchino Del Regno
2025-07-24  8:39 ` [PATCH 32/38] arm64: dts: mediatek: mt8183: Migrate to display controller OF graph AngeloGioacchino Del Regno
2025-07-24  8:39 ` [PATCH 33/38] arm64: dts: mediatek: mt8183-kukui: Move DSI panel node to machine dtsis AngeloGioacchino Del Regno
2025-07-24  9:34   ` Chen-Yu Tsai
2025-07-24  8:39 ` [PATCH 34/38] arm64: dts: mediatek: mt8195: Fix ranges for jpeg enc/decoder nodes AngeloGioacchino Del Regno
2025-07-25 10:33   ` Fei Shao
2025-07-24  8:39 ` [PATCH 35/38] arm64: dts: mediatek: mt8195-cherry: Move VBAT-supply to Tomato R1/R2 AngeloGioacchino Del Regno
2025-07-24 10:02   ` Chen-Yu Tsai
2025-07-24  8:39 ` [PATCH 36/38] arm64: dts: mediatek: mt8195-cherry: Add missing regulators to rt5682 AngeloGioacchino Del Regno
2025-07-24  9:58   ` Chen-Yu Tsai
2025-07-24  8:39 ` [PATCH 37/38] arm64: dts: mediatek: mt8395-kontron-i1200: Fix MT6360 regulator nodes AngeloGioacchino Del Regno
2025-07-25 10:39   ` Fei Shao
2025-07-24  8:39 ` [PATCH 38/38] arm64: dts: mediatek: mt8516-pumpkin: Fix machine compatible AngeloGioacchino Del Regno
2025-07-25 10:38   ` Fei Shao
2025-07-25  3:19 ` [PATCH 00/38] MediaTek devicetree/bindings warnings sanitization Rob Herring (Arm)
2025-07-25 13:52 ` Rob Herring
2025-07-28 10:55   ` AngeloGioacchino Del Regno

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=ee525312-bde1-4724-b32f-83be32c87696@kernel.org \
    --to=krzk@kernel.org \
    --cc=airlied@gmail.com \
    --cc=andersson@kernel.org \
    --cc=andy.teng@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=arnd@arndb.de \
    --cc=atenart@kernel.org \
    --cc=broonie@kernel.org \
    --cc=chunfeng.yun@mediatek.com \
    --cc=chunkuang.hu@kernel.org \
    --cc=ck.hu@mediatek.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=eugen.hristev@linaro.org \
    --cc=fparent@baylibre.com \
    --cc=frank-w@public-files.de \
    --cc=granquet@baylibre.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=houlong.wei@mediatek.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=jiaxin.yu@mediatek.com \
    --cc=jieyy.yang@mediatek.com \
    --cc=jitao.shi@mediatek.com \
    --cc=kishon@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kyrie.wu@mediatek.corp-partner.google.com \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mathieu.poirier@linaro.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=mripard@kernel.org \
    --cc=mwalle@kernel.org \
    --cc=olivia.wen@mediatek.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=sam.shih@mediatek.com \
    --cc=sean.wang@kernel.org \
    --cc=shane.chien@mediatek.com \
    --cc=simona@ffwll.ch \
    --cc=tglx@linutronix.de \
    --cc=tinghan.shen@mediatek.com \
    --cc=tzimmermann@suse.de \
    --cc=vkoul@kernel.org \
    /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).