Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2324079ybg; Fri, 5 Jun 2020 10:59:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIyGy76AdEI871AANFww2+VNsc1w5UAbUqbJ3k29jYUCCHl7B32ZWP+zULXtMaSMDahYFL X-Received: by 2002:a17:907:20e5:: with SMTP id rh5mr10239212ejb.80.1591379973928; Fri, 05 Jun 2020 10:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591379973; cv=none; d=google.com; s=arc-20160816; b=X/oEcLz8A21bCmZrWxoycmdRLTDRz88tymPKOv69XbhafzFWFgcxmpVOqJTToN8905 H3iTwjpPoOzdSVp/He+ri4pXdFrYXo3J1Ws6bX6HGGwCfFHNFvHNdqcdiRoA1gvJ1SOu dbsr3ZMekHDS1RGDJHLG92gtsf2nm7rMW2jQZKm1Ayja/eXxz5DEhLw6XI6VDbVtmJr6 0BrNGMloLDsyVwFkmdJHI87Y+wTQDsGM8jG/xMEAAtDwZl1qmgSerNoRvCur3GKc8/fc HNc6YDl0cEFKI/70bKhswcHoLpoOLW2JJERGjnojINs6rPwLcP7mWEi1C1QVk7iJMKR5 OToQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YYnGgbB/yUYHLwRnIgeOB2yfvVDg5PB29KwRpcC2gN4=; b=GarM4BUHml7kBZeUHgH/Qbu7JMWvfSTPjR+czHeFsPMYZj3DyIkxJ9H55KFXOv4koD yzAKIaiPR9M2ASf2HtLIhgzx4mscHBnSZHzydL/qWxJ0OtzJan52x8Uxb+9Yeg4yzvqj 83JoMuhIIx6sUsdnorWsAR23VeqgNBdWHUedtV4BOaGu0GKvFoyKlQo0BpriN6QzM2Od A6s0obAj6MqS2oTnEBfiKHdkV/pRBA1xCU1xjglsodInGaYrh6Ka6t+/XqtbmXElKNde B6H/KTAyQRfBS2eX0BYqj+OY7fFVsr/r8X/1yA8PpSAhNHo79No/PDMgoRVnSeCIc7S7 aygw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anholt-net.20150623.gappssmtp.com header.s=20150623 header.b=HWlIvo8G; 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 i20si3669031eja.745.2020.06.05.10.59.11; Fri, 05 Jun 2020 10:59:33 -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; dkim=pass header.i=@anholt-net.20150623.gappssmtp.com header.s=20150623 header.b=HWlIvo8G; 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 S1727004AbgFER5M (ORCPT + 99 others); Fri, 5 Jun 2020 13:57:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbgFER5L (ORCPT ); Fri, 5 Jun 2020 13:57:11 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CECEDC08C5C4 for ; Fri, 5 Jun 2020 10:57:10 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id i27so1865648ljb.12 for ; Fri, 05 Jun 2020 10:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anholt-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YYnGgbB/yUYHLwRnIgeOB2yfvVDg5PB29KwRpcC2gN4=; b=HWlIvo8Gx/GfSgNGX7LbvmwrB8R2/UprUCF6ZpGdTm5eFaUvsIhs/YyhRxIi6C0Bgu eKvjCs9vk7Z007hp+pg8+29RTakK0BG4LfZ6KfTBUENIJULV/m/bqBnWIrwsUs1JUM8/ 1/NGt2NwWfaMLuXqDXVe3Io4BwZBxhMbAeR1RevZ7FRe6WgNb1P0/6bzp39+eac5SSI0 IJ2t/onuc/NeLjFksiSRP+9/3pOoJpsXpFqF1xvY2lFz/Ngtj3zgOT8AEn6f/pRSyZwx xSg9J8jx/18GSu+o8jK2uEzV4XTjjcqiZW53KhDmRBA/9Xatc7A9DzNlyF1ysAUOFHM0 xEvg== 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=YYnGgbB/yUYHLwRnIgeOB2yfvVDg5PB29KwRpcC2gN4=; b=QU0TzaP9sIZX4SrndS23c3hDVEhVhBr2rHJMqO6vpBukfvnM07SUxrAlQQuUQMjYAw fXsBOdY/IX0zSQ9CMeEz8qO6oYAnCyH+u+TzNJe59OIFGOr2Z7djeD0x2uZL39AZTJr+ X+2uZyaqtWBfASDX5sISNWrgK4KTFH9x+ZuoEL0m5LJQ1oWtOobDHLriULUOMoGUca41 JVTMWOm3MO4pX8XHXb/edWLz/uM7LoV4dCJyoQVGRpmc8h2hq81TKrBkezYDXIL5/cWo 5OB37rwMUPwvLqlOjq3Nj0jZYtMSzfRO3UwsfRc1m955ZooXKaGvB4B8ghpTejIVIiwr 5gVg== X-Gm-Message-State: AOAM532RF41euOQEc4C2Aht4nJCaccQBftins44ilzscoV94BfHAKRXh ljn4W1RWZTk/2dCFv7XoLAfaotDywR6tJg746/ns6A== X-Received: by 2002:a2e:8705:: with SMTP id m5mr5176522lji.269.1591379829143; Fri, 05 Jun 2020 10:57:09 -0700 (PDT) MIME-Version: 1.0 References: <6615a61b8af240e3d10f8890e4b2462ccdaac9b9.1590594512.git-series.maxime@cerno.tech> In-Reply-To: <6615a61b8af240e3d10f8890e4b2462ccdaac9b9.1590594512.git-series.maxime@cerno.tech> From: Eric Anholt Date: Fri, 5 Jun 2020 10:56:58 -0700 Message-ID: Subject: Re: [PATCH v3 004/105] clk: bcm: Add BCM2711 DVP driver To: Maxime Ripard Cc: Nicolas Saenz Julienne , DRI Development , linux-rpi-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, LKML , Dave Stevenson , Tim Gover , Phil Elwell , Michael Turquette , Stephen Boyd , Rob Herring , linux-clk@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 27, 2020 at 8:49 AM Maxime Ripard wrote: > > The HDMI block has a block that controls clocks and reset signals to the > HDMI0 and HDMI1 controllers. > > Let's expose that through a clock driver implementing a clock and reset > provider. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Rob Herring > Cc: linux-clk@vger.kernel.org > Cc: devicetree@vger.kernel.org > Reviewed-by: Stephen Boyd > Signed-off-by: Maxime Ripard > --- > drivers/clk/bcm/Kconfig | 11 +++- > drivers/clk/bcm/Makefile | 1 +- > drivers/clk/bcm/clk-bcm2711-dvp.c | 127 +++++++++++++++++++++++++++++++- > 3 files changed, 139 insertions(+) > create mode 100644 drivers/clk/bcm/clk-bcm2711-dvp.c > > diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig > index 8c83977a7dc4..784f12c72365 100644 > --- a/drivers/clk/bcm/Kconfig > +++ b/drivers/clk/bcm/Kconfig > @@ -1,4 +1,15 @@ > # SPDX-License-Identifier: GPL-2.0-only > + > +config CLK_BCM2711_DVP > + tristate "Broadcom BCM2711 DVP support" > + depends on ARCH_BCM2835 ||COMPILE_TEST > + depends on COMMON_CLK > + default ARCH_BCM2835 > + select RESET_SIMPLE > + help > + Enable common clock framework support for the Broadcom BCM2711 > + DVP Controller. > + > config CLK_BCM2835 > bool "Broadcom BCM2835 clock support" > depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST > diff --git a/drivers/clk/bcm/Makefile b/drivers/clk/bcm/Makefile > index 0070ddf6cdd2..2c1349062147 100644 > --- a/drivers/clk/bcm/Makefile > +++ b/drivers/clk/bcm/Makefile > @@ -6,6 +6,7 @@ obj-$(CONFIG_CLK_BCM_KONA) += clk-kona-setup.o > obj-$(CONFIG_CLK_BCM_KONA) += clk-bcm281xx.o > obj-$(CONFIG_CLK_BCM_KONA) += clk-bcm21664.o > obj-$(CONFIG_COMMON_CLK_IPROC) += clk-iproc-armpll.o clk-iproc-pll.o clk-iproc-asiu.o > +obj-$(CONFIG_CLK_BCM2835) += clk-bcm2711-dvp.o > obj-$(CONFIG_CLK_BCM2835) += clk-bcm2835.o > obj-$(CONFIG_CLK_BCM2835) += clk-bcm2835-aux.o > obj-$(CONFIG_CLK_RASPBERRYPI) += clk-raspberrypi.o I do think that single driver is the right model here, but I noticed that you're not using your new CONFIG_ symbol. With that fixed, r-b from me. (though I'd also recommend devm_platform_get_and_ioremap_resource and devm_reset_controller_register())