From patchwork Wed Jun 26 14:22:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Kochetkov X-Patchwork-Id: 13713117 Received: from fallback3.i.mail.ru (fallback3.i.mail.ru [79.137.243.69]) (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 CD944185E52; Wed, 26 Jun 2024 15:04:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.137.243.69 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719414271; cv=none; b=L972OlR07JWHakHblKGswLMrx+1L2gYZF3HD2YfYEQcRA2JecJbSKcw3NiTT1cRDDb7rj7iTepZCv4MTsFb6NbqkC4yWoddihwTxPNGWQyradGvpGceKvygEMOXJew1+cxnCJ2UcTIn7V1xHolES3RBBVy170I73kVSdGh2mIpM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719414271; c=relaxed/simple; bh=OeVyeBAKzs/4y1bxzS5DdMIxMZ2InGgIDPXxr9igdvo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q+Ej2c8+taTQNfYRcqqBXozPQpomW9UttSQ8P8DSuixPvuy5OcKxLPGWVobmvYxd3j7DN6GVMwJ6+yJ4FA2VFQDpflWBlqhl0ZWD3/c0bfxDIzX5wC6NfY3Eq0EJWAJu8sqeziEEM2wSVQUTmzQjmAoyfhDgViHkZzspQ/vDvNg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=inbox.ru; spf=pass smtp.mailfrom=inbox.ru; dkim=pass (2048-bit key) header.d=inbox.ru header.i=@inbox.ru header.b=gTcmVdyJ; dkim=pass (2048-bit key) header.d=inbox.ru header.i=@inbox.ru header.b=WUa+W9pu; arc=none smtp.client-ip=79.137.243.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=inbox.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inbox.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=inbox.ru header.i=@inbox.ru header.b="gTcmVdyJ"; dkim=pass (2048-bit key) header.d=inbox.ru header.i=@inbox.ru header.b="WUa+W9pu" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail4; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=dxF648gxj3B9Omidvm2whmJGIvDn08s3vO+mWJ+BXng=; t=1719414269;x=1719504269; b=gTcmVdyJp3oQTcBT4Egulu5NigF72Cs+xW9WkgcjJRa0Bcn0/iPkkeh0OlDFEZgUHDmkyoXYhL4wvEjNxz/cIhUexdvakO5A/RN2tcfZj98CXPUK2Dto42L5MzOPR+mYFWwrgY1qitXq+SKhhG4YNrtnIuyOxoVrKDTSPhBbazszgO8f7xAHxV+3MiYuKsXm2WOs0cuEruhRneNUn8M0Nha6OnLLgH83j9RxaAI8tqFSr5cnp+uSxTw4oAVY+VnyVhHuhRXuIR3py6wB5pgwE7pFikTEnPnNw15/MIYNa/T96+7ierhWlUANDG1KIOQW1LANF5cTIGJHaDEgouuOwg==; Received: from [10.12.4.33] (port=51466 helo=smtp58.i.mail.ru) by fallback3.i.mail.ru with esmtp (envelope-from ) id 1sMTYZ-005Rj5-EB; Wed, 26 Jun 2024 17:23:31 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail4; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:From:Sender:Reply-To:To:Cc:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive: X-Cloud-Ids:Disposition-Notification-To; bh=dxF648gxj3B9Omidvm2whmJGIvDn08s3vO+mWJ+BXng=; t=1719411811; x=1719501811; b=WUa+W9puE/BJ3jbA4UtczGYRjnVAyNnmjE71xrqYkLfpqjQ/8lZyjYh97d+rlSk4E0F7P8FbylL QWVmPNMYsBfcJVxvVVOh0aiiUpZSIUZ7AEc/Cka7t+JJwSXXwhuyZNZDDb7HiykkXEGY7xCB/YiOP yWLJa5sHLnIXS9A1DLeZTdG7/fwqunjNdxfNUUJkBfm6/9xbWmuRWDw7uCFGvZtMc8+WRe5eOEiTj j2VD2KQGFF4hJc2i6t+7LyMjKb+gBHVVRr3QZ39aqH0EN+VwdDz3giy6mvM3R4ukT9pev6/w0nwce +aTjFz2SD+fXAyrEevWKNde9vQqrgg8dhMPg==; Received: by smtp58.i.mail.ru with esmtpa (envelope-from ) id 1sMTYJ-00000003pHy-2fyP; Wed, 26 Jun 2024 17:23:16 +0300 From: Maxim Kochetkov To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , John Hsu Cc: Maxim Kochetkov , linux-sound@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] ASoC: codecs: nau8824: Add master clock handling Date: Wed, 26 Jun 2024 17:22:55 +0300 Message-ID: <20240626142259.21608-2-fido_max@inbox.ru> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240626142259.21608-1-fido_max@inbox.ru> References: <20240626142259.21608-1-fido_max@inbox.ru> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailru-Src: smtp X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD99270B3E0DC24D31F2445BAAF206D7ABF33F1671F7E087A36182A05F53808504041D6E07DBB3F94CFA6D5EE0DB6E1EC8D3AF138FF561416A9B9143B39FE1528AAE4D98B9586BF5A92 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE77545ECFDF1E157EBEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006377A06FA5CCF78F9BC8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8F61A00B72C049CCF66CD5431CE238EE84494095C9A0588B920879F7C8C5043D14489FFFB0AA5F4BFA417C69337E82CC2CC7F00164DA146DAFE8445B8C89999728AA50765F7900637D9CFB327BC390E24389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC886A7C529F68B8E5CF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B9149C560DC76099D75ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-87b9d050: 1 X-C1DE0DAB: 0D63561A33F958A528204E5D6A8A57CF5002B1117B3ED696814966D8306C0F6222DFD5397F446790823CB91A9FED034534781492E4B8EEADEF0AF71940E62277C79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF77DD89D51EBB7742D3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFA14E7758F908F505FE6BABA54C349B0C2651CBCC52A9A36505E3A1517337EE7E66971B16C155F0C9443676941C84C1C8E53347EC12B50AB8236B3925D264D5F72DC27AD3CA7DFF92E4FDFA4A036B0C3902C26D483E81D6BEEB84411BD425175970A7FB4ED9620804ADE12199CE9660BE X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojLaF05p8kWopjbj2GBkGIOQ== X-Mailru-Sender: 689FA8AB762F7393C6D0B12EA33CAA9B09F2DD876D2B05C8A935B69EAD796821D9A9B7A2022D2D4390DE4A6105A3658D481B2AED7BCCC0A49AE3A01A4DD0D55C6C99E19F044156F45FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok X-7564579A: 78E4E2B564C1792B X-77F55803: 6242723A09DB00B44D426FEC3FC5D1C73B55CE1B3528F6ACA5C36130BC0CB103049FFFDB7839CE9EA0123DB20CD7599C04A9CF4B678D01C5BFCC030D5ED8914D63AC828BC1A299C0 X-7FA49CB5: 0D63561A33F958A56D56E682764620F158AA222922CF094973103714A208CDF9CACD7DF95DA8FC8BD5E8D9A59859A8B64071617579528AACCC7F00164DA146DAFE8445B8C89999728AA50765F7900637436E42DEDF9DC02F9FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3D6B3BA020039D4E8CC7F00164DA146DA6F5DAA56C3B73B23C77107234E2CFBA522CA9DD8327EE4930A3850AC1BE2E735FC839A7D10C5E1E9C4224003CC83647689D4C264860C145E X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojLaF05p8kWoowxcwLI9VNjQ== X-Mailru-MI: 8000000000000800 X-Mras: Ok Use master clock "mclk" if provided through device tree. Signed-off-by: Maxim Kochetkov --- sound/soc/codecs/nau8824.c | 21 +++++++++++++++++++-- sound/soc/codecs/nau8824.h | 1 + 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/nau8824.c b/sound/soc/codecs/nau8824.c index f92b95b21cae..c66b0a5a7448 100644 --- a/sound/soc/codecs/nau8824.c +++ b/sound/soc/codecs/nau8824.c @@ -520,8 +520,15 @@ static int system_clock_control(struct snd_soc_dapm_widget *w, } else { nau8824_config_sysclk(nau8824, NAU8824_CLK_DIS, 0); } + + if (!IS_ERR(nau8824->mclk)) + clk_disable_unprepare(nau8824->mclk); } else { dev_dbg(nau8824->dev, "system clock control : POWER ON\n"); + + if (!IS_ERR(nau8824->mclk)) + clk_prepare_enable(nau8824->mclk); + /* Check the clock source setting is proper or not * no matter the source is from FLL or MCLK. */ @@ -563,16 +570,22 @@ static int dmic_clock_control(struct snd_soc_dapm_widget *w, struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); struct nau8824 *nau8824 = snd_soc_component_get_drvdata(component); int src; + unsigned int freq; + + if (!IS_ERR(nau8824->mclk)) + freq = clk_get_rate(nau8824->mclk); + else + freq = nau8824->fs * 256; /* The DMIC clock is gotten from system clock (256fs) divided by * DMIC_SRC (1, 2, 4, 8, 16, 32). The clock has to be equal or * less than 3.072 MHz. */ for (src = 0; src < 5; src++) { - if ((0x1 << (8 - src)) * nau8824->fs <= DMIC_CLK) + if (freq / (0x1 << src) <= DMIC_CLK) break; } - dev_dbg(nau8824->dev, "dmic src %d for mclk %d\n", src, nau8824->fs * 256); + dev_dbg(nau8824->dev, "dmic src %d for mclk %d\n", src, freq); regmap_update_bits(nau8824->regmap, NAU8824_REG_CLK_DIVIDER, NAU8824_CLK_DMIC_SRC_MASK, (src << NAU8824_CLK_DMIC_SRC_SFT)); @@ -1510,6 +1523,10 @@ static int nau8824_component_probe(struct snd_soc_component *component) nau8824->dapm = dapm; + nau8824->mclk = devm_clk_get(component->dev, "mclk"); + if (PTR_ERR(nau8824->mclk) == -EPROBE_DEFER) + return -EPROBE_DEFER; + return 0; } diff --git a/sound/soc/codecs/nau8824.h b/sound/soc/codecs/nau8824.h index 5fcfc43dfc85..d8e19515133c 100644 --- a/sound/soc/codecs/nau8824.h +++ b/sound/soc/codecs/nau8824.h @@ -434,6 +434,7 @@ struct nau8824 { struct snd_soc_jack *jack; struct work_struct jdet_work; struct semaphore jd_sem; + struct clk *mclk; int fs; int irq; int resume_lock; From patchwork Wed Jun 26 14:22:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Kochetkov X-Patchwork-Id: 13713116 Received: from fallback3.i.mail.ru (fallback3.i.mail.ru [79.137.243.69]) (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 CBF33186E3A; Wed, 26 Jun 2024 15:03:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.137.243.69 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719414238; cv=none; b=kWCghTwrS86IxJK0jD0LlvYEbmQP4esNXlsA0B/I6wqNKLAnGJ6vM5rBnMukE1rtzGoi4poP/XZzdrDCeZAedZTzK3kjZbe6vPEFH2sAH7IlibwVSnH0K3LcUkm5s4bfgQR3V3mlCXEqT132i9+3lZ81t9LPCn590O+CbDftoJA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719414238; c=relaxed/simple; bh=CCYJOjVFV72eQ++meXn+5CmTr90D7pypumqlYRG0TRU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a9qP+ye0cJBStbj/ecYyEkCXEqfJ+p8CNSrwVPdINIx0tBbeLw5NhohwVQSPljXk1fJPjuJHrMSjBqPvtjXFkSV7IvE7M37qeWoQgIWW1AWZhsEjiWERez+W/Y8kAZmZjOJVzkEoiiSeI03+X6GycPM8KKEw0BwyOIGnthdCejc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=inbox.ru; spf=pass smtp.mailfrom=inbox.ru; dkim=pass (2048-bit key) header.d=inbox.ru header.i=@inbox.ru header.b=v9C5Qe0s; dkim=pass (2048-bit key) header.d=inbox.ru header.i=@inbox.ru header.b=rKSUcZDP; arc=none smtp.client-ip=79.137.243.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=inbox.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inbox.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=inbox.ru header.i=@inbox.ru header.b="v9C5Qe0s"; dkim=pass (2048-bit key) header.d=inbox.ru header.i=@inbox.ru header.b="rKSUcZDP" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail4; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=tYxOvltrA30hHNMLKHjnacM9wzigGdQlst2vhd5Nm7Q=; t=1719414235;x=1719504235; b=v9C5Qe0sUmvlo4C2TSrqIrsQAE1u//l4fITuPpj2SGJ5jWtxhrRC1tBCZcpIQbdAstDFd+PJ5orcVpc1V86VUGCWXbM2zV+jqITnyvSLfXKMKQbG+q3Ce7+jQOgo9Rvt8+tYIKh+B7X7lNRywnx8hDsnUSTjxH4ChWoNJkUB5/0jotDTKF+7V+4FXBslJwEZ19+9NQ4qnDuumnNT1x32dMSjzrrpw+1KRNR51VFJ98ULyJceCedrkG3jKFferxCaFVUD5qub2qUN9Q3qsROWDDEO83gTXUe5acv7mbviZTIvZC/yGrTCWXhZINuaNBDMt5NDSTWbQFyXmWHt5zjV+g==; Received: from [10.12.4.33] (port=51458 helo=smtp58.i.mail.ru) by fallback3.i.mail.ru with esmtp (envelope-from ) id 1sMTYX-005RhL-Cm; Wed, 26 Jun 2024 17:23:29 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail4; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:From:Sender:Reply-To:To:Cc:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive: X-Cloud-Ids:Disposition-Notification-To; bh=tYxOvltrA30hHNMLKHjnacM9wzigGdQlst2vhd5Nm7Q=; t=1719411809; x=1719501809; b=rKSUcZDPnmE2yJst3fVcORpnOy7RdF3aLwJKf6VZN9LOgASlRfJZfkuiiFY96gBOS6yU+G7W6Ro XE9+y1yc8I0KPdAqgs7WLDa45mLgDfO9gI/144toBvxsbNYOEKzuyuIcC65cCYDSNTP0sWZDQGula Y1DijpSMbSoqNB66YPExKmgE9NY1Slq4VGC1YTZpp5l5LiMRwxta9GYR9ccGB7vR6TA5VVuxF+N0e lv/rEwKg617xAEiW7sB3l9nEhMkEJc8Bv6mNX1dFvfgJlZ1HLkyCn9vTfACLuZyfJXW5CZ+t+/szo cG3n89Kk+pPCO+Ii7ITzDskNyQ1C4TTtnwDQ==; Received: by smtp58.i.mail.ru with esmtpa (envelope-from ) id 1sMTYN-00000003pHy-1364; Wed, 26 Jun 2024 17:23:19 +0300 From: Maxim Kochetkov To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , John Hsu Cc: Maxim Kochetkov , linux-sound@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] ASoC: dt-bindings: nau8824: Add master clock handling Date: Wed, 26 Jun 2024 17:22:56 +0300 Message-ID: <20240626142259.21608-3-fido_max@inbox.ru> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240626142259.21608-1-fido_max@inbox.ru> References: <20240626142259.21608-1-fido_max@inbox.ru> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailru-Src: smtp X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD99270B3E0DC24D31F73B686AE539CEBFA1B46C6F320A82FE6182A05F5380850403DB3F8EBDA18B05BA6D5EE0DB6E1EC8D4C004C614E0EB4D0B9143B39FE1528AA66B8565FC0A35870 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE78CB87876C5D626D4EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637651D61939D0B3DD78638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8AAF5CC69E66E4A2C66CD5431CE238EE8B3A45A7657C38FD920879F7C8C5043D14489FFFB0AA5F4BF176DF2183F8FC7C0ECC8AC47CD0EDEFF8941B15DA834481FA18204E546F3947CFA486DC37A503D0BF6B57BC7E64490618DEB871D839B7333395957E7521B51C2DFABB839C843B9C08941B15DA834481F8AA50765F790063710E79982F6CB68F9389733CBF5DBD5E9B5C8C57E37DE458B9E9CE733340B9D5F3BBE47FD9DD3FB595F5C1EE8F4F765FC72CEEB2601E22B093A03B725D353964B0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E73525A4AB119743A3B3C4224003CC83647689D4C264860C145E X-87b9d050: 1 X-C1DE0DAB: 0D63561A33F958A5BB8EACFDE19A467E5002B1117B3ED696F9A99E012D8C49FDE41E333F9D1358D5823CB91A9FED034534781492E4B8EEADB30A456A8F293845C79554A2A72441328621D336A7BC284946AD531847A6065A17B107DEF921CE79BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF77DD89D51EBB7742D3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF467B3235B4E0BC29CC6E057EFA32E7B6585E8C317849DBA961A7401D5F07184C711F655CCE117FA3443676941C84C1C8837E7BC5D7BD9DE7236B3925D264D5F76AB564C9DC938C09E4FDFA4A036B0C3902C26D483E81D6BEEB84411BD425175970A7FB4ED9620804ADE12199CE9660BE X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojLaF05p8kWopNp5NE7WFt4Q== X-Mailru-Sender: 689FA8AB762F7393C6D0B12EA33CAA9BC05603238EDCBD8DA935B69EAD7968215B01829C1040620190DE4A6105A3658D481B2AED7BCCC0A49AE3A01A4DD0D55C6C99E19F044156F45FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok X-7564579A: B8F34718100C35BD X-77F55803: 6242723A09DB00B44D426FEC3FC5D1C73B55CE1B3528F6ACA47293E4A4445725049FFFDB7839CE9EA0123DB20CD7599C504289D98FC8FFB8A6507EA05958ED2CE6B89BAB6E96C80C X-7FA49CB5: 0D63561A33F958A57A1267E8E8685564B7030136389B16FA3981657EB93612D1CACD7DF95DA8FC8BD5E8D9A59859A8B6DA33821E755670D8CC7F00164DA146DAFE8445B8C89999728AA50765F7900637889750A55773577B389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC8BA7556051D6825FBF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA775ECD9A6C639B01B78DA827A17800CE797E1AC076310AD62731C566533BA786AA5CC5B56E945C8DA X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojLaF05p8kWoplaCnMdWWHwQ== X-Mailru-MI: 8000000000000800 X-Mras: Ok Use master clock "mclk" if provided through device tree. Signed-off-by: Maxim Kochetkov --- .../devicetree/bindings/sound/nuvoton,nau8824.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8824.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8824.yaml index 3dbf438c3841..232dc16a94a3 100644 --- a/Documentation/devicetree/bindings/sound/nuvoton,nau8824.yaml +++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8824.yaml @@ -23,6 +23,14 @@ properties: '#sound-dai-cells': const: 0 + clocks: + items: + - description: The phandle of the master clock to the CODEC + + clock-names: + items: + - const: mclk + interrupts: maxItems: 1