Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp213988lqn; Thu, 11 Apr 2024 21:17:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWuxXA8ywEB7kUDRctpTyX/L7Z3srR7e2KPjQNhyeWCjeLZ/Zs8Ck9xVb3bVtHBKzY4SCb0ob91UFz40FPbOBkhqJb3XRxgdiSexJck9g== X-Google-Smtp-Source: AGHT+IEB5TaR4QR9YcJOuG4n/BNFNDsm7OAdkydB4kkx8zX4bf0xI+v1KVkqAxOQq1Ja1NvR4Ixx X-Received: by 2002:a17:902:c40d:b0:1e2:8c26:3264 with SMTP id k13-20020a170902c40d00b001e28c263264mr1994055plk.36.1712895428336; Thu, 11 Apr 2024 21:17:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712895428; cv=pass; d=google.com; s=arc-20160816; b=VL75+rqkEcJUEXx0XRhYlJP8yqkg13OV/ddtCHt2/SQfZt+fB6qw+SGq7bWjRK2GLc Ax7C/fDijsUEliHkCeMMt37HB7kRicN8O9r5Ck6zAxfdkRgbZK8z/822L/FfXwQSuNOn 69RE0ebZLAlACEqhlEeS+u/uqIM3EEaC+Ss6XEhSJis1ui8Ge3ThdEG3t0wvWqNdiIZY NJdiZSq4hw5JUEu1KwT3DvxqBS8c9SHERDTpnc/WRZ0WZIn0ciPL+T4IqSO4Ohe/ZbbO o5LF136LImfBys6qykHTIkz0azmVyLvfzQNwfosHMwqUEdXftfLk8G7TIxu9BxUf9UeS gJBg== 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=ZVusxEQDvHFbyRhvXSvL8cZAmZx3Q0XCzsA4JyxFL9/qIVuJNeRqfgrw2LF6u+hj4w 5ZOrSdHdCF3nA8zT6GMMbvwyQd7ZjPowJVyBRMlbrlQizle9pYnSpM68ZvnjUGVCXBMR vmVu90mvspQK6M0lT95SrljzeF0aTTcaZT6g9nu2fxMdXNadCCVQe/pIg8lRjSs2Fuep IXqTOGNm+owV7EIDutKn3NKzZu7pXBCaBfaT/8EtoReNo2dTs6p5rccj+yIMbv0KiPJn xZr+sNFls2GmUXmDvb0lgp12bwKjExpRRufmpw7wl94dw2H1070UBqsDoyAI2DBkIAiH A+2Q==; 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-141911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141911-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e13-20020a170902784d00b001e3dda65129si2351244pln.644.2024.04.11.21.17.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 21:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-141911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141911-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 04E39281378 for ; Fri, 12 Apr 2024 04:17:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEE232C184; Fri, 12 Apr 2024 04:14:55 +0000 (UTC) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) (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 D1AA9199B0; Fri, 12 Apr 2024 04:14:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712895293; cv=none; b=Cd4hsOvH/u5IQf37WQSKzQ+HP+c7SiKvmHH2U3Fpsb8xr2P7t9m+6/uS1oVVHwUVcFaHoybKDzEjHFEuLmFWA/G1KxEgmdh0wM72fdlG/d+PYKvRsUYE5voUKLqtbEr8lq96aJ1wRIsYiWWMMLtz6FqRvoO660gb9SY3GbcpTX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712895293; c=relaxed/simple; bh=JAFeCKPAVOb0NOEyHFrJHhzUxg9evNHqa0c+BPuVMeA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=tnCQEC0Fnod5sHYcqFlNdaP/9VwJRHWWZVL4ULDdxz3Ry6+n/EU0AP2vWeCOOpSXAuw8El3j3xCuhLyIQ3pUQ/1tsquq4UJbNNqShd/S41tDK5tteNO+Fc1idj1h6EvCM0LtTAE9PZQ2ZH8w290kbgtV2T2/tRAdxWcaZPNSAq8= 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.21 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 inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 3E3C62011BC; Fri, 12 Apr 2024 06:14:48 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CFB20200383; Fri, 12 Apr 2024 06:14:47 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id F3F4A183AD15; Fri, 12 Apr 2024 12:14:45 +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 v5 1/2] ASoC: dt-bindings: imx-audio-spdif: convert to YAML Date: Fri, 12 Apr 2024 11:56:51 +0800 Message-Id: <1712894212-32283-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1712894212-32283-1-git-send-email-shengjiu.wang@nxp.com> References: <1712894212-32283-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