* Re: [PATCH 7/7] ASoC: dt-bindings: ES8389: Add members about HPF and clock
[not found] ` <20260609030623.17404-8-zhangyi@everest-semi.com>
@ 2026-06-09 7:33 ` Krzysztof Kozlowski
2026-06-10 9:58 ` Zhang Yi
0 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2026-06-09 7:33 UTC (permalink / raw)
To: Zhang Yi; +Cc: alsa-devel, broonie, devicetree, tiwai, robh, krzk+dt, conor+dt
On Tue, Jun 09, 2026 at 11:06:23AM +0800, Zhang Yi wrote:
> Add members related to HPF and mclk_source
Please organize the patch documenting the ABI (DT bindings)
before the patch using that ABI.
See also: https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst#L46
>
> Signed-off-by: Zhang Yi <zhangyi@everest-semi.com>
> ---
> .../bindings/sound/everest,es8389.yaml | 23 +++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/sound/everest,es8389.yaml b/Documentation/devicetree/bindings/sound/everest,es8389.yaml
> index 75ce0bc48..be92014c0 100644
> --- a/Documentation/devicetree/bindings/sound/everest,es8389.yaml
> +++ b/Documentation/devicetree/bindings/sound/everest,es8389.yaml
> @@ -38,6 +38,27 @@ properties:
> description:
> Interface power supply.
>
> + everest,mclk-from-sclk:
> + $ref: /schemas/types.yaml#/definitions/flag
> + description:
> + Indicates that SCLK is used as the internal clock.
And what happens with mclk in such case? Is it still wired?
> +
> + everest,hpfl:
> + $ref: /schemas/types.yaml#/definitions/uint8
> + description:
> + the HPF value of ADCL.
Is HPF value in dB? If so, use proper unit suffix and proper units.
> + minimum: 0x00
> + maximum: 0x0f
> + default: 0x0a
> +
> + everest,hpfr:
> + $ref: /schemas/types.yaml#/definitions/uint8
> + description:
> + the HPF value of ADCR.
> + minimum: 0x00
> + maximum: 0x0f
> + default: 0x0a
> +
> required:
> - compatible
> - reg
> @@ -58,5 +79,7 @@ examples:
> #sound-dai-cells = <0>;
> vddd-supply = <&vdd3v3>;
> vdda-supply = <&vdd3v3>;
> + everest,hpfl = [0a];
<0xa>? What did you want to say here?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread* RE: [PATCH 7/7] ASoC: dt-bindings: ES8389: Add members about HPF and clock
2026-06-09 7:33 ` [PATCH 7/7] ASoC: dt-bindings: ES8389: Add members about HPF and clock Krzysztof Kozlowski
@ 2026-06-10 9:58 ` Zhang Yi
2026-06-13 7:37 ` Krzysztof Kozlowski
0 siblings, 1 reply; 11+ messages in thread
From: Zhang Yi @ 2026-06-10 9:58 UTC (permalink / raw)
To: krzk
Cc: alsa-devel, broonie, conor+dt, devicetree, krzk+dt, robh, tiwai,
zhangyi
> Please organize the patch documenting the ABI (DT bindings)
> before the patch using that ABI.
> See also: https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst#L46
Thanks for the reminder
> > + everest,mclk-from-sclk:
> > + $ref: /schemas/types.yaml#/definitions/flag
> > + description:
> > + Indicates that SCLK is used as the internal clock.
>
> And what happens with mclk in such case? Is it still wired?
Yes, setting mclk-from-sclk does not affect the MCLK connection.
> > +
> > + everest,hpfl:
> > + $ref: /schemas/types.yaml#/definitions/uint8
> > + description:
> > + the HPF value of ADCL.
>
> Is HPF value in dB? If so, use proper unit suffix and proper units.
No, the values here correspond to the values in the registers.
The value is not in dB
> > vddd-supply = <&vdd3v3>;
> > vdda-supply = <&vdd3v3>;
> > + everest,hpfl = [0a];
>
> <0xa>? What did you want to say here?
I just wanted to give an example to show how to set the values of everest,hpfl to 0x0a.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/7] ASoC: dt-bindings: ES8389: Add members about HPF and clock
2026-06-10 9:58 ` Zhang Yi
@ 2026-06-13 7:37 ` Krzysztof Kozlowski
[not found] ` <20260615060744.18775-1-zhangyi@everest-semi.com>
0 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2026-06-13 7:37 UTC (permalink / raw)
To: Zhang Yi; +Cc: alsa-devel, broonie, conor+dt, devicetree, krzk+dt, robh, tiwai
On 10/06/2026 11:58, Zhang Yi wrote:
>> Please organize the patch documenting the ABI (DT bindings)
>> before the patch using that ABI.
>> See also: https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst#L46
>
> Thanks for the reminder
>
>>> + everest,mclk-from-sclk:
>>> + $ref: /schemas/types.yaml#/definitions/flag
>>> + description:
>>> + Indicates that SCLK is used as the internal clock.
>>
>> And what happens with mclk in such case? Is it still wired?
>
> Yes, setting mclk-from-sclk does not affect the MCLK connection.
I am asking about wiring of the device. If MCLK is used from SCLK, but
SCLK is used as the internal clock, then how can you still have MCLK
connected?
>
>>> +
>>> + everest,hpfl:
>>> + $ref: /schemas/types.yaml#/definitions/uint8
>>> + description:
>>> + the HPF value of ADCL.
>>
>> Is HPF value in dB? If so, use proper unit suffix and proper units.
>
> No, the values here correspond to the values in the registers.
> The value is not in dB
What are the meanings of the register values?
>
>>> vddd-supply = <&vdd3v3>;
>>> vdda-supply = <&vdd3v3>;
>>> + everest,hpfl = [0a];
>>
>> <0xa>? What did you want to say here?
>
> I just wanted to give an example to show how to set the values of everest,hpfl to 0x0a.
So use syntax I asked.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <20260609030623.17404-3-zhangyi@everest-semi.com>]
* Re: [PATCH 2/7] ASoC: codecs: ES8389: Fix the issue about mclk_src
[not found] ` <20260609030623.17404-3-zhangyi@everest-semi.com>
@ 2026-06-09 7:34 ` Krzysztof Kozlowski
2026-06-10 10:06 ` Zhang Yi
0 siblings, 1 reply; 11+ messages in thread
From: Krzysztof Kozlowski @ 2026-06-09 7:34 UTC (permalink / raw)
To: Zhang Yi; +Cc: alsa-devel, broonie, devicetree, tiwai, robh, krzk+dt, conor+dt
On Tue, Jun 09, 2026 at 11:06:18AM +0800, Zhang Yi wrote:
> Fix the issue with incorrect modifications to mclk_src
What issue? Your commit msgs are really poor - explain nothing. You just
duplicated subject... and anything can be a fix.
>
> Signed-off-by: Zhang Yi <zhangyi@everest-semi.com>
> ---
> sound/soc/codecs/es8389.c | 12 ++++--------
> sound/soc/codecs/es8389.h | 5 ++---
> 2 files changed, 6 insertions(+), 11 deletions(-)
>
> diff --git a/sound/soc/codecs/es8389.c b/sound/soc/codecs/es8389.c
> index 9c8164916..7a9d5d42a 100644
> --- a/sound/soc/codecs/es8389.c
> +++ b/sound/soc/codecs/es8389.c
> @@ -36,8 +36,8 @@ struct es8389_private {
> unsigned int sysclk;
> int mastermode;
>
> - u8 mclk_src;
> u8 vddd;
> + bool mclk_src;
> int version;
> enum snd_soc_bias_level bias_level;
> };
> @@ -607,9 +607,9 @@ static int es8389_pcm_hw_params(struct snd_pcm_substream *substream,
> regmap_update_bits(es8389->regmap, ES8389_ADC_FORMAT_MUTE, ES8389_DATA_LEN_MASK, state);
> regmap_update_bits(es8389->regmap, ES8389_DAC_FORMAT_MUTE, ES8389_DATA_LEN_MASK, state);
>
> - if (es8389->mclk_src == ES8389_SCLK_PIN) {
> + if (es8389->mclk_src) {
> regmap_update_bits(es8389->regmap, ES8389_MASTER_CLK,
> - ES8389_MCLK_SOURCE, es8389->mclk_src);
> + ES8389_MCLK_MASK, ES8389_MCLK_FROM_SCLK);
> es8389->sysclk = params_channels(params) * params_width(params) * params_rate(params);
> }
>
> @@ -897,11 +897,7 @@ static int es8389_probe(struct snd_soc_component *component)
> int ret, i;
> struct es8389_private *es8389 = snd_soc_component_get_drvdata(component);
>
> - ret = device_property_read_u8(component->dev, "everest,mclk-src", &es8389->mclk_src);
Why are you changing implemented ABI?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread* RE: [PATCH 2/7] ASoC: codecs: ES8389: Fix the issue about mclk_src
2026-06-09 7:34 ` [PATCH 2/7] ASoC: codecs: ES8389: Fix the issue about mclk_src Krzysztof Kozlowski
@ 2026-06-10 10:06 ` Zhang Yi
2026-06-13 7:33 ` Krzysztof Kozlowski
0 siblings, 1 reply; 11+ messages in thread
From: Zhang Yi @ 2026-06-10 10:06 UTC (permalink / raw)
To: krzk
Cc: alsa-devel, broonie, conor+dt, devicetree, krzk+dt, robh, tiwai,
zhangyi
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
> > Fix the issue with incorrect modifications to mclk_src
>
> What issue? Your commit msgs are really poor - explain nothing. You just
> duplicated subject... and anything can be a fix.
I'm sorry I didn't explain that clearly.
When the system needs to be configured to use the MCLK from the SCLK pin,
the old code still sets the relevant registers to use the MCLK from the MCLK pin.
I will include a more detailed description in future versions.
> > struct es8389_private *es8389 = snd_soc_component_get_drvdata(component);
> >
> > - ret = device_property_read_u8(component->dev, "everest,mclk-src", &es8389->mclk_src);
>
> Why are you changing implemented ABI?
In the old ABI, `mclk_src` was defined as `u8`, which meant that users could set `mclk_src` to any value in the DTS¡ªsuch as `0x02`,
but the code wouldn't recognize what that value represented.
The actual purpose of `mclk_src` is to indicate whether `sclk` should be used as `mclk`.
So I've changed it to bool.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/7] ASoC: codecs: ES8389: Fix the issue about mclk_src
2026-06-10 10:06 ` Zhang Yi
@ 2026-06-13 7:33 ` Krzysztof Kozlowski
0 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2026-06-13 7:33 UTC (permalink / raw)
To: Zhang Yi; +Cc: alsa-devel, broonie, conor+dt, devicetree, krzk+dt, robh, tiwai
On 10/06/2026 12:06, Zhang Yi wrote:
>>> Fix the issue with incorrect modifications to mclk_src
>>
>> What issue? Your commit msgs are really poor - explain nothing. You just
>> duplicated subject... and anything can be a fix.
>
> I'm sorry I didn't explain that clearly.
> When the system needs to be configured to use the MCLK from the SCLK pin,
> the old code still sets the relevant registers to use the MCLK from the MCLK pin.
> I will include a more detailed description in future versions.
>
>>> struct es8389_private *es8389 = snd_soc_component_get_drvdata(component);
>>>
>>> - ret = device_property_read_u8(component->dev, "everest,mclk-src", &es8389->mclk_src);
>>
>> Why are you changing implemented ABI?
>
> In the old ABI, `mclk_src` was defined as `u8`, which meant that users could set `mclk_src` to any value in the DTS—such as `0x02`,
> but the code wouldn't recognize what that value represented.
> The actual purpose of `mclk_src` is to indicate whether `sclk` should be used as `mclk`.
> So I've changed it to bool.
You break ABI implemented by this driver, so you must clearly document
it with reasons, why breaking is necessary. Honestly, without proper
reason I would just answer that you must keep it backwards compatible.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 7/7] ASoC: dt-bindings: ES8389: Add members about HPF and clock
@ 2026-06-09 11:46 zhangyi
0 siblings, 0 replies; 11+ messages in thread
From: zhangyi @ 2026-06-09 11:46 UTC (permalink / raw)
To: krzk
Cc: alsa-devel, broonie, conor+dt, devicetree, krzk+dt, robh, tiwai,
zhangyi
> Please organize the patch documenting the ABI (DT bindings)
> before the patch using that ABI.
> See also:
https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/b
indings/submitting-patches.rst#L46
Thanks for the reminder
> > + everest,mclk-from-sclk:
> > + $ref: /schemas/types.yaml#/definitions/flag
> > + description:
> > + Indicates that SCLK is used as the internal clock.
>
> And what happens with mclk in such case? Is it still wired?
Yes, setting mclk-from-sclk does not affect the MCLK connection.
> > +
> > + everest,hpfl:
> > + $ref: /schemas/types.yaml#/definitions/uint8
> > + description:
> > + the HPF value of ADCL.
>
> Is HPF value in dB? If so, use proper unit suffix and proper units.
No, the values here correspond to the values in the registers.
The value is not in dB
> > vddd-supply = <&vdd3v3>;
> > vdda-supply = <&vdd3v3>;
> > + everest,hpfl = [0a];
>
> <0xa>? What did you want to say here?
I just wanted to give an example to show how to set the values of
everest,hpfl to 0x0a.
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <20260609071732.20939-1-zhangyi@everest-semi.com>]
* Re: [PATCH 7/7] ASoC: dt-bindings: ES8389: Add members about HPF and clock
@ 2026-06-10 9:12 zhangyi
0 siblings, 0 replies; 11+ messages in thread
From: zhangyi @ 2026-06-10 9:12 UTC (permalink / raw)
To: krzk; +Cc: alsa-devel, broonie, conor+dt, devicetree, krzk+dt, robh, tiwai
> You already sent v1 and received feedback.
>
> You just completely ignored it
When I submitted the v0 patch, I received feedback and suggestions from
Sashiko.
I wasn't sure how to handle Sashiko's feedback, and I mistakenly assumed
that if my patch didn't pass Sashiko's tests, you wouldn't receive it.
So, after modifying the code based on Sashiko's reasonable suggestions, I
submitted a patch with the same version ID.
As a result, you received two consecutive patches from me. I didn't mean to
ignore your valuable feedback, and I apologize for this.
So, when I receive feedback from Sashiko, do I need to wait for the
maintainers to provide their feedback before incorporating the changes into
the next version's patch?
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-06-15 10:59 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260609030623.17404-1-zhangyi@everest-semi.com>
[not found] ` <20260609030623.17404-8-zhangyi@everest-semi.com>
2026-06-09 7:33 ` [PATCH 7/7] ASoC: dt-bindings: ES8389: Add members about HPF and clock Krzysztof Kozlowski
2026-06-10 9:58 ` Zhang Yi
2026-06-13 7:37 ` Krzysztof Kozlowski
[not found] ` <20260615060744.18775-1-zhangyi@everest-semi.com>
2026-06-15 9:57 ` Krzysztof Kozlowski
[not found] ` <20260615101423.19781-1-zhangyi@everest-semi.com>
2026-06-15 10:58 ` Krzysztof Kozlowski
[not found] ` <20260609030623.17404-3-zhangyi@everest-semi.com>
2026-06-09 7:34 ` [PATCH 2/7] ASoC: codecs: ES8389: Fix the issue about mclk_src Krzysztof Kozlowski
2026-06-10 10:06 ` Zhang Yi
2026-06-13 7:33 ` Krzysztof Kozlowski
2026-06-09 11:46 [PATCH 7/7] ASoC: dt-bindings: ES8389: Add members about HPF and clock zhangyi
[not found] <20260609071732.20939-1-zhangyi@everest-semi.com>
[not found] ` <20260609071732.20939-8-zhangyi@everest-semi.com>
2026-06-10 8:53 ` Krzysztof Kozlowski
-- strict thread matches above, loose matches on Subject: below --
2026-06-10 9:12 zhangyi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox