Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2840828lqo; Mon, 20 May 2024 20:45:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqh9AL13Q/6OxKaTF50xM6it2hqbvCXS2+nIVEmvdGyPaDJDJISk9DmJh2mRBLyDQDm/BDehZZKofdAaE2urYWVhowFUuWuKYXGFCsAA== X-Google-Smtp-Source: AGHT+IHYVZk0qJZNE4StnlP/GV+uDaj4YKS9zUqqPMm6H7i1gDQHCeb+zDspQ7ZgwwiLk76nHkeV X-Received: by 2002:a05:6a20:9782:b0:1af:ab0b:1c08 with SMTP id adf61e73a8af0-1afde1b6f80mr30360876637.46.1716263119324; Mon, 20 May 2024 20:45:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716263119; cv=pass; d=google.com; s=arc-20160816; b=bwr81SeThegcl6VQcOyTQL3b7v5mE/LqljooXKHLQDfpYw1yZAwhQ0vwVQzEYTCj9N Ft8qMPG9Cx15gtGvAipIimUk9cbsv3uRPjQ9vBr9y0xXWCVpPRVxupzwGOcp8KUX0pny h8G+g7ECpnDBIWY+Fqg3r1L3JvFhk2VsXPvZxjbKuy8tN0jTMWAf9ELY6PyJVvy4PBrE 8LF03B/XiyVoHIrP+ypu5ykzgXXyIZZg2iOV7psWEi3JRUDaYqABVrnEvSalIlfQkfyo phdj7cVCPTFNkHlDmQumV2IRM5JcB/CMzCV4H+KSzhUfGGpUDNUg5BD7xLmV5u3LO5Gd gHng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=92eG1R1+dxxcxoqnquEsD3l0yRmXMuTseq3SVxvuVCU=; fh=bkaRPNVkYzYgen1PRefxxeN9nWgqA1B6FRl5Nq5uF0M=; b=dB69ppTpqOTTBeP8cs7+K+RDTP22Eqb6Pz669DwDcM0z/o0xomwJq0bfG5MU6S5xl5 aPIHnRbIxy/Ig15jNrxoW6L7cTMd8fpIaY5QqWeaCiqLXYNrk5C9cehNWZ8gZkv0+FXV efboIj5CQKOrNvNVdZJF/pU6zz3pL7USSjN6ZvwNb2zLrJjPraVVyMVSpWtrKmyFiChS hm/Lx6iaj0gVEgzURAOvGRCmo9qliZTjD19O4azp8/lZrfcI69I1B5KBlyePD373OYQc 1h/XfnrRlu9s6knlBv/npfd7X0NvHTk8rc/UKGpTT1ms3wP+F83ODoXSrWSQsp/lBPYJ X6ZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a01OiOFJ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-184469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c160970si36918755ad.546.2024.05.20.20.45.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 20:45:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=a01OiOFJ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-184469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184469-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 8A564B21A25 for ; Tue, 21 May 2024 03:45:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4398A20B3E; Tue, 21 May 2024 03:45:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a01OiOFJ" Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E07BD1F959; Tue, 21 May 2024 03:45:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716263106; cv=none; b=AFKlRTGVGh86bQ+a0wgseWMP5c1yf6F33UNb5H6HdZidUxo6W8XUJEO5jkUSoO8yNpDKAJcIVokkxOpNsB2ADgUQQ7zEP/Ne/WEd/y2ANgWDM6EUym5DWuXRo+tRqOAv6HnQQ4u+/rC6E/+8HGu/sV0wKE1uOqbKLci8KP13P4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716263106; c=relaxed/simple; bh=nT/UcWakmvnOxHqHJxkCVjPajiuq5sgmjr6Gdx1E7do=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=XzIDVfJXSwJBfKyqhCF5T1mWf/aHUjsro8y8YwXkq7i3sTzX0j1BgYk+ILR2+jZMtisNt/qWrFLwX2EtzXbasNR94TVe++rxnYVkXnoZwVNv+6dDdaSOdjPsIa/bwNkvwv1vJLzo69q2yY29YJZcPRvjNw84f4B/Vk1oTzS9DZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a01OiOFJ; arc=none smtp.client-ip=209.85.166.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-f175.google.com with SMTP id e9e14a558f8ab-36c7bd2586eso15692495ab.0; Mon, 20 May 2024 20:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716263104; x=1716867904; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=92eG1R1+dxxcxoqnquEsD3l0yRmXMuTseq3SVxvuVCU=; b=a01OiOFJ9gwaAmH8yggz5HpfbI0RwovXKZf5gn+31dT0RBEYFCJ1eFfWtAxaOGRaah 2kOfWXECFxBPBToAPhLG2snWA78k57Snc3TI7WAiZkV66a4Zb8t/J5tGt3DGYtgto6fK PqyvaO4AzCTNPRoyvQZeRn+dl0aIlzd+EoEYmZ5+zDOie1GUZ6qbInB1Q8j/+j1gPQt8 sFXAl/kzOATR1X9wyf4dg6W4zExMWE0T8BpMcoz2pR1Chtuy/5Q717iX/OFHY2qohMrB YQfTPEU9nfosb560QNybgvyfDcBVRRX4bcr6oOTF69Uumi26U/rcN+6ReHYqO9PJkxhn jGnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716263104; x=1716867904; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=92eG1R1+dxxcxoqnquEsD3l0yRmXMuTseq3SVxvuVCU=; b=gcM2QZS+YlCMbSnzlREwIkQAiWZoXp4zwnp0qgk8I2YQ7V5h3FgvR/+e5AXDamlAfT +S3frHDlaOXFrP9biF3yEQPqnGlSem9GW1C0R2rAhXcoREllCeHrXBQ8lBrGylUvd/zu jtZYxZ6Omwo/x9/Po9e3t3p3yzI8Q0zIw9A/4UQbCfz8v73JutbTPWxXbZdaYJXPAZ/n j5WVTI8iYlFdwrCRby0VrI1PIrieIMNtw9KLeqPJiO0d20BjmCJeHKjnXBbi72OSTZjb Xl0R3MeYm0Es+M2Su1dfRcTywaYb+9+Uf3sSa3u9ynR8Y0uYT+e8akenX1H2LXb4chU0 +IFg== X-Forwarded-Encrypted: i=1; AJvYcCVfGUX31sQ6IFLXgAwIs9LuEGzEjWwm5iYnY3YI1LYt6eXqsEwt+cvNPCYXTVbSNhVFBgEDZcyHoYvoH9HjMX8uRSLjWE5jGmImSOuLuLS7eKMG/yPYYTLAiEsDEJ5uBx7GCiI8YuDy/8ti7U3rsLEmCAX05t0mXzBF8piH/npc5eJv24tL X-Gm-Message-State: AOJu0YwJtg8J5kRuOhrDkKUV/79fBoD8RZKs3l7OFQtB6GMAbMIsmV5F V2KZ9XocxqlqN+4bIJIN0ARJquuQG/8wrZXNpAy9YqkK1YYLlV6YS6sIvwLPiTI5jI6cGqyPCIb FNpkfw/XU/9lS4i6KbbguDfWzp1nRyCWc X-Received: by 2002:a05:6e02:1caf:b0:36a:1f1a:f797 with SMTP id e9e14a558f8ab-36cc1501d23mr336656205ab.32.1716263103909; Mon, 20 May 2024 20:45:03 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1715656329-8061-1-git-send-email-shengjiu.wang@nxp.com> <1715656329-8061-2-git-send-email-shengjiu.wang@nxp.com> <20240520161602.GA733483-robh@kernel.org> In-Reply-To: <20240520161602.GA733483-robh@kernel.org> From: Shengjiu Wang Date: Tue, 21 May 2024 11:44:53 +0800 Message-ID: Subject: Re: [PATCH v2 1/2] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95 To: Rob Herring Cc: Shengjiu Wang , lgirdwood@gmail.com, broonie@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 21, 2024 at 12:16=E2=80=AFAM Rob Herring wrot= e: > > On Tue, May 14, 2024 at 11:12:08AM +0800, Shengjiu Wang wrote: > > 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/Do= cumentation/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 > > Leave these here and add pll8k and pll11k. > > > + minItems: 4 > > Keep this. > > > + maxItems: 6 > > > > clock-names: > > - items: > > - - const: ipg > > - - const: phy > > - - const: spba > > - - const: pll_ipg > > + minItems: 4 > > + maxItems: 6 > > Same here. > > > > > 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 > > Drop all this. > > > + 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 > > And for this case, you just need 'maxItems: 4'. > Thanks for the comments. I will address them in the next version. Best regards Shengjiu Wang