Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2105951pxu; Fri, 18 Dec 2020 05:48:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXMlrh/g5Oi0gUGG9EDbloLHo4jNePYJsvo9CfX/E07Su7UXoe/PQFpVOsOZ0ZfM0OC71R X-Received: by 2002:a17:906:cec3:: with SMTP id si3mr3980329ejb.277.1608299298940; Fri, 18 Dec 2020 05:48:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608299298; cv=none; d=google.com; s=arc-20160816; b=xsvxazI/3esnZPNeFgH9GhpEXUJ3KHKN26Nwkj/g2vEL0OBNQ482drYmfMUMR8ZmE6 tVyvLySP70sl0ipFoHBtu7XRSX0vnHguQwjl6lTvwL/TlivOlisH0nRtkekJLO93CK3G kH3CRtCG54wU5sh+D4iPegD4WKQ5kYM5H3teg85bDg3slAmJD5IpUmssRQYye4FNa87Q 9PVNVnLLIKHH5W0jnIsM+Mq0WHHlikT9cdBrVxSGrKK6Lue/rr+UsFMaWUBjQ4oHgsHj 9YesMMq58tFJuq5XP9GtS+85ehEcELgGAZE0WpygsJfs3ovPPFP1urfpvRU2d/GuUWnw VM4g== 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=reSTRV4dt7ZPUclP+v1NvqHl1Mq5jwxkuDW3Be0Lj/Q=; b=iMYRZV4NzCw4OOWf4O7EMVyscm5aK6DMYTIQq7ii4vOwklLxbl1tmMNpCN7s6qNGYb obqaegSo5+qHn5e/i9f2/WO5hhYIdxfu8TrWaJCDiaTI0J59Kkqpw5OZJhvpIr5/IsWL 5MvQR3krJN11vPkhv62GG4WnOhU4eM8Sd04qhzgx81lQ59dbDT4pSTX/zx+dr412Y4z/ Y97Kk2HWQsW3YB26B6Cbi8HfyTKpwNZQQb0H5U0pvB0KFw6HigyY1z2FibGdXbaXZo+h NvDEqV+c08b5Als6T7iJNWTsYS7GfgdAXs2j/BaEFwV2js4Fh80SRNpT7d6Kad6/KWMB KlHg== 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 e13si4579933eje.589.2020.12.18.05.47.56; Fri, 18 Dec 2020 05:48:18 -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 S1727325AbgLRNFx (ORCPT + 99 others); Fri, 18 Dec 2020 08:05:53 -0500 Received: from mail-ot1-f41.google.com ([209.85.210.41]:38504 "EHLO mail-ot1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727307AbgLRNFw (ORCPT ); Fri, 18 Dec 2020 08:05:52 -0500 Received: by mail-ot1-f41.google.com with SMTP id j20so1813256otq.5; Fri, 18 Dec 2020 05:05:37 -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=reSTRV4dt7ZPUclP+v1NvqHl1Mq5jwxkuDW3Be0Lj/Q=; b=Fgy2sOnKiEB00Kd3mEqaSK0RaOfscVQwK9yVTgWBPLH59f/DK7fTIGf7QJstq0n/SN Q0msK4eQsBG8U3sJ1QsoqNGX05vEPLaD4v7HDhg/Vqvyq1F8UC81h7+h4COF5KLT1K3H rKISZsTm8Tpwcjnv4K4uiKkI6n5uQ7WFEhL8pvPwrXEMCu3svYti+cwfFywERHg/km0G 1/QZVFHDeNIgj/E32HkG9q8RECHMMjX4L+TncYACw9/RysdMActuFgCXeTdtj2B5+gZ7 ghJBFNMIFdR62+YniZvRj9aubYYenuMhvN3ggBHwBFOOH7kn1lHtAWN+hPvKbgD+qzpR 7mEg== X-Gm-Message-State: AOAM531NJMcTbd9FcqCHtqXs78yHWGrruBQ9svS47Z1DQjDKspQgkLHX 5e44QtcQweX11Y+10Mh6wehvjd+MNqpLO71Xm1g= X-Received: by 2002:a9d:2203:: with SMTP id o3mr2682245ota.107.1608296711700; Fri, 18 Dec 2020 05:05:11 -0800 (PST) MIME-Version: 1.0 References: <20201213183759.223246-1-aford173@gmail.com> <20201213183759.223246-5-aford173@gmail.com> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 18 Dec 2020 14:05:00 +0100 Message-ID: Subject: Re: [PATCH 04/18] arm64: dts: renesas: beacon kit: Fix Audio Clock sources 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 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 1:01 PM Adam Ford wrote: > On Thu, Dec 17, 2020 at 4:54 AM Geert Uytterhoeven wrote: > > 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. Taking a fresh look at this, I start to like it. What do other people think? 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