Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp303703lqg; Thu, 11 Apr 2024 03:37:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0PYCdz0EHHOGTKWUM4KOwjpvkfoKmyMw/n1HhkXa3tJ2qSPBxjCWEN7Syx3bB9TFWuM/OMWkzknL+4/5CyB2t5A4fKlYybG9Ru7BAHg== X-Google-Smtp-Source: AGHT+IFlOa23EnQKhDHKjO46CW6ZrqQqbSnupQ/nbMfOXx6JEQ6vwt6OOJC5FxmWQ+mWX7vxCqko X-Received: by 2002:a17:903:1381:b0:1e4:b1ea:23ef with SMTP id jx1-20020a170903138100b001e4b1ea23efmr5162677plb.49.1712831835423; Thu, 11 Apr 2024 03:37:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712831835; cv=pass; d=google.com; s=arc-20160816; b=vWWPsBUX6xsZTaHxGjJUTVm58xK/u16bF9w2SOKpadmfykyrpo84mUumhmsdcXKKCw t3eNF2L+sb/0xiT6Rk38S7dvyrxt+TNYQvQeW/sQ3MoynAYl2XH2y23OYI2bFAlgqJ1g MZGqHP6HDRQijx6vMIvZTi0l0Sov75FL+jVVboFs4woGqaWw9UiFzF1LHqv6uuGj/fyt 4URnWqgIPESAoy+IEDGlvyt6dNwSosta4u9ZyZ/6nRZnHpER+Z+qvJ1OkXx9OP97dGba bjb4anCbp7LxYJR6awWF2w1wq4howci5ATGyLnPa4sX5OW/MpRjwmyrelyitV/zaQiaa 1v8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:to:from; bh=kGgcVvpnRotWjvNLtWuIfq5MRZpGnkJyU8WXUHoaxck=; fh=Bk1B+5WbHkNy7DtkcMFo7Xwj2xJzGsNAkrCkv90tu4E=; b=vSb6i5jqDBDb+SUOOONtkKSPtgOnG+dLeBcP6Y5Ecarq+geTCdw6NrK4wyUrtWS/d4 jWZGN0PacbJYo8Lzui4N18X33L76iQKfztRV+xM8jTHQPwGVzDmv2Ybjb9DOG1Nr0bEW ZUmzm0GObypkZAe0dDjG8O3OIESXIZiF5BCYyuGME63A4aMc3998M4276t+keDS8MM7P ZXJ2fwYJ+Ud55jm03lTuJxmVrHcILkotUyDAekZHi1lR93TLG/YuHkQgaxOP0EPt/LWc cDnXkjUcNDwV0XnVfxR9q0xTv+M/KlEdLNkLooGuXK0rsq3SMnbKLpJZ9BDZZ6+A5zCi FOqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-140242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f5-20020a170902684500b001e3eb95618esi1035275pln.493.2024.04.11.03.37.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 03:37:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-140242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2A83FB24AE6 for ; Thu, 11 Apr 2024 10:30:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C048F1474C9; Thu, 11 Apr 2024 10:29:46 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66268146D52; Thu, 11 Apr 2024 10:29:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712831386; cv=none; b=qErW55xdfbwiFrIL5L2QrxEvxLIj2vPGZ5HpZ3dIwFYnOWijPbyiuUur0OtrAD51fKsG8l7h3sOtgM0d+cUbxk7tstTOG8RF54WMSgaKOYp5k5vFFF+qGRFqBbxBegbKMupQAisDX03a0xitWjDuJHrmgxXuTuNSfe2Vf+G/v6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712831386; c=relaxed/simple; bh=JAFeCKPAVOb0NOEyHFrJHhzUxg9evNHqa0c+BPuVMeA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=aDq5BntrlXvqOz03qnHEdGZprjVvSkKDCyTwH+4FTZIfZsh67ikUeDV7AW0Ft0vAbKnOkctKsKJ3adteewLmdAGnbq1sx6eXYIHBgpwTBAhwCD0ZPSFgNCU/rYDfkzmQoBHaFFgbwwH7zFoZesNZVBEQhFByFUR8S6km+AejkRA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DE9921A00D5; Thu, 11 Apr 2024 12:29:36 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5A4B11A0059; Thu, 11 Apr 2024 12:29:36 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 74DB4183ACAF; Thu, 11 Apr 2024 18:29:34 +0800 (+08) From: Shengjiu Wang To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shengjiu.wang@gmail.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 1/2] ASoC: dt-bindings: imx-audio-spdif: convert to YAML Date: Thu, 11 Apr 2024 18:11:44 +0800 Message-Id: <1712830305-31350-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1712830305-31350-1-git-send-email-shengjiu.wang@nxp.com> References: <1712830305-31350-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 Reviewed-by: Krzysztof Kozlowski --- .../bindings/sound/fsl,imx-audio-spdif.yaml | 66 +++++++++++++++++++ .../bindings/sound/imx-audio-spdif.txt | 36 ---------- 2 files changed, 66 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..5fc543d02ecb --- /dev/null +++ b/Documentation/devicetree/bindings/sound/fsl,imx-audio-spdif.yaml @@ -0,0 +1,66 @@ +# 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 + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx-sabreauto-spdif + - fsl,imx6sx-sdb-spdif + - const: 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