linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
	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 04/38] ASoC: dt-bindings: mt8192-afe-pcm: Fix clocks and clock-names
Date: Mon, 4 Aug 2025 11:08:11 +0200	[thread overview]
Message-ID: <fe135942-3040-4858-b2e4-a8e4507b89e9@collabora.com> (raw)
In-Reply-To: <b7c9f6b8-4f29-4e38-9c93-e22cfed7229d@kernel.org>

Il 24/07/25 11:12, Krzysztof Kozlowski ha scritto:
> On 24/07/2025 10:38, AngeloGioacchino Del Regno wrote:
>>   
>>     clock-names:
>>       items:
>>         - const: aud_afe_clk
>>         - const: aud_dac_clk
>>         - const: aud_dac_predis_clk
>> +      - const: aud_adc_clk
>> +      - const: aud_adda6_adc_clk
>> +      - const: aud_apll22m_clk
>> +      - const: aud_apll24m_clk
>> +      - const: aud_apll1_tuner_clk
>> +      - const: aud_apll2_tuner_clk
>> +      - const: aud_tdm_clk
>> +      - const: aud_tml_clk
>> +      - const: aud_nle
>> +      - const: aud_dac_hires_clk
>> +      - const: aud_adc_hires_clk
>> +      - const: aud_adc_hires_tml
>> +      - const: aud_adda6_adc_hires_clk
>> +      - const: aud_3rd_dac_clk
>> +      - const: aud_3rd_dac_predis_clk
>> +      - const: aud_3rd_dac_tml
>> +      - const: aud_3rd_dac_hires_clk
>>         - const: aud_infra_clk
>>         - const: aud_infra_26m_clk
> 
> 
> You can only add to the end of lists, not in the middle.
> 

The devicetree follows exactly what I've done here, and if I add to the
end of the list (which was wrong from the beginning), I'd have to reorder
all of the clocks in the devicetree node as well.

I know that I'm not supposed to add those there, but this is not about adding
new clocks, it's about adding ones that were missing in the middle.

> Also, please drop all _clk suffixes and aud/top prefixes. These are
> supposed to be clock inputs, so you name them based on this device. Not
> based on the provider's name.

That breaks everything: the driver uses the _clk suffixes and aud/top prefixes
to get clocks by name - I know that "driver" and "binding" are not two words
that go together in that sense, but *otherwise* we'd need to perform way bigger
changes to get this situation resolved.

Those "way bigger changes" would also add bloat to the kernel as we'd need to
parse clocks with old and new names.

Can we please avoid this on SoCs from years ago, which are only getting maintenance
and no new feat/dev?

Thanks,
Angelo


  reply	other threads:[~2025-08-04  9:08 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 [this message]
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
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=fe135942-3040-4858-b2e4-a8e4507b89e9@collabora.com \
    --to=angelogioacchino.delregno@collabora.com \
    --cc=airlied@gmail.com \
    --cc=andersson@kernel.org \
    --cc=andy.teng@mediatek.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=krzk@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).