Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2125752pxb; Fri, 25 Mar 2022 11:32:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz5/HVAHSJtLB6mE3q8OTous8Qh9dKS6mSpPzlLQo881BkQ84VTxtHXN5Zqd8/aM+oqkAZ X-Received: by 2002:a63:3718:0:b0:398:1086:e8ec with SMTP id e24-20020a633718000000b003981086e8ecmr717101pga.498.1648233133382; Fri, 25 Mar 2022 11:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648233133; cv=none; d=google.com; s=arc-20160816; b=NnTHrtT/MsMO0YH4s9qX6X62NC+0fAxLOvSQ3UYnS6YxIJvKZr3Rub4jmAxV1QncDA emcaYG7lWnH4ksPeonmYogxesSnWW8LdHZHzrxXdvxmml+C4mqk5FCx1XP/Xu9CaUXBe T+l33pNVFRVum9XFuWxfjpHmK7wavN+BvOBvte8EqCwDKCx4Xs7WyqxF82c7aiQ2M/TV ky02DHphtdi9Kb9L5gn5o6HKBNCHCFNutfSWLAZvAvmPcpqeapzbAVIh1hoWB7OWnnfr Ikn8oUdedf6mejdwkvc1rtpOcbUPodnXNR24tNoY5blYeryuwEz0lngjkOK1/PrkzaW7 O4/Q== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=LvgzTPlLYfQ19sl3NkHQfvk9iLmbfBnPpqf/H3LhC0A=; b=gH6MdR43jPRsGyBY9cPJZTH+AB0BBg491Zukck4rlfYtGD6xHuAfz63GT2AU/cv3GL udU9Gm/sr0kjbHwEtlp16g3OSX4ZXsBQqlfx1M6K7v8Ggiv4D+PR4Mv5MwjZh73djm+a 0BEYrVdc4NsecPVpQtDxyAp1Evin5tH2ErnijpPh83Hiwb/tF/Iak8szJHKZ9vf+sd/I jAdNAAZiCm5mqAWTenHeBkfcXbaD/O9M0LSgQGshcevMXqEqy4j8BLOwKMzK/mZe6/i1 RjrRhf4D3ZNN6Cosy0qtm3DfqTT/SYTTTyqCBD6nO13sw8VGcjxcAZ/30Pz8hL4GehvJ wxxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lv5yRVc2; 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 h18-20020a170902f71200b00153b32092adsi2947490plo.158.2022.03.25.11.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:32:13 -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=lv5yRVc2; 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 24F713A5F6; Fri, 25 Mar 2022 10:53:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355327AbiCYLVN (ORCPT + 99 others); Fri, 25 Mar 2022 07:21:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346207AbiCYLVM (ORCPT ); Fri, 25 Mar 2022 07:21:12 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 583EA5A08E; Fri, 25 Mar 2022 04:19:38 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: adalessandro) with ESMTPSA id 87AE11F4614E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1648207177; bh=sKCePReqp4ZJymOSI9J4lq/V8FQUX26+JNamqgOmKYw=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=lv5yRVc2k0I/c7KDjggKiXuVEGwwpOMPNMal8CNUvBFOrMrqLbUStd9sfpti2XuWw GxU0GJtnL1xMlub9WQk9bTsjtARZ/Ymf7AwFc6HD9G6C51OuCKYkdA/HJUWVFQFEA/ GS+UTABwBtCVTu3JM5neiu02qw5FlfH9Gl3J3xkgw9FwDbqWi3RADA2Qw3ysHkSQQk RWXdpD8UBFHGt3il4TVA6xk/YQzpJhUvzrTows798nBsQZtBK/eN34Vaw6EzZwFThw 787bqLLkZkRgRKoIeUBTL3ypMt+slpfdmWzph9LzMjkRpG6KIuXqoAFG4fGTwhQ5rW YVxjUdgARBZmA== Message-ID: Date: Fri, 25 Mar 2022 08:19:26 -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 From: Ariel D'Alessandro 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> 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/17/22 15:47, Ariel D'Alessandro wrote: > 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); > } > } Do you have any other comments on this one? Otherwise, could you perhaps ack this patch? See latest version: [PATCH v4] arm64: dts: imx8mn-bsh-smm-s2pro: Add tlv320aic31xx audio card node Thanks Ariel