Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp256688iog; Wed, 29 Jun 2022 23:36:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uh2yr28ACvXQa7zgQc5lDU8m3zc17dNZPn+FQZ6ivh2w7CY6+UREwBWVCqGsJFE06jTvHA X-Received: by 2002:aa7:c486:0:b0:435:5d50:ab39 with SMTP id m6-20020aa7c486000000b004355d50ab39mr9607135edq.104.1656570983907; Wed, 29 Jun 2022 23:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656570983; cv=none; d=google.com; s=arc-20160816; b=VdX2PFSL2XfZMnqDZISKuqsgm9Ava6cG2vFMQrIGQ6AL5zIhtyZ4yK+P/aEDTo/8Zb T+O9GHApsxApKPU13P8mRxCw/Huxaji5mW3JN04xHW4BaTsvgKASGoILwDfKx97mqSIs F8aTY/wYTMZVY8oDTwKEc3VBOPBcE9Xjo9U9bXBLMnH1R3c/Bh3+dI0M5J7/e34JHe16 IxFzy68dYjEeQv5dt3BG3HSXO5cznpmMOVBTreUmKUZuVC2k9KhPIqHJpDtq7Kc0xgZz /tdFlsEAcPZn+3pzsJ+6oKmf11txKsG3h3vvjNHq2t7N+ggS0Bk+astatw3vB7v4itdk kmXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=o3WttwztSobMjsdKzj+qoxIeCMO3iNkEtxLFOOEmIcA=; b=C//FM6pnxk6oCyk8iFb1E4kIVXj8PrmlketriUabi7IE2q27elTJvEXxGewQcwL92v uTw5bEZkRQhAcmJKnmIw+mmWOhuHVA3ZrgRKtESr0C8hLa0aDDS0d+ruMyISvE9kfkl2 LFFvrKZkvad0MpB1EO4+VfETt2V2zo40We5xlj8SwjWf3fRmtbp41DbwX0VzrnNSuIPW YuJtsU7y+WKUfU/2pCiFDcG6oK/6hWE+IVKHiX+5lMBUpBDadFR9aHYVfdv01PGDJxla quYQx4tdM1ql8MIXrMewbXKtXsJ5RxcLT1Hi67pOK6m48keMrnx0L2GLf0E0hP2nDqhz IO1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a508e12000000b004357cc6877dsi23280246edw.202.2022.06.29.23.35.59; Wed, 29 Jun 2022 23:36:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230428AbiF3FyR (ORCPT + 99 others); Thu, 30 Jun 2022 01:54:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiF3FyQ (ORCPT ); Thu, 30 Jun 2022 01:54:16 -0400 Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B143C2BB27; Wed, 29 Jun 2022 22:54:14 -0700 (PDT) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 013051A09D4; Thu, 30 Jun 2022 07:54:13 +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 B84B71A06F8; Thu, 30 Jun 2022 07:54:12 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id E7FC2180222C; Thu, 30 Jun 2022 13:54:10 +0800 (+08) From: Shengjiu Wang To: nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, shengjiu.wang@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, robh+dt@kernel.org, krzk+dt@kernel.org, devicetree@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Add support of two Audio PLL source Date: Thu, 30 Jun 2022 13:39:08 +0800 Message-Id: <1656567554-32122-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org i.MX8MQ/MN/MM/MP platforms typically have 2 AUDIO PLLs being configured to handle 8kHz and 11kHz series audio rates. The patches implement the functionality to select at runtime the appropriate AUDIO PLL for root clock, if there is no two PLL registered, then no action taken. Shengjiu Wang (6): ASoC: fsl_utils: Add function to handle PLL clock source ASoC: fsl_spdif: Add support for PLL switch at runtime. ASoC: fsl_micfil: Add support for PLL switch at runtime ASoC: fsl_sai: Add support for PLL switch at runtime ASoC: dt-bindings: fsl_spdif: Add two PLL clock source ASoC: dt-bindings: fsl-sai: Add two PLL clock source .../devicetree/bindings/sound/fsl,spdif.yaml | 4 ++ .../devicetree/bindings/sound/fsl-sai.txt | 3 + sound/soc/fsl/Kconfig | 3 + sound/soc/fsl/fsl_micfil.c | 41 +++++++++++ sound/soc/fsl/fsl_sai.c | 54 +++++++++++++++ sound/soc/fsl/fsl_sai.h | 2 + sound/soc/fsl/fsl_spdif.c | 57 +++++++++++++-- sound/soc/fsl/fsl_utils.c | 69 +++++++++++++++++++ sound/soc/fsl/fsl_utils.h | 9 +++ 9 files changed, 237 insertions(+), 5 deletions(-) -- 2.17.1