Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1171706pxu; Thu, 17 Dec 2020 04:04:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxY+aMbQsp7nAXuCeovsyVD42v6QfbrBHlVV4Xm41vnj4Hm3KcRpT73jwSKGNu1pnoBftR7 X-Received: by 2002:a17:906:402:: with SMTP id d2mr5735816eja.35.1608206693733; Thu, 17 Dec 2020 04:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608206693; cv=none; d=google.com; s=arc-20160816; b=eLMxW5TO4tQmTiGPuACQDRmOlIxSATnrZN1+wYX3AwpsWDNVLqJ9iWUWY/wqmTKg2C CUko4ZcoNgsm2XoxsCRD7cwClKhJJEScde7AgVU2P/Hfyf0e12PfRNDaR7pUG3tUFrLO Z6sV4vXr1T1Mbs/7s3DPqRZtNSPQKM3OxIHmz3YaGBWIWQEyGSWTAMMz/cm3cOonHjGg x79HJJYcJ2sET3SsMGvPHuaiU3UiscqCOP0MPfbnCJ751Dgtb6cChT51ZcMvDlqGOORY /JdRz4x4vgAuIjYfb4uHaIziJJ3rZOokowEAvPzMrtiJvq/jfDl8Q5tzGrXQrLgpmYAS A4+A== 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=dcjHVx0jrx6JepteYLCPr4nLNJXZTAOJRNTw9c5FMpw=; b=hp1RZvoonRL1V3rC8F3EbMqKJdPZcQAl/xmtpJ4OUW+VptmrjpEXPpbB6wcDaMl5La 2bjoffOkSCuw3o0Zc5oPl1V2H3KIuRa8ocVCrQVSvukX0bpPAgNBhQnhrpqVLfuJSM/g Nk/dASV2F3webCf6u+PgceYzHUe/Lqddfl3drsOS8NaQdabZZz5I9RtiW/DFdSDa2M3V VL/joUv4rp949x/dizPMXGhcBpgEDpr3IrzIlVq7vqZP7iVSerffhoP/XDjP4ln8VgYq DF7JKgvCoW7kpY4ItyopN8AaJ6/b2630WIIWqbU87L838PTR4Ab48do4Pj3kuhWkwyTr FoAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WkxOsEMq; 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 c22si2443049ejx.290.2020.12.17.04.04.26; Thu, 17 Dec 2020 04:04:53 -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=WkxOsEMq; 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 S1727227AbgLQMCi (ORCPT + 99 others); Thu, 17 Dec 2020 07:02:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726595AbgLQMCh (ORCPT ); Thu, 17 Dec 2020 07:02:37 -0500 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80CFBC061794; Thu, 17 Dec 2020 04:01:57 -0800 (PST) Received: by mail-io1-xd2f.google.com with SMTP id m23so12453847ioy.2; Thu, 17 Dec 2020 04:01:57 -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=dcjHVx0jrx6JepteYLCPr4nLNJXZTAOJRNTw9c5FMpw=; b=WkxOsEMqXarZUdo+kgrgrmknOwu36bW/QKLf78dO2KzQBvKq9C2JO4Q7SwvWJZcDNM 43FTrc9ZE7tScVxvANwp+I68AYzRCIFnrPqnpfzAXLNaeJWRd2tu0V5PjYHBzjU+3+2S C5ubWgpzyRoOz5lYmdi+lq6dgxM+IC0peeHTPxE1L+zWieT9FmBBlbs8CfJ6qIrb7UM0 OG4C2aoE5zV3BaQYklD6hBteKA2L1ZqDefNTcB6+TRLEMTbJ1zkuV3g3+GDsoptb+Cyc ad9H3w30Nqq1uSznisgUbIwnNenzyRrVZQKAo67O9LxdZDNg1fsYB419lWhAPKp3QRAz RHqw== 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=dcjHVx0jrx6JepteYLCPr4nLNJXZTAOJRNTw9c5FMpw=; b=LHHI5qO7YGAsHI2AozOxGqqSsJQrZ93ExTUqw6g1qSHCTfKCgE11ebToR+nWjGLD8X JF2SEAmQgnO72KbV2z9yFOuUrNNAduqNc3Bbx85C9nyhHTwFkJ2SW2XNo0W25s2KFkjV SfUgJfc2ogoLdJt3Is0He1ohK7Uxwryv9z+LgHinz8gBvIFmLUmqVclZTG5v85p775fj AwCelL9dHXEnOfSAbDCOwgzJPmENNvBhHpZ4mL/oggEshjdU6Y5h/6iUSJWtu+BREZXD RZNtBVBhbyW06OEAwK0XkFc8JorjKnjCTHqhSbMtGWpcCofdYIFXusPPaIPC8A7FHmZo In4A== X-Gm-Message-State: AOAM532rnqC8t+EzG2u+8FasZlz0IQv3ZLOmvSsq9dWcGZ12FkujeEB2 Zq6VVsFrNpSHFsjtR6HwhoWFXsHc1GoogEQ4A7M= X-Received: by 2002:a6b:db01:: with SMTP id t1mr10813587ioc.10.1608206513289; Thu, 17 Dec 2020 04:01:53 -0800 (PST) MIME-Version: 1.0 References: <20201213183759.223246-1-aford173@gmail.com> <20201213183759.223246-5-aford173@gmail.com> In-Reply-To: From: Adam Ford Date: Thu, 17 Dec 2020 06:01:42 -0600 Message-ID: Subject: Re: [PATCH 04/18] arm64: dts: renesas: beacon kit: Fix Audio Clock sources 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 17, 2020 at 4:54 AM Geert Uytterhoeven wrote: > > Hi Adam, > > On Sun, Dec 13, 2020 at 7:38 PM Adam Ford wrote: > > The SoC was expecting two clock sources with different frequencies. > > One to support 44.1KHz and one to support 48KHz. With the newly added > > ability to configure the programmably clock, configure both clocks. > > > > Beacause the SoC is expecting a fixed clock/oscillator, it doesn't > > attempt to get and enable the clock for audio_clk_a. The choice to > > use a fixed-factor-clock was due to the fact that it will automatically > > enable the programmable clock frequency without change any code. > > > > 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 > > @@ -250,9 +250,12 @@ ss_ep: endpoint { > > }; > > > > &audio_clk_a { > > - clock-frequency = <24576000>; > > - assigned-clocks = <&versaclock6_bb 4>; > > - assigned-clock-rates = <24576000>; > > + /delete-property/ clock-frequency; > > + #clock-cells = <0>; > > + compatible = "fixed-factor-clock"; > > + clock-mult = <1>; > > + clock-div = <1>; > > + clocks = <&versaclock6_bb 4>; > > }; > > Shouldn't you override the clocks property in the rcar_sound node > instead, like is done in several other board DTS files (with cs2000)? > I guess there are multiple ways to do this. Because the rcar_sound was already expecting a reference to audio_clk_a, it seemed less intrusive this way. The way I proposed, we can use the default rcar_sound clocking and just change the audio_clk node to enable the versaclock output. The versaclock is driving the audio_clk_a reference clock, so it seemed appropriate to put it there. If you want me to change, I will. > > > > &audio_clk_b { > > @@ -591,7 +594,7 @@ sound_pins: sound { > > }; > > > > sound_clk_pins: sound_clk { > > - groups = "audio_clk_a_a"; > > + groups = "audio_clk_a_a", "audio_clk_b_a"; > > function = "audio_clk"; > > }; > > Yes, this part was definitely missing. > > 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