Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2987903lqo; Tue, 21 May 2024 03:34:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6ziqiqUHZejs6veu6g3DeY0Prn2GqkEb91Gs2Z0hYnF5ZCCuDxKcEGNHhqhSHKCumVqDb0k/g5iVLwUN74SxlVFFRjx8PV2ON38Ks5A== X-Google-Smtp-Source: AGHT+IFLx5381DwSZZtoJbhLJEdwjImiVK5kNwG7Dnt2buc7Qao+xXo8npxY3EF/Hub6Zwrxl1au X-Received: by 2002:a05:6a20:96d2:b0:1af:d810:9d0e with SMTP id adf61e73a8af0-1afde1c57dfmr28155370637.49.1716287674751; Tue, 21 May 2024 03:34:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716287674; cv=pass; d=google.com; s=arc-20160816; b=dHVtgTzckxIZWQqvFxbFG7JsHQiyEiGbkQX3tpkMZosTHlF06gqpEyOawF+UUeLSLN DnwskGK/TL5iFwhF/t95g40CXivmkmeinI4rceDu+DhhgsBilAg+u0yU89P1H0lKwbKo UuCBxfO+NWL2y/VMAbHM4WF0fELhlUKEATLJhRawxeyoEsbZbiQl1Vch9qwpzzcweLme fSp7EHYkqdBWT0ImX9A1MK187e1lJ7RlAaynPdc41cXEcMAwdUWCfMHZQWI51ZWxkaNt ANeYG96PScTEPlfLCSqh0QMG+HDjoCu38onKpv1tK5esyO/QJPeT8W3/NUY/uO5Qvf5i x2/A== 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=kp1eKJUYFxUi4GyTnEJ+t2mJH6FaEr+v9hF01XQgp8s=; fh=GPNlrx+KEFkEzYtXZ6NEdM3tzm0co+FAcNkYSnNdsYQ=; b=lXh8Q7CH8LrPVlEsSRxWLwHIp2QeA99zyA1H09yHQyv7KrM2G4ivThz+EWhkeWpyrU s90GX+b1XOjXiA1t3DA8UM39rO2rWEePsIQw01Ia2Wh+dAdbA78qQFN8DLURvh93d6jZ GzzdgFgWlEmvf+4n09uBPzhUhFLwI2C14e9aQ4ukaFPRJkoI0UOnFrPz83K3wvsjRrSb U+V5kzaME+CnOsRMLbYocWmRezsUu3aJYfMrhUAVvuSedI6zgC3/ZKl5OE0SmZYdILrJ /tssvDvhCeCu4ZHwAMDkR7CHTbhf4c6CJsT1kdkKJeGypYR89dGX1zJanN1XVniaRlrP S7xg==; 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-184810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184810-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 98e67ed59e1d1-2bd92d82a96si1119654a91.38.2024.05.21.03.34.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 03:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184810-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-184810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184810-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 AF84728231C for ; Tue, 21 May 2024 10:34:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A7F873527; Tue, 21 May 2024 10:34:17 +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 6F4616EB6E; Tue, 21 May 2024 10:34:15 +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=1716287657; cv=none; b=gOKxhJ1SGdeO9Gx8pa1jgAbJunveTWZ4AEe8Z3HfkEfZTVBEZ6RnNnVhvtl+rWjpW7IzKlZmlLHBt+Xmv0ZyOUoRuLsra30eVjvR7eHOla4jg4hAVStoYP+qjUmV6f4OkYHKJ2rCz2fV1lXywFg2Y+sbwodAcv1odIa7vEKNLDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716287657; c=relaxed/simple; bh=Sp/7Txf6djQgFui6IajQOXTl4EvU56xHjCMGKqvCCSA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=jI5h6w+1IWXhsZRIxxgGvfd883wffgTKgLG+FSV9xMNFaxs5JvtmV6wyTeZJcxHjBZtxsp7wJ5HE06OXH7V3IdZpyAlRw+UzSALDRogbvbGeAKNfORc0DYo/EuefwMoCerMzxjVE2x5GjPi7oEWIOe1dER9Rcg6Dil9Qhny/mNU= 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 AF2101A09EF; Tue, 21 May 2024 12:34:07 +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 B4E941A099B; Tue, 21 May 2024 12:34:06 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 10CF81820F77; Tue, 21 May 2024 18:34:02 +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, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v3 1/2] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95 Date: Tue, 21 May 2024 18:13:35 +0800 Message-Id: <1716286416-17621-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1716286416-17621-1-git-send-email-shengjiu.wang@nxp.com> References: <1716286416-17621-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: Add compatible string "fsl,imx95-xcvr" for i.MX95 platform. The difference between each platform is in below table. +---------+--------+----------+--------+ | SOC | PHY | eARC/ARC | SPDIF | +---------+--------+----------+--------+ | i.MX8MP | V1 | Yes | Yes | +---------+--------+----------+--------+ | i.MX93 | N/A | N/A | Yes | +---------+--------+----------+--------+ | i.MX95 | V2 | N/A | Yes | +---------+--------+----------+--------+ On i.MX95, there are two PLL clock sources, they are the parent clocks of the XCVR root clock. one is for 8kHz series rates, named as 'pll8k', another one is for 11kHz series rates, named as 'pll11k'. They are optional clocks, if there are such clocks, then the driver can switch between them to support more accurate sample rates. As 'pll8k' and 'pll11k' are optional, then add 'minItems: 4' for clocks and clock-names properties. On i.MX95, the 'interrupts' configuration has the same constraint as i.MX93. Only on i.MX8MP, the 'resets' is required, but for i.MX95 and i.MX93 there is no such hardware setting. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,xcvr.yaml | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml b/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml index 0eb0c1ba8710..d1dcc27655eb 100644 --- a/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml @@ -22,6 +22,7 @@ properties: enum: - fsl,imx8mp-xcvr - fsl,imx93-xcvr + - fsl,imx95-xcvr reg: items: @@ -49,6 +50,9 @@ properties: - description: PHY clock - description: SPBA clock - description: PLL clock + - description: PLL clock source for 8kHz series + - description: PLL clock source for 11kHz series + minItems: 4 clock-names: items: @@ -56,6 +60,9 @@ properties: - const: phy - const: spba - const: pll_ipg + - const: pll8k + - const: pll11k + minItems: 4 dmas: items: @@ -79,15 +86,24 @@ required: - clock-names - dmas - dma-names - - resets allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx8mp-xcvr + then: + required: + - resets + - if: properties: compatible: contains: enum: - fsl,imx93-xcvr + - fsl,imx95-xcvr then: properties: interrupts: @@ -98,6 +114,25 @@ allOf: interrupts: maxItems: 1 + - if: + properties: + compatible: + contains: + enum: + - fsl,imx95-xcvr + then: + properties: + clocks: + maxItems: 6 + clock-names: + maxItems: 6 + else: + properties: + clocks: + maxItems: 4 + clock-names: + maxItems: 4 + additionalProperties: false examples: -- 2.34.1