Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1639452pxp; Thu, 17 Mar 2022 13:20:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsZLoYYd6zMCx11YzxHaHVNYK6zvvCz2lqaXYoJllGw2Blx7x0DYadarImsZ0tbcDN4Czw X-Received: by 2002:a17:90a:5407:b0:1bf:43ce:f11b with SMTP id z7-20020a17090a540700b001bf43cef11bmr7363021pjh.31.1647548438628; Thu, 17 Mar 2022 13:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647548438; cv=none; d=google.com; s=arc-20160816; b=H0xChGpa87MhqaezxwLjVbmW0SnKsJQrHVv2HIb41ZniYsbesqKJvTF4XzDw6D9dZM I2DpOgXnb1mHOC5PSvGXICIjH54vag29WMcqQudeG2+Or8SNJ/bz0RN059VYmVsDMmAh 8PUmJrvbcgasYmSayTi72poOhVOxi8jAc4BuUoueiwHfPzyLA+k8Mjw2lJFJh5r+NkSO ivZ1m4Pwm4SEFS2Shu20Wrg8heF0Pccw2PcUsbpdxx7MMSSjYzbfnVp1FraMhPcFXHy7 0qevWmFYcaz/GVhZW8WNIvkW7C8sGcjp04KUdsStNe7OJthizCa7TzioEH4AzMqNe+J9 jr6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mhtGwWCIe0yaNdM3Gqj8SrJNCYu3I1/fMs1eTrSkM30=; b=SyMOIC/RN5Je4DPU4O7ft1rZOURwe4Oi19qw/dATfM2EHHJtH2arUYFzZfs0M5Y1hM W+xfprvVSF7/7SE2BqhFS+Nl58oaaGLa6pEkdUMx2nMba+kdHhA6Oh5h+gWtRq9PjAXx T60cDP21tFIGglfJ263Iv4+H6IDbQvGfpoS+Q4Hhx9O5zgLdiOKOJlnZFetygbimvcXS TWglDVZt67HHk9ciGB0Xa8LBOSTyYL6bhPYaZzXRY26ZjHeovtnpwZqyOqMjr7IdhOOK xGoMu9j00JMVxBxV81fbEB/XCfI9n0BjFA0CwX/ItLHMqI/WyTaWPFrs53rS8682mW/V o7eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=N7TCbvr7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h1-20020a635741000000b003816043ee8esi3206056pgm.131.2022.03.17.13.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:20:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=N7TCbvr7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 495872A33B1; Thu, 17 Mar 2022 13:01:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237588AbiCQSt2 (ORCPT + 99 others); Thu, 17 Mar 2022 14:49:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237584AbiCQSt0 (ORCPT ); Thu, 17 Mar 2022 14:49:26 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A264C11BE52; Thu, 17 Mar 2022 11:48:08 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: adalessandro) with ESMTPSA id ABF301F45A25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1647542886; bh=0WzZgN9aj0s8HEM+nPIbGUukn4MTB8wYqvpInAw1fPY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=N7TCbvr7Xn1NBsfZdq5HFid3scc3xT6XYCe80AU9aFufOzzv5jFqfCPumrdJedHmb AVdzMfFYrR64U8BRyKzhAICQSO2TYQaFDyR1MbtHBE9RBxaL5C52+Q5yccbYmi/iBS M+0vYNRJonT0VJpJFR9lEp+l1lTLDSIEgovl4QFcuBiQMqu+GmnJhoypmm5ZI/Wr8w IM0GP0iCzWyeFRcAdktirYF7fHhcuzYwOy1+dMUB+bV4jBlrJY2I56o4YZJlgnx3Y4 hTQhgxW9U30DTtqNcAlJp+lS+QRjygHO/80E+xJse+1btt2BeUvoqzmqbvFgirMlm7 58oLeFJuq3s6Q== Message-ID: Date: Thu, 17 Mar 2022 15:47:56 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH v2 2/2] arm64: dts: imx8mn-bsh-smm-s2pro: Add tlv320aic31xx audio card node Content-Language: en-US To: Fabio Estevam Cc: Linux-ALSA , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Sascha Hauer , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , NXP Linux Team , linux-kernel , Mark Brown , Krzysztof Kozlowski , Liam Girdwood , Michael Trimarchi , Rob Herring , Sascha Hauer , Shawn Guo References: <20220210134049.32576-1-ariel.dalessandro@collabora.com> <20220210134049.32576-2-ariel.dalessandro@collabora.com> From: Ariel D'Alessandro In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 Hi Fabio, On 3/10/22 09:29, Fabio Estevam wrote: > Hi Ariel, > > On Thu, Feb 10, 2022 at 10:41 AM Ariel D'Alessandro > wrote: > >> +&i2c2 { >> + clock-frequency = <400000>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pinctrl_i2c2>; >> + status = "okay"; >> + >> + codec: tlv320dac3101@18 { >> + #sound-dai-cells = <0>; >> + compatible = "ti,tlv320dac3101"; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&pinctrl_dac_rst>; >> + reg = <0x18>; >> + >> + ai31xx-micbias-vg = ; >> + >> + HPVDD-supply = <&buck4_reg>; >> + SPRVDD-supply = <&vdd_input>; >> + SPLVDD-supply = <&vdd_input>; >> + AVDD-supply = <&buck4_reg>; >> + IOVDD-supply = <&buck4_reg>; >> + DVDD-supply = <&buck5_reg>; >> + reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; >> + >> + clocks = <&clk IMX8MN_CLK_SAI3_ROOT>; >> + clock-names = "mclk"; > > The clocks and clock-names properties are not documented in the codec bindings. > > Also, the driver does not use call clk_get() on this mclk clock. > > You should drop the clocks and clock-names properties. The sound card driver is calling clk_get() on the codec's clock. See sound/soc/fsl/fsl-asoc-card.c: /* Get the MCLK rate only, and leave it controlled by CODEC drivers */ if (codec_dev) { struct clk *codec_clk = clk_get(codec_dev, NULL); if (!IS_ERR(codec_clk)) { priv->codec_priv.mclk_freq = clk_get_rate(codec_clk); clk_put(codec_clk); } } Regards, Ariel