Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3521227pxv; Mon, 19 Jul 2021 02:11:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzg3Gb2YxV9+f7JzoScX9yVs+woPkGRW/GgnypPdNhiHI92OOC/3SNpSVIGnXlCiooCI/X+ X-Received: by 2002:a02:9f89:: with SMTP id a9mr21000046jam.51.1626685871561; Mon, 19 Jul 2021 02:11:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626685871; cv=none; d=google.com; s=arc-20160816; b=miVGJBmQ+9mR0zlIxu0qNqy5A07B39C3D1PksUwKXXRsEjr2RG1R9GDVdXcZq/Ue0d Jdw3b2zMJlZ3RJYR+ZWxzOGRnJj4h0HxrvVJQjpNmnano3/8MOGu6lsQGrK7NDqIpYv9 u6Jn04ncUxQscM5oLmqA5pHcwPeB8jDrwmxqIwUMUMtcExcYy4FpKKPUnXESq7tPWAUh mGjRbGsHjTbFCqr4DcPXSx0sFSZre4lLgG9zaGVKe5W+8H284HZIUazFOWsA4TBtCgVl Y0hAoOaP2LP9xZsq3oh72K5D9Hq885GznAUzRnNBaJigN0J6ZpKtmWOc7cXSRwn4KuS6 pdsA== 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=okZDt5izpXJNQv5Y4DDOChxLzV07ajEvC7VBXiOh8LY=; b=s9M6xJKxZB+x4C0cyNIIRJAB9Fw0xlxSs1LxTy5Fq8+6bUsud0jTj7EySHjmMmsh7m M22kzLNMDQspLQ6pCfkOei7SHbx0lByJlqz/laQ54ir/ppY96ial0sgd8vU9gqUw1V6h yU/j0WriVz58fqbAN0oX7xOvJ52sgddJT/s4L+NxXrqb38oTIDGQloyXgA/xOuf9Kpmc J+RXZuKRS1Bu3FdpK8in6+wrAtqKOG3uGQLlP52S1QL5+CIBd4VkvDhKgBFArquhb3HG zX8p72lOhthLA1gr0Q1ZX3lkAYaVI67NMLNKULrQRW9zBppmbfk+jd/IY4kFqb9rQKpl 3bvQ== 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 d5si18198256ilr.23.2021.07.19.02.10.59; Mon, 19 Jul 2021 02:11:11 -0700 (PDT) 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 S235317AbhGSI3p (ORCPT + 99 others); Mon, 19 Jul 2021 04:29:45 -0400 Received: from mail-ua1-f45.google.com ([209.85.222.45]:43613 "EHLO mail-ua1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234991AbhGSI3o (ORCPT ); Mon, 19 Jul 2021 04:29:44 -0400 Received: by mail-ua1-f45.google.com with SMTP id 109so6539635uar.10; Mon, 19 Jul 2021 02:10:23 -0700 (PDT) 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=okZDt5izpXJNQv5Y4DDOChxLzV07ajEvC7VBXiOh8LY=; b=cWGHAQ8PE09glp6S2rRn1Q69PKDOfXc7dilXirlBC41DyJdtTQIPq28zaBkipYr4h4 15x6eb4axcrcSjgpr5n1KXfqQ/oK90bIOJlqYsPvZByRJvS8MaRDyoeSRhDMv/q3zoGg yhoXp2mI7MMQKtl6hxmMbli9GmGu+XO57rG7/Ny+QMeiTHf7V284S3GZiW8yOYeNQN+e 3sT9IFBCAwuf+B5agur1kHJMP1DKM77L1xu90uO7RQB1GDbvZ4fbByrXu+CBRLyFpp2m AhM2fSom/e0QhNEKH9rKDPb+GBEZEfJ9TYOViz95Wa03ElD+OtYjuruwRgi3qwDjYgVD Mv4A== X-Gm-Message-State: AOAM531Mrm1j5YPwZWQLgvT2zZTVsyUroXEdxlqnKLbs8qo4/oxEggbf 0C/K74WY0VfXKxPeLz6f1XDNzjz1cc9mq7MjfZA= X-Received: by 2002:a9f:3649:: with SMTP id s9mr24642802uad.2.1626685823482; Mon, 19 Jul 2021 02:10:23 -0700 (PDT) MIME-Version: 1.0 References: <20210713214126.2278-1-alexander.helms.jy@renesas.com> <20210713214126.2278-3-alexander.helms.jy@renesas.com> In-Reply-To: <20210713214126.2278-3-alexander.helms.jy@renesas.com> From: Geert Uytterhoeven Date: Mon, 19 Jul 2021 11:10:12 +0200 Message-ID: Subject: Re: [PATCH v4 2/2] clk: Add ccf driver for Renesas 8T49N241 To: Alex Helms Cc: Linux Kernel Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-clk , Linux-Renesas , Rob Herring , Stephen Boyd , Michael Turquette , Geert Uytterhoeven , david.cater.jc@renesas.com, Michal Simek , kernel test robot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, On Tue, Jul 13, 2021 at 11:41 PM Alex Helms wrote: > This is a common clock framework driver that supports the 8T49N241 chip. > No other chips in the family are currently supported. The driver > supports setting the rate for all four outputs on the chip and > automatically calculating/setting the appropriate VCO value. > > The driver can read a full register map from the device tree > and will use that register map to initialize the attached device > (via I2C) when the system boots. Any configuration not supported by > the common clock framework must be done via the full register map, > including optimized settings. > > All outputs are currently assumed to be LVDS unless overridden in > the full register map in the DT. > > Signed-off-by: Alex Helms Thanks for your patch! > Reported-by: kernel test robot I don't think that line belongs here (lkp requesting 8T49N241 support? ;-) > --- > MAINTAINERS | 1 + > drivers/clk/Kconfig | 21 + > drivers/clk/renesas/8t49n24x-core.c | 836 ++++++++++++++++++++++++++++ > drivers/clk/renesas/8t49n24x-core.h | 250 +++++++++ > drivers/clk/renesas/8t49n24x.c | 572 +++++++++++++++++++ > drivers/clk/renesas/Makefile | 4 + > 6 files changed, 1684 insertions(+) > create mode 100644 drivers/clk/renesas/8t49n24x-core.c > create mode 100644 drivers/clk/renesas/8t49n24x-core.h > create mode 100644 drivers/clk/renesas/8t49n24x.c As this is a driver for a discrete part originally from IDT, not a clock generator integrated on a Renesas SoC, I think it belongs under drivers/clk/ instead of drivers/clk/renesas/. That would align nicely with the Kconfig symbol already residing in drivers/clk/Kconfig. > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -15580,6 +15580,7 @@ M: Alex Helms > M: David Cater > S: Odd Fixes > F: Documentation/devicetree/bindings/clock/renesas,8t49n241.yaml > +F: drivers/clk/renesas/8t49n24x* > > RENESAS CLOCK DRIVERS > M: Geert Uytterhoeven 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