Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2100141pxu; Fri, 18 Dec 2020 05:39:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwV+QAXT3ggFWDbB1Zwp6GsZ4ZY4V9+V55+v23sgox6cAKeB+9BJAQIqgE+I1Na1CSS04Be X-Received: by 2002:a17:906:3b55:: with SMTP id h21mr4085873ejf.184.1608298787307; Fri, 18 Dec 2020 05:39:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608298787; cv=none; d=google.com; s=arc-20160816; b=gk6exdMqO/C2PHFBlPT/VQeKr5LmIc+mfqgJmBbkflN9kI/m6aawfn4DKfuOuIL/p5 bl8BpBTsRrgmyso59KwT7ZASIVXNNk6lazFmb9J2rBOS4vx/p+Z6rNVNfhQvaKdmFZDa MGQUJa4yipT0HP8xLj6jLpRo+DacHO0zUV2Skph7eQZ53huCvF/dGgKTuKpCZK8kzyLH oBLGVUJ8JNXM6WHBBAnpePR53U5Id9xLusGITUoaPtOS1t70h4q8yy5aTYgMcjjQzZuv 7txSupdf4BqA2dTkVSGcTfGI9YOS15sO1TZo9JGAFgiTI8+Jt3tuHvRsXJPLT5aM2llG AGTg== 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; bh=nw9EMgBnuebmSA/eYty+YbhjJO9tx7n6Ij1TQfze3Sk=; b=S0uoJ6OjDkfp6HmaP1SI9wOaoW1qLPyJAQfP7qL584AS5AZW8z+CM5krLQ3AIRaUcX NkTEVa1dmDbzvIyqYN4Z76wX1IF3EehOYuzf3hSUK+yj53pLggN90yBHPPKCL/FyhpfA 3Rq1zGIrzbwfbPx7+KPJrhWtac6OEZkVTs2kBnnsirHtu4zrF1C4P08ta20E95pysbnl Rrp1U06paRTjHqVE0gksvczW6NACiHdbwyUy4GoAflUtz+dB5v8U+/Z4ifnNJugjx59P CLgwWZEa03Kudk6zGNNJY8LJXlASefVqthMvjcC4z1avSRUHYnuZtdilWq4rqI/PgUqc wyfg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si4632797ejr.335.2020.12.18.05.39.23; Fri, 18 Dec 2020 05:39:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726616AbgLRM6Y (ORCPT + 99 others); Fri, 18 Dec 2020 07:58:24 -0500 Received: from mail-ot1-f45.google.com ([209.85.210.45]:32888 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbgLRM6Y (ORCPT ); Fri, 18 Dec 2020 07:58:24 -0500 Received: by mail-ot1-f45.google.com with SMTP id b24so1828068otj.0; Fri, 18 Dec 2020 04:58:08 -0800 (PST) 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=nw9EMgBnuebmSA/eYty+YbhjJO9tx7n6Ij1TQfze3Sk=; b=INdLSKvqhdp3lpERp7qLeRXILXEMbAXW5AhZ5Q0coo6EoEE8aMt62s6L5shnxl2V2f SBAw2NI23ixMi6iiIBW4cG+cthOgrfAN33x5nUGPkrNrn4/Tythz9CU1g6eZcQDa4awi WXUqKFxWbnSnbWe/cbBEvSuJbRatCIk0BEnVisB+Wv0J1rNWL86lSkADZ0NvjRsvlB10 jpij8cMi973NjgMtiRR21iabtHCh3UcoHv5v5Y6Rto7FlJIvelRLNc1DYMLQtezxxQtq JHlvmW0AgbOcTBciYt7rLBiLzbbpzSu9EM+UteZ3xfzomaCFAim9/OK/wLsqdvT6rd6L VWIQ== X-Gm-Message-State: AOAM533IFAk+Nt76KgjQYPwjFteBUP94oFpB7XjUgc9QBsB1CElDoxbh +yAOUsaNU2vk+3NGHRsNEJThW5JieRWFm3pw8L0= X-Received: by 2002:a05:6830:210a:: with SMTP id i10mr2657442otc.145.1608296263283; Fri, 18 Dec 2020 04:57:43 -0800 (PST) MIME-Version: 1.0 References: <20201213183759.223246-1-aford173@gmail.com> <20201213183759.223246-7-aford173@gmail.com> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 18 Dec 2020 13:57:32 +0100 Message-ID: Subject: Re: [PATCH 06/18] arm64: dts: renesas: beacon: Configure Audio CODEC clocks To: Adam Ford 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 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. 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