Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1046578pxu; Thu, 17 Dec 2020 00:20:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdKoaZoWeIgVsQQugAVQAtXRxRTHkieT2vQ4SCLNqlKh07s3pfsVNHv3DozwFLd0cpl92P X-Received: by 2002:a17:906:ce2b:: with SMTP id sd11mr35073120ejb.334.1608193225150; Thu, 17 Dec 2020 00:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608193225; cv=none; d=google.com; s=arc-20160816; b=AttXYL0Y7h1mxfwQClN0dEBS0AsuNaPEbY/b+tkr7SPi+eMSWenh3ykKDr61RelLEe VoLywYpQy5lCR+8j7wJtEb9Lv3Gxj5uV5auHOqGWvWd9AvJc5PLw4RUFHZuMFjNoUOJI DcAKY6UyYHOT+PHaa8/5Epf+uyYiAat3smdNaE8n+9GeJ9bpaVtE4sKjAWuyJ4v9M7Ea oM4vePJy0skHlZDxPKD/7Jk26COusScgIzznqWORXlcEqFkqSjr8loI002g8QrvM1y33 mqv/aAvS7DMJAmHWB5cnfvmEepVts+UvaTDzpds6R83EUwgbQXglQQ3rWLcjJdUaqcZz NWiA== 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=DRkib19GY9SGtyX+MPcBbrQbFZN6frBiaalsVVLI5vo=; b=vzzXG9I38nwZ4eqeb/mXnqQKmpEcLwyfCd8rFAyXef0iBRWEL5luszTHhzUgFKVae+ doYN9fQu5L3RV4thYdo2Vzpy2umeGiECIxRqmrCECjozv6gLVBWTy5yX2YZjbSUGrjMb a+6KwKj7yfsBCffE05uTzvdM5t8niWQknG7E0BTFLh8WE9d/IjcxAF6H2Y+fLrAqJBYo 4CTzav6PEakH9LAjPC/ePsG4KBJY+V30THlLtJnLJ71p0YRjh4uVGfakZjv8jzfrJ7yr +Y/b7QoR8722OVp98vzly6XKWbcvIDftpu5D+Os2FOmV96asIHu7RYmI1VGTkQd6rXyX D5sw== 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 bu24si4078868edb.378.2020.12.17.00.20.02; Thu, 17 Dec 2020 00:20:25 -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 S1726841AbgLQIRh (ORCPT + 99 others); Thu, 17 Dec 2020 03:17:37 -0500 Received: from mail-ot1-f53.google.com ([209.85.210.53]:47067 "EHLO mail-ot1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726488AbgLQIRg (ORCPT ); Thu, 17 Dec 2020 03:17:36 -0500 Received: by mail-ot1-f53.google.com with SMTP id w3so26451059otp.13; Thu, 17 Dec 2020 00:17:21 -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=DRkib19GY9SGtyX+MPcBbrQbFZN6frBiaalsVVLI5vo=; b=q35hq5avdC8Exn+RRSiE2edQcOWGgN8FPaY5FwP3958lL3vbVxBG3xr1gJyXjOfYq2 OvwhmgiWQC35unNpXEtv755CuMbU6VqCdA7YzXvToTBCTtwibSwBEZlVDQpWn/W/dzXu aj0JbVxfziQWZDfWR1HXxbU1QQFSyTW2/F3aDGosrRxDqKFhhUHAWF8HkSMlCw6KLDoT GEhye42yggNadSjuI0EGeKD2j2B0U1d5KaDRORVbNZMtAjRupfsOyaszA9hE/ePIpW+2 sJBNBRAOvXGAOSsRPsSvTA/Hbrw59BDwQ9AXqnzllpZxRjesMYs5xnkx9LSrp9u80dk+ HVnA== X-Gm-Message-State: AOAM531IywWsCT935pl/UMjASZnHaCNr/moHFcT8YX75SpmkciumIjRv nZtqaKCLU+XiD+08lUM/v8vu+NieKNK+Qzy01H8= X-Received: by 2002:a05:6830:210a:: with SMTP id i10mr28626570otc.145.1608193015622; Thu, 17 Dec 2020 00:16:55 -0800 (PST) MIME-Version: 1.0 References: <20201213183759.223246-1-aford173@gmail.com> <20201213183759.223246-2-aford173@gmail.com> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 17 Dec 2020 09:16:44 +0100 Message-ID: Subject: Re: [PATCH 01/18] arm64: dts: renesas: beacon kit: Configure programmable 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 , Luca Ceresoli Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adam, On Wed, Dec 16, 2020 at 6:03 PM Adam Ford wrote: > On Wed, Dec 16, 2020 at 8:55 AM Geert Uytterhoeven wrote: > > On Sun, Dec 13, 2020 at 7:38 PM Adam Ford wrote: > > > When the board was added, clock drivers were being updated done at > > > the same time to allow the versaclock driver to properly configure > > > the modes. Unforutnately, the updates were not applied to the board > > > --- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi > > > +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi > > > @@ -5,6 +5,7 @@ > > > > > > #include > > > #include > > > +#include > > > > > > / { > > > backlight_lvds: backlight-lvds { > > > @@ -294,12 +295,12 @@ &du_out_rgb { > > > &ehci0 { > > > dr_mode = "otg"; > > > status = "okay"; > > > - clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>; > > > + clocks = <&cpg CPG_MOD 703>, <&cpg CPG_MOD 704>, <&versaclock5 3>; > > > > Why this change? You said before you don't need this > > https://lore.kernel.org/linux-renesas-soc/CAHCN7xJWbP16SA-Ok-5syNnqOZAt8OFJo2_rtg5VrNVsN2-eiQ@mail.gmail.com/ > > > > I had talked with the hardware guys about buy pre-programmed > versaclock chips which would have been pre-configured and pre-enabled. > I thought it was going to happen, but it didn't, so we need the > versaclock driver to enable the reference clock for the USB > controllers, ethernet controller and audio clocks. Previously we were > manually configuring it or it was coincidentally working. Ideally, > we'd have the clock system intentionally enable/disable the clocks > when drivers are loaded/unloaded for for power management reasons. Can you tell me how exactly the Versaclock outputs are wired? E.g. for USB, the bindings don't say anything about a third clock input, so I'd like to know where that clock is fed into USB. > Thank you for the review. Is that the only patch in the series with > concerns? I probably won't get to V2 until this weekend. Sorry, I still have to review the other patches in your series. Anyway, we have time until the end of January to queue DT patches for v5.12... 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