Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2136421pxu; Fri, 18 Dec 2020 06:26:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKdC7JLGSShb5L/7mZ/QBFjSDlCv/ap8AcIq/+OoafG0hBAW3G2tUM9fCZ3V2N/TSVhBhg X-Received: by 2002:a17:906:7fca:: with SMTP id r10mr4348963ejs.24.1608301579799; Fri, 18 Dec 2020 06:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608301579; cv=none; d=google.com; s=arc-20160816; b=nfuXNAJv6emp1gmIgQ62oYzcI8iBSPckzoCiP743a1lB8euXO4heJaob0kO6PdEw2c 5gp8rnxzQdtQGBaYQKh7w1UbjOr3tlupqNGMLCbqx9WroSVOh9YKXWkEu1UdL3CVqgGJ ZGUJ2CsNG6v24kcEHW+0JkWQFbcPy2q+v/uCjO6QgHK0kjFt2Ukm4Jj7TfqNogSzSeKk 7ij+0qPf72gO4ysZpVSrOjv46zsfPdhCmxXQLiMLeY2ESClGeB7b2HVmLkcw5a2Dr4mE Hr1AKRDkTx1VNn5hFFPmpBacEF60o0Z67x+R1SiFrfnByVKx7kFRKTMTvWwK/UatrAUy wmtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Kg+yAMgYFLTlHGrbICoaSFL1GosZ12/l4+s47nG2NxE=; b=zBJ4X1grAuMzfHHcrqS2if0jA2dueBh4lAVc8rqTEurK0lMKqHYe3js6havpcqdRm1 y3uhoGA48Qc6xcF2ubMzV/klAw0TqYDRaK962ywJhwYWe88MmGSm0Cn74iIVFA0YS6mG N30WM5lrFMIKz8fYMfGawKHRQO5GHOozawGeNIGBXF8PLlEXUS95uFVQH+EhNv9HY09u QkflSIGWoNpu2i6zCQYrOALKxUigVX13BBrg1+sMAsIfX3xe8NkD2Hj0jgwO3OU5IqVR 0CvSSt3T6nbzbXvK9WM68IFB78BDhgLpTUVaxfkZgwYEZrQGq1x+6WkAKIKBBpY508pu aknA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a41lRihD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yr3si4599786ejb.190.2020.12.18.06.25.56; Fri, 18 Dec 2020 06:26:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a41lRihD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727432AbgLROY2 (ORCPT + 99 others); Fri, 18 Dec 2020 09:24:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726695AbgLROY2 (ORCPT ); Fri, 18 Dec 2020 09:24:28 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4BA2C0617A7; Fri, 18 Dec 2020 06:23:47 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id 81so2139653ioc.13; Fri, 18 Dec 2020 06:23:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Kg+yAMgYFLTlHGrbICoaSFL1GosZ12/l4+s47nG2NxE=; b=a41lRihDMJA4TP/nBOdw2eh8pG7oiVgvKaQQCFZk8Pzo1AuVl/osP+iqI2fp2+koGU P9Lpy/mTk6V7mbOSA2rtpaXxdCobDJn1YRzFS83JnGcpvWz8rKy9d9NHcL3FlEEzUcf8 Mfeut7Y+n72ZZLdjqNZMns/c1BBr8pLnmn/R06ry9OOMh25KPd5znLBKguPh5wPbY3ZC 0BCWqiqC6ZN7wXdFiHpTN7A9bjTAFo4xQXaK8JMZdh6QPfbgCsMo33HH5C2L0g6waLo/ DfYyfzwNUHIfED0Ml9Jzk45/DifES6cyMHqF6xkpe6GjqpLETBsFf3ahBP6tQtEaWFS4 Hl6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Kg+yAMgYFLTlHGrbICoaSFL1GosZ12/l4+s47nG2NxE=; b=meVgNi7NxbWHc+blRk8L+D2dZG2lRVEkyIerKedOvXDwCjYMqBPmxv9kAVGEl31ADo +gwwPEW4on0dXtX0w7iizp+5GQJHSu5B3u/F5GxNES59WiNrP0FTi83WkzHCdlnJALqk Rm/c5lxiKyMSxqOrlmwmzP1J6EbvxpIkXITKT6lrydw/XUkEyTgKn94lbqQ/HQRp4nYw EXqGnHCf4v8UOAosPlDYG0BftSze56ukaJcxhZ0/dJi0Rq1rnOHluJnFo2e2PLgD3wnj gnGkPCV+gLJcNAxe18UIeKdetlg41HODuTfSS4EN3F4UtC83mWYkoxRI4u+718PXTcAv Q1hw== X-Gm-Message-State: AOAM530Q8p65jEUZJJHJTqE6t6g3bzw1fnyw8l8YbrmxdaUzNc25GWys upyBaUi9ADQSVETM2ljiZNCOM2zvQFQscqwv/60= X-Received: by 2002:a02:ca09:: with SMTP id i9mr3829996jak.135.1608301426863; Fri, 18 Dec 2020 06:23:46 -0800 (PST) MIME-Version: 1.0 References: <20201213183759.223246-1-aford173@gmail.com> <20201213183759.223246-7-aford173@gmail.com> In-Reply-To: From: Adam Ford Date: Fri, 18 Dec 2020 08:23:35 -0600 Message-ID: Subject: Re: [PATCH 06/18] arm64: dts: renesas: beacon: Configure Audio CODEC clocks To: Geert Uytterhoeven Cc: Linux-Renesas , Adam Ford-BE , Magnus Damm , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , ALSA Development Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 18, 2020 at 6:57 AM Geert Uytterhoeven wrote: > > Hi Adam, > > On Thu, Dec 17, 2020 at 2:33 PM Adam Ford wrote: > > On Thu, Dec 17, 2020 at 5:12 AM Geert Uytterhoeven wrote: > > > CC alsa-devel > > > > > > On Sun, Dec 13, 2020 at 7:38 PM Adam Ford wrote: > > > > With the newly added configurable clock options, the audio CODEC can > > > > configure the mclk automatically. Add the reference to the versaclock. > > > > Since the devices on I2C5 can communicate at 400KHz, let's also increase > > > > that too > > > > > > > > Signed-off-by: Adam Ford > > > > > > Thanks for your patch! > > > > > > > --- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi > > > > +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi > > > > @@ -424,13 +424,15 @@ &i2c0 { > > > > > > > > &i2c5 { > > > > status = "okay"; > > > > - clock-frequency = <100000>; > > > > + clock-frequency = <400000>; > > > > pinctrl-0 = <&i2c5_pins>; > > > > pinctrl-names = "default"; > > > > > > > > codec: wm8962@1a { > > > > compatible = "wlf,wm8962"; > > > > reg = <0x1a>; > > > > + clocks = <&versaclock6_bb 3>; > > > > + clock-names = "mclk"; > > > > > > While the driver does get the (nameless) clock, the DT bindings lack any > > > mention of a clocks property. It would be good to update the bindings. > > > > Agreed. I'll push an update to add the clocks property. > > Thanks! > > > > Note that arch/arm/boot/dts/imx6-logicpd-baseboard.dtsi and > > > arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi (both by your > > > hand) use "xclk" instead of "mclk"? > > > > On the schematics for the two imx boards, it's labeled as xclk, so it > > was named as such. For this board, the schematic names it mclk. The > > driver doesn't care about the clock-names property, so I'll just > > remove them. > > If there's a single clock, not using clock-names is fine. > If you do use clock-names, the names should be clock-centric, not > board-centric. I already submitted patches to remove the clock-names reference from the other two boards you noted [1]. I agree it should match the driver and not the schematic. That line was a left-over from our internal git repo where the decision was used to follow the schematic and not the driver. Thanks for bringing that to my attention. adam [1] - https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=403739 > > BTW, looking at the WM8962 datasheet, it's called "MCLK". > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds