* [PATCH v3 0/2] convert imx-audio-spdif.txt to YAML @ 2024-04-09 8:50 Shengjiu Wang 2024-04-09 8:50 ` [PATCH v3 1/2] ASoC: dt-bindings: imx-audio-spdif: convert " Shengjiu Wang 2024-04-09 8:50 ` [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string Shengjiu Wang 0 siblings, 2 replies; 8+ messages in thread From: Shengjiu Wang @ 2024-04-09 8:50 UTC (permalink / raw) To: lgirdwood, broonie, robh+dt, krzysztof.kozlowski+dt, conor+dt, shengjiu.wang, linux-sound, devicetree, linux-kernel, shawnguo, s.hauer, kernel, festevam, imx, linux-arm-kernel convert imx-audio-spdif.txt to YAML changes in v3: - change file name to fsl,imx-audio-spdif.yaml - change example name back to sound-spdif - exchange the fallback and specific compatible string - update anyOf content changes in v2: - change file name to imx-spdif.yaml - remove | - add anyof for spdif-in and spdif-out requirement - change example name to sound Shengjiu Wang (2): ASoC: dt-bindings: imx-audio-spdif: convert to YAML ARM: dts: imx6: exchange fallback and specific compatible string .../bindings/sound/fsl,imx-audio-spdif.yaml | 67 +++++++++++++++++++ .../bindings/sound/imx-audio-spdif.txt | 36 ---------- .../boot/dts/nxp/imx/imx6qdl-sabreauto.dtsi | 4 +- arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi | 4 +- 4 files changed, 71 insertions(+), 40 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml delete mode 100644 Documentation/devicetree/bindings/sound/imx-audio-spdif.txt -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v3 1/2] ASoC: dt-bindings: imx-audio-spdif: convert to YAML 2024-04-09 8:50 [PATCH v3 0/2] convert imx-audio-spdif.txt to YAML Shengjiu Wang @ 2024-04-09 8:50 ` Shengjiu Wang 2024-04-09 10:29 ` Krzysztof Kozlowski 2024-04-09 8:50 ` [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string Shengjiu Wang 1 sibling, 1 reply; 8+ messages in thread From: Shengjiu Wang @ 2024-04-09 8:50 UTC (permalink / raw) To: lgirdwood, broonie, robh+dt, krzysztof.kozlowski+dt, conor+dt, shengjiu.wang, linux-sound, devicetree, linux-kernel, shawnguo, s.hauer, kernel, festevam, imx, linux-arm-kernel Convert the imx-audio-spdif binding to YAML. When testing dtbs_check, found below compatible strings are not listed in document: fsl,imx-sabreauto-spdif fsl,imx6sx-sdb-spdif So add them in yaml file to pass the test. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> --- .../bindings/sound/fsl,imx-audio-spdif.yaml | 67 +++++++++++++++++++ .../bindings/sound/imx-audio-spdif.txt | 36 ---------- 2 files changed, 67 insertions(+), 36 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml delete mode 100644 Documentation/devicetree/bindings/sound/imx-audio-spdif.txt diff --git a/Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml b/Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml new file mode 100644 index 000000000000..fec008ffae43 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/fsl,imx-audio-spdif.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX audio complex with S/PDIF transceiver + +maintainers: + - Shengjiu Wang <shengjiu.wang@nxp.com> + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx-sabreauto-spdif + - fsl,imx6sx-sdb-spdif + - enum: + - fsl,imx-audio-spdif + - enum: + - fsl,imx-audio-spdif + + model: + $ref: /schemas/types.yaml#/definitions/string + description: User specified audio sound card name + + spdif-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of the i.MX S/PDIF controller + + spdif-out: + type: boolean + description: + If present, the transmitting function of S/PDIF will be enabled, + indicating there's a physical S/PDIF out connector or jack on the + board or it's connecting to some other IP block, such as an HDMI + encoder or display-controller. + + spdif-in: + type: boolean + description: + If present, the receiving function of S/PDIF will be enabled, + indicating there is a physical S/PDIF in connector/jack on the board. + +required: + - compatible + - model + - spdif-controller + +anyOf: + - required: + - spdif-in + - required: + - spdif-out + +additionalProperties: false + +examples: + - | + sound-spdif { + compatible = "fsl,imx-audio-spdif"; + model = "imx-spdif"; + spdif-controller = <&spdif>; + spdif-out; + spdif-in; + }; diff --git a/Documentation/devicetree/bindings/sound/imx-audio-spdif.txt b/Documentation/devicetree/bindings/sound/imx-audio-spdif.txt deleted file mode 100644 index da84a442ccea..000000000000 --- a/Documentation/devicetree/bindings/sound/imx-audio-spdif.txt +++ /dev/null @@ -1,36 +0,0 @@ -Freescale i.MX audio complex with S/PDIF transceiver - -Required properties: - - - compatible : "fsl,imx-audio-spdif" - - - model : The user-visible name of this sound complex - - - spdif-controller : The phandle of the i.MX S/PDIF controller - - -Optional properties: - - - spdif-out : This is a boolean property. If present, the - transmitting function of S/PDIF will be enabled, - indicating there's a physical S/PDIF out connector - or jack on the board or it's connecting to some - other IP block, such as an HDMI encoder or - display-controller. - - - spdif-in : This is a boolean property. If present, the receiving - function of S/PDIF will be enabled, indicating there - is a physical S/PDIF in connector/jack on the board. - -* Note: At least one of these two properties should be set in the DT binding. - - -Example: - -sound-spdif { - compatible = "fsl,imx-audio-spdif"; - model = "imx-spdif"; - spdif-controller = <&spdif>; - spdif-out; - spdif-in; -}; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v3 1/2] ASoC: dt-bindings: imx-audio-spdif: convert to YAML 2024-04-09 8:50 ` [PATCH v3 1/2] ASoC: dt-bindings: imx-audio-spdif: convert " Shengjiu Wang @ 2024-04-09 10:29 ` Krzysztof Kozlowski 0 siblings, 0 replies; 8+ messages in thread From: Krzysztof Kozlowski @ 2024-04-09 10:29 UTC (permalink / raw) To: Shengjiu Wang, lgirdwood, broonie, robh+dt, krzysztof.kozlowski+dt, conor+dt, shengjiu.wang, linux-sound, devicetree, linux-kernel, shawnguo, s.hauer, kernel, festevam, imx, linux-arm-kernel On 09/04/2024 10:50, Shengjiu Wang wrote: > Convert the imx-audio-spdif binding to YAML. > > When testing dtbs_check, found below compatible strings > are not listed in document: > > fsl,imx-sabreauto-spdif > fsl,imx6sx-sdb-spdif > > So add them in yaml file to pass the test. > > Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> > --- > .../bindings/sound/fsl,imx-audio-spdif.yaml | 67 +++++++++++++++++++ > .../bindings/sound/imx-audio-spdif.txt | 36 ---------- > 2 files changed, 67 insertions(+), 36 deletions(-) > create mode 100644 Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml > delete mode 100644 Documentation/devicetree/bindings/sound/imx-audio-spdif.txt > > diff --git a/Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml b/Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml > new file mode 100644 > index 000000000000..fec008ffae43 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml > @@ -0,0 +1,67 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/fsl,imx-audio-spdif.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale i.MX audio complex with S/PDIF transceiver > + > +maintainers: > + - Shengjiu Wang <shengjiu.wang@nxp.com> > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - fsl,imx-sabreauto-spdif > + - fsl,imx6sx-sdb-spdif > + - enum: > + - fsl,imx-audio-spdif If there is going to be any new version/resend: This one should be const, not enum. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- This is an automated instruction, just in case, because many review tags are being ignored. If you know the process, you can skip it (please do not feel offended by me posting it here - no bad intentions intended). If you do not know the process, here is a short explanation: Please add Acked-by/Reviewed-by/Tested-by tags when posting new versions, under or above your Signed-off-by tag. Tag is "received", when provided in a message replied to you on the mailing list. Tools like b4 can help here. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for tags received on the version they apply. https://elixir.bootlin.com/linux/v6.5-rc3/source/Documentation/process/submitting-patches.rst#L577 Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string 2024-04-09 8:50 [PATCH v3 0/2] convert imx-audio-spdif.txt to YAML Shengjiu Wang 2024-04-09 8:50 ` [PATCH v3 1/2] ASoC: dt-bindings: imx-audio-spdif: convert " Shengjiu Wang @ 2024-04-09 8:50 ` Shengjiu Wang 2024-04-09 10:02 ` Fabio Estevam 2024-04-11 15:55 ` Conor Dooley 1 sibling, 2 replies; 8+ messages in thread From: Shengjiu Wang @ 2024-04-09 8:50 UTC (permalink / raw) To: lgirdwood, broonie, robh+dt, krzysztof.kozlowski+dt, conor+dt, shengjiu.wang, linux-sound, devicetree, linux-kernel, shawnguo, s.hauer, kernel, festevam, imx, linux-arm-kernel exchange fallback and specific compatible string for spdif sound card. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> --- arch/arm/boot/dts/nxp/imx/imx6qdl-sabreauto.dtsi | 4 ++-- arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabreauto.dtsi index 68e97180d33e..51517e27418c 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-sabreauto.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-sabreauto.dtsi @@ -144,8 +144,8 @@ sound-cs42888 { }; sound-spdif { - compatible = "fsl,imx-audio-spdif", - "fsl,imx-sabreauto-spdif"; + compatible = "fsl,imx-sabreauto-spdif", + "fsl,imx-audio-spdif"; model = "imx-spdif"; spdif-controller = <&spdif>; spdif-in; diff --git a/arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi b/arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi index c6e85e4a0883..67872c16372a 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi @@ -184,8 +184,8 @@ panel_in: endpoint { }; sound-spdif { - compatible = "fsl,imx-audio-spdif", - "fsl,imx6sx-sdb-spdif"; + compatible = "fsl,imx6sx-sdb-spdif", + "fsl,imx-audio-spdif"; model = "imx-spdif"; spdif-controller = <&spdif>; spdif-out; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string 2024-04-09 8:50 ` [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string Shengjiu Wang @ 2024-04-09 10:02 ` Fabio Estevam 2024-04-09 10:06 ` Fabio Estevam 2024-04-11 15:55 ` Conor Dooley 1 sibling, 1 reply; 8+ messages in thread From: Fabio Estevam @ 2024-04-09 10:02 UTC (permalink / raw) To: Shengjiu Wang Cc: lgirdwood, broonie, robh+dt, krzysztof.kozlowski+dt, conor+dt, shengjiu.wang, linux-sound, devicetree, linux-kernel, shawnguo, s.hauer, kernel, imx, linux-arm-kernel On Tue, Apr 9, 2024 at 6:08 AM Shengjiu Wang <shengjiu.wang@nxp.com> wrote: > > exchange fallback and specific compatible string for spdif sound card. Ok, but please explain the reason. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string 2024-04-09 10:02 ` Fabio Estevam @ 2024-04-09 10:06 ` Fabio Estevam 2024-04-09 11:22 ` Shengjiu Wang 0 siblings, 1 reply; 8+ messages in thread From: Fabio Estevam @ 2024-04-09 10:06 UTC (permalink / raw) To: Shengjiu Wang Cc: lgirdwood, broonie, robh+dt, krzysztof.kozlowski+dt, conor+dt, shengjiu.wang, linux-sound, devicetree, linux-kernel, shawnguo, s.hauer, kernel, imx, linux-arm-kernel On Tue, Apr 9, 2024 at 7:02 AM Fabio Estevam <festevam@gmail.com> wrote: > > On Tue, Apr 9, 2024 at 6:08 AM Shengjiu Wang <shengjiu.wang@nxp.com> wrote: > > > > exchange fallback and specific compatible string for spdif sound card. > > Ok, but please explain the reason. I mean, why can't these two .dts files be changed to compatible = "fsl,imx-audio-spdif"; , like all the others? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string 2024-04-09 10:06 ` Fabio Estevam @ 2024-04-09 11:22 ` Shengjiu Wang 0 siblings, 0 replies; 8+ messages in thread From: Shengjiu Wang @ 2024-04-09 11:22 UTC (permalink / raw) To: Fabio Estevam Cc: Shengjiu Wang, lgirdwood, broonie, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-sound, devicetree, linux-kernel, shawnguo, s.hauer, kernel, imx, linux-arm-kernel On Tue, Apr 9, 2024 at 6:06 PM Fabio Estevam <festevam@gmail.com> wrote: > > On Tue, Apr 9, 2024 at 7:02 AM Fabio Estevam <festevam@gmail.com> wrote: > > > > On Tue, Apr 9, 2024 at 6:08 AM Shengjiu Wang <shengjiu.wang@nxp.com> wrote: > > > > > > exchange fallback and specific compatible string for spdif sound card. > > > > Ok, but please explain the reason. > > I mean, why can't these two .dts files be changed to > > compatible = "fsl,imx-audio-spdif"; > > , like all the others? The specific compatible string should be first place as the dts rules I think. This patch is just to fix this problem. For removing the specific compatible string, I think we can do that. but this change may be out of the scope of this patch series I think. So I just change the order of compatible strings best regards wang shengjiu _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string 2024-04-09 8:50 ` [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string Shengjiu Wang 2024-04-09 10:02 ` Fabio Estevam @ 2024-04-11 15:55 ` Conor Dooley 1 sibling, 0 replies; 8+ messages in thread From: Conor Dooley @ 2024-04-11 15:55 UTC (permalink / raw) To: Shengjiu Wang Cc: lgirdwood, broonie, robh+dt, krzysztof.kozlowski+dt, conor+dt, shengjiu.wang, linux-sound, devicetree, linux-kernel, shawnguo, s.hauer, kernel, festevam, imx, linux-arm-kernel [-- Attachment #1.1: Type: text/plain, Size: 253 bytes --] On Tue, Apr 09, 2024 at 04:50:44PM +0800, Shengjiu Wang wrote: > exchange fallback and specific compatible string for spdif sound card. > > Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] [-- Attachment #2: Type: text/plain, Size: 176 bytes --] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-04-11 15:56 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-04-09 8:50 [PATCH v3 0/2] convert imx-audio-spdif.txt to YAML Shengjiu Wang 2024-04-09 8:50 ` [PATCH v3 1/2] ASoC: dt-bindings: imx-audio-spdif: convert " Shengjiu Wang 2024-04-09 10:29 ` Krzysztof Kozlowski 2024-04-09 8:50 ` [PATCH v3 2/2] ARM: dts: imx6: exchange fallback and specific compatible string Shengjiu Wang 2024-04-09 10:02 ` Fabio Estevam 2024-04-09 10:06 ` Fabio Estevam 2024-04-09 11:22 ` Shengjiu Wang 2024-04-11 15:55 ` Conor Dooley
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox