From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Rob Herring <robh@kernel.org>
Cc: "Lars-Peter Clausen" <lars@metafoo.de>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Mark Brown" <broonie@kernel.org>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Daniel Vetter" <daniel@ffwll.ch>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Michal Simek" <michal.simek@amd.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"Vishal Sagar" <vishal.sagar@amd.com>,
"Anatoliy Klymenko" <anatoliy.klymenko@amd.com>,
"Péter Ujfalusi" <peter.ujfalusi@gmail.com>
Subject: Re: [PATCH v2 2/4] dt-bindings: display/xlnx/zynqmp-dpsub: Add audio DMAs
Date: Thu, 8 Aug 2024 15:54:07 +0300 [thread overview]
Message-ID: <d32d9229-9b40-4ebd-adf3-9ae9ef75b58b@ideasonboard.com> (raw)
In-Reply-To: <4073c6b5-629e-4e9c-86c2-a4b476fe775e@ideasonboard.com>
Hi Rob,
On 21/03/2024 07:52, Tomi Valkeinen wrote:
> On 20/03/2024 17:37, Rob Herring wrote:
>> On Tue, Mar 19, 2024 at 10:22:37AM +0200, Tomi Valkeinen wrote:
>>> The DP subsystem for ZynqMP support audio via two channels, and the DP
>>> DMA has dma-engines for those channels. For some reason the DT binding
>>> has not specified those channels, even if the picture included in
>>> xlnx,zynqmp-dpsub.yaml shows "2 x aud" DMAs.
>>
>> New required entries is an ABI change. This message kind of indicates it
>> was a mistake, but should be a lot more explicit. Are things broken
>> without the entries? Need 'Fixes'?
>
> I'll improve the desc for the next version.
>
> So, yes, it's an ABI change, and as far as I can guess (I can't figure
> out any other reason), the audio DMAs were left out by mistake or
> misunderstanding. The Linux driver has not supported audio, so this has
> not been an issue and nothing is broken.
>
> Now that this series adds the audio support, I had to add the audio
> DMAs. I considered making the DMAs optional in the DT, but that doesn't
> sound right, even if that would keep the ABI compatibility (wouldn't
> it?). The driver I add in this series does consider the audio DMAs as
> optional, though. If they're not present, the driver will continue
> without audio support.
>
> So, strictly speaking I think this is a fix to the original commit that
> adds the DT node, but as the driver using the audio DMAs comes in only
> now, I think there's no need for the 'Fixes' and backporting.
>
> I'm happy to change the approach if you think some other way is better.
Do you have any feedback on the above? Should I mark the audio DMAs as
optional in the binding?
Tomi
> Tomi
>
>>>
>>> Add the two audio DMAs to the binding.
>>>
>>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
>>> ---
>>> .../devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml | 10
>>> ++++++++--
>>> 1 file changed, 8 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/Documentation/devicetree/bindings/display/xlnx/
>>> xlnx,zynqmp-dpsub.yaml b/Documentation/devicetree/bindings/display/
>>> xlnx/xlnx,zynqmp-dpsub.yaml
>>> index 554f9d5809d4..6b754d4f260e 100644
>>> --- a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-
>>> dpsub.yaml
>>> +++ b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-
>>> dpsub.yaml
>>> @@ -100,12 +100,16 @@ properties:
>>> - description: Video layer, plane 1 (U/V or U)
>>> - description: Video layer, plane 2 (V)
>>> - description: Graphics layer
>>> + - description: Audio channel 0
>>> + - description: Audio channel 1
>>> dma-names:
>>> items:
>>> - const: vid0
>>> - const: vid1
>>> - const: vid2
>>> - const: gfx0
>>> + - const: aud0
>>> + - const: aud1
>>> phys:
>>> description: PHYs for the DP data lanes
>>> @@ -194,11 +198,13 @@ examples:
>>> power-domains = <&pd_dp>;
>>> resets = <&reset ZYNQMP_RESET_DP>;
>>> - dma-names = "vid0", "vid1", "vid2", "gfx0";
>>> + dma-names = "vid0", "vid1", "vid2", "gfx0", "aud0", "aud1";
>>> dmas = <&xlnx_dpdma 0>,
>>> <&xlnx_dpdma 1>,
>>> <&xlnx_dpdma 2>,
>>> - <&xlnx_dpdma 3>;
>>> + <&xlnx_dpdma 3>,
>>> + <&xlnx_dpdma 4>,
>>> + <&xlnx_dpdma 5>;
>>> phys = <&psgtr 1 PHY_TYPE_DP 0 3>,
>>> <&psgtr 0 PHY_TYPE_DP 1 3>;
>>>
>>> --
>>> 2.34.1
>>>
>
next prev parent reply other threads:[~2024-08-08 12:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-19 8:22 [PATCH v2 0/4] drm: xlnx: zynqmp: Add DP audio support Tomi Valkeinen
2024-03-19 8:22 ` [PATCH v2 1/4] ASoC: dmaengine_pcm: Allow passing component name via config Tomi Valkeinen
2024-03-19 8:22 ` [PATCH v2 2/4] dt-bindings: display/xlnx/zynqmp-dpsub: Add audio DMAs Tomi Valkeinen
2024-03-20 15:37 ` Rob Herring
2024-03-21 5:52 ` Tomi Valkeinen
2024-08-08 12:54 ` Tomi Valkeinen [this message]
2024-03-19 8:22 ` [PATCH v2 3/4] arm64: dts: zynqmp: Add DMA for DP audio Tomi Valkeinen
2024-03-19 8:22 ` [PATCH v2 4/4] drm: xlnx: zynqmp_dpsub: Add DP audio support Tomi Valkeinen
2024-04-02 22:54 ` Klymenko, Anatoliy
2024-03-26 15:27 ` (subset) [PATCH v2 0/4] drm: xlnx: zynqmp: " Mark Brown
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=d32d9229-9b40-4ebd-adf3-9ae9ef75b58b@ideasonboard.com \
--to=tomi.valkeinen@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=anatoliy.klymenko@amd.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=laurent.pinchart@ideasonboard.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=michal.simek@amd.com \
--cc=mripard@kernel.org \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@gmail.com \
--cc=robh@kernel.org \
--cc=tiwai@suse.com \
--cc=tzimmermann@suse.de \
--cc=vishal.sagar@amd.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