Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1127890pxu; Thu, 17 Dec 2020 02:57:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2emQ59VczfubCad4FjLl4BpZywUDV5P+479tnrxKlkDMWki46oAupUII3qtCCoe9x72Q6 X-Received: by 2002:aa7:c58a:: with SMTP id g10mr21592474edq.315.1608202674129; Thu, 17 Dec 2020 02:57:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608202674; cv=none; d=google.com; s=arc-20160816; b=K1izS5SPUcCJtNtUkNez883l2OaYIGxCGhyf+Wra6F3yrcGnciaGKKlj6SZZYnxFie IN+Q69/3j+3+txORj+atDrnxSLxeH/Ie/sRyu9hh1KUTv6mc92wQBfAB70nbyIOJFt8U LDbzZBmCX5F9PG4i5ApHWHmexvKKbjsGkwGhHoqOU2GNX3yJRIyqiHqxQomcoYj3QVzL ka/Oclv9gVf+sPNrmHCv/PYRGaTIFqQOg4ul7vgEu5pugjfARoRgMC8zAqbOURQphWZI jv5ncs2KOgKOJprbX0bqEfd3Uz4yFHLuEvE0ZZXZIdF6UHEtZ3PSXU3LjmA61J2nfwOx THCA== 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=NqI46iUkm3kdRiZJylFMY4ESM/tT8MWZRvq/LXdmcj8=; b=CD2R8khYRm7RzyyjhkQnxb4VN/tiUxI50e5Ifj13QOJBH+oLOliHp0VhETEblmhQ3M 8TC/zHytH1E9OkB4/KwhuLEGxJwIx0C597Gsk1zEldMsH2x1mE7ibZ/1Mk9bVlL2Kx6v 8LfKLHtmtLuUD0I5JJKMFl0EJgfNQ1Rze0Vs4fjkdFwjDjHEDpbfmjBedheCDDzK092j cZDwZETOXBbAlGowxYFApEgYUAYYv+yJ8tGgKIVYLyMTcMebunmsqflCEtj/eINAViIo /IRa6DaWKN3ZUS2rhWgpVsGwUEu4B94kG3hdFCtZV4LEOpu9tx3eW3zLcC/ZkYGgLu7B YsqQ== 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 a73si4298956edf.23.2020.12.17.02.57.31; Thu, 17 Dec 2020 02:57:54 -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 S1727991AbgLQKzU (ORCPT + 99 others); Thu, 17 Dec 2020 05:55:20 -0500 Received: from mail-ot1-f53.google.com ([209.85.210.53]:37277 "EHLO mail-ot1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbgLQKzT (ORCPT ); Thu, 17 Dec 2020 05:55:19 -0500 Received: by mail-ot1-f53.google.com with SMTP id o11so26811943ote.4; Thu, 17 Dec 2020 02:55:04 -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=NqI46iUkm3kdRiZJylFMY4ESM/tT8MWZRvq/LXdmcj8=; b=UDHVMsjFrmxKxeIPxRdz6tMZdhCm3OW5MlawLThIAPEcPujR79PXOdqzf3IaKLnHgs RL0m7RJdAVlcKrYDPLs4RUPxiXDiXa9v+CgSFAVfyRUf/C4Un6Qfq2Nf5dskiVvAJ/B2 s3THeHGkYYQMemePttanqlBoUWyR+J8/suFIc2JIEVKYj/yExbD7okP0jVvXVf2vIX5b +zuFBem8L0AXgc1MicYCmp4PmME0G4yHoEc4KLRjVHBhYbj6vIFNnuc+2KW5df5RFqab azP5eBfKuamOdIIYf7i7BfZCuZd6AdeaNMgnyBIO9B0Uesy3LTCuzoccv5g+7xnunh4H W88g== X-Gm-Message-State: AOAM531H3rVvKR2ACzJBRFdNHbsvTR6rUXqCHpCRWsVpzEJaHEpnsUvY pevbdyZQX6L36/66wkqIroY2gb7vYMtIF4OeY2M= X-Received: by 2002:a05:6830:210a:: with SMTP id i10mr28946942otc.145.1608202478826; Thu, 17 Dec 2020 02:54:38 -0800 (PST) MIME-Version: 1.0 References: <20201213183759.223246-1-aford173@gmail.com> <20201213183759.223246-5-aford173@gmail.com> In-Reply-To: <20201213183759.223246-5-aford173@gmail.com> From: Geert Uytterhoeven Date: Thu, 17 Dec 2020 11:54:27 +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 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)? > > &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