1*7d0873ebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*7d0873ebSEmmanuel Vadot%YAML 1.2 3*7d0873ebSEmmanuel Vadot--- 4*7d0873ebSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/fsl,imx-audio-spdif.yaml# 5*7d0873ebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*7d0873ebSEmmanuel Vadot 7*7d0873ebSEmmanuel Vadottitle: Freescale i.MX audio complex with S/PDIF transceiver 8*7d0873ebSEmmanuel Vadot 9*7d0873ebSEmmanuel Vadotmaintainers: 10*7d0873ebSEmmanuel Vadot - Shengjiu Wang <shengjiu.wang@nxp.com> 11*7d0873ebSEmmanuel Vadot 12*7d0873ebSEmmanuel Vadotproperties: 13*7d0873ebSEmmanuel Vadot compatible: 14*7d0873ebSEmmanuel Vadot oneOf: 15*7d0873ebSEmmanuel Vadot - items: 16*7d0873ebSEmmanuel Vadot - enum: 17*7d0873ebSEmmanuel Vadot - fsl,imx-sabreauto-spdif 18*7d0873ebSEmmanuel Vadot - fsl,imx6sx-sdb-spdif 19*7d0873ebSEmmanuel Vadot - const: fsl,imx-audio-spdif 20*7d0873ebSEmmanuel Vadot - enum: 21*7d0873ebSEmmanuel Vadot - fsl,imx-audio-spdif 22*7d0873ebSEmmanuel Vadot 23*7d0873ebSEmmanuel Vadot model: 24*7d0873ebSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/string 25*7d0873ebSEmmanuel Vadot description: User specified audio sound card name 26*7d0873ebSEmmanuel Vadot 27*7d0873ebSEmmanuel Vadot spdif-controller: 28*7d0873ebSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 29*7d0873ebSEmmanuel Vadot description: The phandle of the i.MX S/PDIF controller 30*7d0873ebSEmmanuel Vadot 31*7d0873ebSEmmanuel Vadot spdif-out: 32*7d0873ebSEmmanuel Vadot type: boolean 33*7d0873ebSEmmanuel Vadot description: 34*7d0873ebSEmmanuel Vadot If present, the transmitting function of S/PDIF will be enabled, 35*7d0873ebSEmmanuel Vadot indicating there's a physical S/PDIF out connector or jack on the 36*7d0873ebSEmmanuel Vadot board or it's connecting to some other IP block, such as an HDMI 37*7d0873ebSEmmanuel Vadot encoder or display-controller. 38*7d0873ebSEmmanuel Vadot 39*7d0873ebSEmmanuel Vadot spdif-in: 40*7d0873ebSEmmanuel Vadot type: boolean 41*7d0873ebSEmmanuel Vadot description: 42*7d0873ebSEmmanuel Vadot If present, the receiving function of S/PDIF will be enabled, 43*7d0873ebSEmmanuel Vadot indicating there is a physical S/PDIF in connector/jack on the board. 44*7d0873ebSEmmanuel Vadot 45*7d0873ebSEmmanuel Vadotrequired: 46*7d0873ebSEmmanuel Vadot - compatible 47*7d0873ebSEmmanuel Vadot - model 48*7d0873ebSEmmanuel Vadot - spdif-controller 49*7d0873ebSEmmanuel Vadot 50*7d0873ebSEmmanuel VadotanyOf: 51*7d0873ebSEmmanuel Vadot - required: 52*7d0873ebSEmmanuel Vadot - spdif-in 53*7d0873ebSEmmanuel Vadot - required: 54*7d0873ebSEmmanuel Vadot - spdif-out 55*7d0873ebSEmmanuel Vadot 56*7d0873ebSEmmanuel VadotadditionalProperties: false 57*7d0873ebSEmmanuel Vadot 58*7d0873ebSEmmanuel Vadotexamples: 59*7d0873ebSEmmanuel Vadot - | 60*7d0873ebSEmmanuel Vadot sound-spdif { 61*7d0873ebSEmmanuel Vadot compatible = "fsl,imx-audio-spdif"; 62*7d0873ebSEmmanuel Vadot model = "imx-spdif"; 63*7d0873ebSEmmanuel Vadot spdif-controller = <&spdif>; 64*7d0873ebSEmmanuel Vadot spdif-out; 65*7d0873ebSEmmanuel Vadot spdif-in; 66*7d0873ebSEmmanuel Vadot }; 67