]> git.ipfire.org Git - thirdparty/linux.git/commit
ARM: dts: imx6: update spdif sound card node properties
authorElinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Tue, 20 Aug 2024 11:28:27 +0000 (13:28 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 1 Sep 2024 01:15:50 +0000 (09:15 +0800)
commitd469b771afe1c02643b24824946a53c493ef1731
tree40bc6e3e1e2b44dfee2c3f14b6d3f4d125cf5682
parent0353e9809eb65cdf227821e6e65a6f0676271242
ARM: dts: imx6: update spdif sound card node properties

The merge of imx-spdif driver into fsl-asoc-card brought
new DT properties that can be used with the "fsl,imx-audio-spdif"
compatible:
* The "spdif-controller" property from imx-spdif is named "audio-cpu"
  in fsl-asoc-card.
* fsl-asoc-card uses codecs explicitly declared in DT
  with "audio-codec".
  With an S/PDIF, codec drivers spdif_transmitter and
  spdif_receiver should be used.
  Driver imx-spdif used instead the dummy codec and a pair of
  boolean properties, "spdif-in" and "spdif-out".

While backward compatibility is kept to support properties
"spdif-controller", "spdif-in" and "spdif-out", using new properties has
several benefits:
* "audio-cpu" and "audio-codec" are more generic names reflecting
  that the fsl-asoc-card driver supports multiple hardware.
  They are properties already used by devices using the
  fsl-asoc-card driver.
  They are also similar to properties of simple-card: "cpu" and "codec".
* "spdif-in" and "spdif-out" imply the use of the dummy codec in the
  driver. However, there are already two codec drivers for the S/PDIF,
  spdif_transmitter and spdif_receiver.
  It is better to declare S/PDIF Tx and Rx devices in a DT, and then
  reference them with "audio-codec" than using the dummy codec.

For those reasons, this commit updates in-tree DTs to use the new
properties:
* Rename "spdif-controller" property to "audio-cpu".
* Declare S/PDIF transmitter and/or receiver devices, and use them with
  the "audio-codec" property instead of "spdif-out" and/or "spdif-in".

These modifications were tested only on an imx8mn-evk board.

Note that out-of-tree and old DTs are still supported.

Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
12 files changed:
arch/arm/boot/dts/nxp/imx/imx6q-cm-fx6.dts
arch/arm/boot/dts/nxp/imx/imx6q-prti6q.dts
arch/arm/boot/dts/nxp/imx/imx6q-tbs2910.dts
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi
arch/arm/boot/dts/nxp/imx/imx6qdl-apf6dev.dtsi
arch/arm/boot/dts/nxp/imx/imx6qdl-colibri.dtsi
arch/arm/boot/dts/nxp/imx/imx6qdl-cubox-i.dtsi
arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard.dtsi
arch/arm/boot/dts/nxp/imx/imx6qdl-sabreauto.dtsi
arch/arm/boot/dts/nxp/imx/imx6qdl-wandboard.dtsi
arch/arm/boot/dts/nxp/imx/imx6sx-sabreauto.dts
arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi