Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2438533lqo; Mon, 13 May 2024 20:32:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYLwLJOTlEirB3iGJtpO8nZgT/GbWjwXS9MRX1CZDotlZlx+PojrtumewQqRYXvJSGqaFmL8TSCJhR8SBFABuUiDugzz0zq/ZvuNNzlA== X-Google-Smtp-Source: AGHT+IGym7/riXU84jlRJLmZdsBkYnBI0NxsXiFVh1c+RHnW354eCBUd7ufbfYSIOWLbwLaZxr+O X-Received: by 2002:ac2:5df1:0:b0:51b:4204:2f51 with SMTP id 2adb3069b0e04-5220ff71f7dmr7559226e87.8.1715657521989; Mon, 13 May 2024 20:32:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715657521; cv=pass; d=google.com; s=arc-20160816; b=KBsm9TpdWdfH3QHdvnw544l0X3PohcivQPcv6ROJaJLEkAWXlBUzEkARG3kj176zzL PeNWrhRlqspnVab0QjmjbZ4QKsu8Mw6auVsmEYwdx7pwM6yLnCMm3qc6PVej9E0N8mp1 P32jS2RCXK1k53flK7BANEvr64oyrClk3koAHZp3MpqkBd5wuBX1RtRevxwtt+oweWFs wAGL0FsCRTa+oLUpze1C/BqDTN9OZKXTVFvaSeNMyFTG4XpuqmzCFiuMLhubpUViYIx/ Kocaz7g0Irth3ZfLict0BOAyTUjPJ3Mb4Kga3CZ3ti4s5/CuxoUX9BlN4R8zCatsgYYY ALfQ== 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=BQKbdaFRWd/gY1F1IGVDNU2RWSzT6pavvkeE+2Hye/U=; fh=GPNlrx+KEFkEzYtXZ6NEdM3tzm0co+FAcNkYSnNdsYQ=; b=y9EK3djSAbVjMWvV4Z2u0P5yQ04vLEM0n2chbBhCI1iLVjbKF83O9mmtrEzcOVBHZv 0rJA4XdKOBV0t8UKdSGiI3tGbB4/Z/IktOA8ST5rA4cQD2emoSZbVsTN+EONzl38LEO6 RWJ45UfwePaaNUnhviL0phfw0pkJ4fpBVEzd1onOhrpdp0zyEYzteaF3IT1gHnUpxntM aAJijULoZUWxPogvZuVPPpSO0uGafHEi3Lo6XKAy3/W2fGV8C7s8z2qamYEnCK6/gaoT DEbTELNFP5NEQnjRB/f62CJB9bsWnaHDMBwSR92J7Vd9NQNQ1WojwUMxn1hI4c3YMr+A R8kg==; 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-178293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21de5si597930666b.353.2024.05.13.20.32.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 20:32:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-178293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178293-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B10A61F229BF for ; Tue, 14 May 2024 03:32:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B8DE171AB; Tue, 14 May 2024 03:31:44 +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 2EC3C11725; Tue, 14 May 2024 03:31:41 +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=1715657503; cv=none; b=YH0ku0VQb0Ge2FzQDQjFhRyrOta+RxPxEM/stBEZQWQ811oYptSEMghM10apW+oxxzHdvX1jnIYqiDgzClRt0UluwS7J3DKPxkR0n9J89YnGCHXGXzwTXSMC7ONDjv+90KqXUyGV37OqW8MwuQAOcQZmmGhTp3Tf4vsqRsWmxXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715657503; c=relaxed/simple; bh=uZ4ArMp3uQ9mQWoPEupZmFWXJPh2k6MA5dsgzfDsY8o=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=IpgZoXGU62xgxbdGbqA80ivEEWVNPfVwdJweRSlOLGYYLp68x1bHrzmeQ+4bx4rF9P3TQH4YIQsmdtqquN5Fo8LkP4U81ttxxohoI04WCMBeujl/frKjXocOZ6SomjXz8vseCwXSXIcJ7KPABlsfbb94HXv7NU/mof/yYFBRM9w= 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 8D9E32017D4; Tue, 14 May 2024 05:31:40 +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 EE4582017CF; Tue, 14 May 2024 05:31:39 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id B90D0180222F; Tue, 14 May 2024 11:31:37 +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 v2 1/2] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95 Date: Tue, 14 May 2024 11:12:08 +0800 Message-Id: <1715656329-8061-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1715656329-8061-1-git-send-email-shengjiu.wang@nxp.com> References: <1715656329-8061-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. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,xcvr.yaml | 55 +++++++++++++++---- 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml b/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml index 0eb0c1ba8710..70bcde33e986 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: @@ -44,18 +45,12 @@ properties: minItems: 1 clocks: - items: - - description: Peripheral clock - - description: PHY clock - - description: SPBA clock - - description: PLL clock + minItems: 4 + maxItems: 6 clock-names: - items: - - const: ipg - - const: phy - - const: spba - - const: pll_ipg + minItems: 4 + maxItems: 6 dmas: items: @@ -97,6 +92,46 @@ allOf: properties: interrupts: maxItems: 1 + - if: + properties: + compatible: + contains: + enum: + - fsl,imx95-xcvr + then: + properties: + clocks: + items: + - description: Peripheral clock + - 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: + - const: ipg + - const: phy + - const: spba + - const: pll_ipg + - const: pll8k + - const: pll11k + minItems: 4 + else: + properties: + clocks: + items: + - description: Peripheral clock + - description: PHY clock + - description: SPBA clock + - description: PLL clock + clock-names: + items: + - const: ipg + - const: phy + - const: spba + - const: pll_ipg additionalProperties: false -- 2.34.1