Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp33166391rwd; Sat, 8 Jul 2023 06:26:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHeOpqrV0r4S/YiwYHdvS47mqVlvRGTnwr4rvBKMX91PG5Jk29/vvdCKkhm5k39QCYoj4PU X-Received: by 2002:a05:6512:39c3:b0:4fb:896d:bd70 with SMTP id k3-20020a05651239c300b004fb896dbd70mr7074410lfu.46.1688822792659; Sat, 08 Jul 2023 06:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688822792; cv=none; d=google.com; s=arc-20160816; b=nRsc+2H6H1GozXfkobJ4MHZDAsWIZycjppMglbAvAKf6qv8orI1Qi2H3VIfEO3p0hJ 9wGRiukwbvyyB09HghUVUfqIkH1nVtKo/UuKTPwf3ZIYrAlvqlFpOATbqySYvPe+cwRp irQPoYV/CHiO8gIfcGyFYHU1/rhfjNO0v+HZIozTYQ0mG8AS9EA/F+v0Zqe1hh9V6XKZ a8s3Z2IT3hQ5bjLDa/+TLmeHnDuviYKQEmBCJsG27/6PajnMoNSMtWzcuxAUFe1dpjr+ /oYfCP5hWtheIxYzkeNSnRDZQtT27+nCznZqJ+I+qXcc6ZGeoyVN15o4I9jRUVM7Fsx6 CtfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=PzchHtmoZ3B1vGgZtwF3muLgsqfaDEf9WSVO9oRK4dg=; fh=3aybrY41UZr4+ito5T1t7zO/nI6PQyng/6fBkKgx+Xs=; b=0UgefWlTWQnGkIXzKwGbo0acOHYFL2JuZNdqC9HipkAT/xMNiJFdmnhlN4LuxN6Yl/ bOV1GIa4MyAVJehDdN5+hEhTgs8L9ZjYTHl/Yai8ozgg9X+Ghm300BkurLnqxyTR1Q12 XqW/ft1NjghMN0q4RKdra+ld7WMNpdWIi52v15athJ9wN7V2IhywL78lF1diZ94dFhqx RUSEdV6ahN1z4ZdYa7QFnU58r2GCBtmTr+aEoU0G6RgsY+bajpFQgph9OioIM1UPbA6D 1wvwqwgIpJePgW5dsFsk9C3+9qOUjKpmXZ3f4IPKuG8RqPmI5nilSaf1RyAg52Ulkhr4 5eHQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a50fb8a000000b0051e0252e3e9si3344525edq.362.2023.07.08.06.26.06; Sat, 08 Jul 2023 06:26:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230191AbjGHNDh (ORCPT + 99 others); Sat, 8 Jul 2023 09:03:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjGHNDh (ORCPT ); Sat, 8 Jul 2023 09:03:37 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64ECC1994; Sat, 8 Jul 2023 06:03:35 -0700 (PDT) Received: from p5dc58ef9.dip0.t-ipconnect.de ([93.197.142.249] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qI7ar-001Dj3-76; Sat, 08 Jul 2023 15:03:21 +0200 Date: Sat, 8 Jul 2023 15:03:19 +0200 From: Andreas Kemnade To: Mark Brown Cc: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, peter.ujfalusi@gmail.com, jarkko.nikula@bitmer.com, dmitry.torokhov@gmail.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH 2/3] ASoC: tlv320aic3x: use BCLK instead of MCLK if not in master mode Message-ID: <20230708150319.202789c1@aktux> In-Reply-To: References: <20230705190324.355282-1-andreas@kemnade.info> <20230705190324.355282-3-andreas@kemnade.info> <15d3fc6e-d294-4968-bc7d-66307efc92db@sirena.org.uk> <20230705215611.5f96584e@aktux> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Hi, On Thu, 6 Jul 2023 13:02:36 +0100 Mark Brown wrote: > On Wed, Jul 05, 2023 at 09:56:11PM +0200, Andreas Kemnade wrote: > > Mark Brown wrote: > > > > It would be nicer to set the clock via the DT bindings, ideally with the > > > clock bindings... > > > I found no path from these simple-audio-card things to provide a clk_id > > to set_dai_sysclk. I would of course prefer such a thing. Do I have overlooked > > something? > > Since we already have clock bindings we should use those to configure > the clocks, there's several drivers that have added this support already > - look for clock providers. ok, looking around: Just to make sure I am not running in a bad direction: Do you think tlv320aic32x4{,-clk}.c is a good example? It is ignoring clk_id. I was mentally bound to have to use clk_id there, so I did not found a good solution. So I guess I have to configure the chip as a master and using mclk and compare register dumps with the state we have now and the state after the changes, additionally to check bclk functionality directly. Regards, Andreas