From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A504FC432C0 for ; Tue, 26 Nov 2019 19:44:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 761CD2075C for ; Tue, 26 Nov 2019 19:44:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kqMybgjb"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="s2DzKRlG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 761CD2075C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Hhblkkl1xI83eeadDQ8a98vaxqDWXMAvVgnjl69z51g=; b=kqMybgjbNUX69K S59hzcR/v+CbLtiMdclznVwjdRt5YHj/GE8t3X3nYN1CswFLIBlCY51OBce45CnuG//Qy0mogTzMh EwzHtLOMgYgkwjncAE2VCec3u8WkU9qwYou7a3URmSaqL47PecYgI3wEMviHtfQqICGR8nHEXwZN/ 9yj9zYlVuVLt8szUe0yL6m2HJ41BCbWiPHCen1s86NZa9xCLIXYY6wQV+/OdCQcoCVlRS2k7hez78 ltQXsqTxMpptnCoRrdiU+q3FirDLT7+PJpSWO/7aQ1pdu/W3vwTHJQvnyR24OgdlE5BvkI6H4BcAM qnTRBt4nqSEpB2ZU8h1w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iZglA-00027J-T6; Tue, 26 Nov 2019 19:44:28 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iZgl7-00026x-Ry for linux-arm-kernel@lists.infradead.org; Tue, 26 Nov 2019 19:44:27 +0000 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 679F12084D for ; Tue, 26 Nov 2019 19:44:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574797464; bh=um1j8Y/GaUsZ1q4T+Tiu5+4Kgs2yzoDg2ThT8cprhsY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=s2DzKRlGMlFyXboS3+ux6a+0J9Jj4ZZ2Ta/XPxcn/LL1zm9tGpoJ2knRLRxeO9UKm 7aSAdRg7u09+FNjsPT5WPuvb++5joBKHq8TQWRJVlfwsW0unmURJhcf+tUm4vCnOhA 45eqetRrjwiY4T6IizY/TnfK/dpZyfJ+ZiETfYLc= Received: by mail-qk1-f174.google.com with SMTP id m16so17213802qki.11 for ; Tue, 26 Nov 2019 11:44:24 -0800 (PST) X-Gm-Message-State: APjAAAVRTdnWMpne5PE2x8etO+J8PCW3xN1cXu6bWi/nCU26xh6kWd8S fXB9HnYchi8ZpHp9JyxXubPLE95ren5rFLTvHQ== X-Google-Smtp-Source: APXvYqwtMCX2ktU7XP1vLiDif7HsVDYIGE5gPdIX/yIa4O+B0IDcNylxr73NToCcb42qbcuGNjawEioJubJ0X61Ew5M= X-Received: by 2002:a05:620a:1eb:: with SMTP id x11mr115675qkn.254.1574797463436; Tue, 26 Nov 2019 11:44:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rob Herring Date: Tue, 26 Nov 2019 12:44:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 4/5] PM / devfreq: Add dynamic scaling for imx8m ddr controller To: Chanwoo Choi X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191126_114425_954920_247E06E9 X-CRM114-Status: GOOD ( 25.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= , Jacky Bai , Viresh Kumar , Michael Turquette , Angus Ainslie , Alexandre Bailon , Leonard Crestez , Matthias Kaehlcke , Abel Vesa , Saravana Kannan , Krzysztof Kozlowski , linux-clk , MyungJoo Ham , NXP Linux Team , devicetree@vger.kernel.org, "open list:THERMAL" , Martin Kepplinger , Silvano di Ninno , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Dong Aisheng , Anson Huang , Stephen Boyd , "Rafael J. Wysocki" , Kyungmin Park , Sascha Hauer , Fabio Estevam , Shawn Guo , Georgi Djakov Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Nov 24, 2019 at 4:53 PM Chanwoo Choi wrote: > > Hi Leonard, > > On 11/23/19 6:45 AM, Leonard Crestez wrote: > > Add driver for dynamic scaling the DDR Controller on imx8m chips. Actual > > frequency switching is implemented inside TF-A, this driver wraps the > > SMC calls and synchronizes the clk tree. > > > > The DRAM clocks on imx8m have the following structure (abridged): > > > > +----------+ |\ +------+ > > | dram_pll |-------|M| dram_core | | > > +----------+ |U|---------->| D | > > /--|X| | D | > > dram_alt_root | |/ | R | > > | | C | > > +---------+ | | > > |FIX DIV/4| | | > > +---------+ | | > > composite: | | | > > +----------+ | | | > > | dram_alt |----/ | | > > +----------+ | | > > | dram_apb |-------------------->| | > > +----------+ +------+ > > > > The dram_pll is used for higher rates and dram_alt is used for lower > > rates. The dram_alt and dram_apb clocks are "imx composite" and their > > parent can also be modified. > > > > This driver will prepare/enable the new parents ahead of switching (so > > that the expected roots are enabled) and afterwards it will call > > clk_set_parent to ensure the parents in clock framework are up-to-date. > > > > The driver relies on dram_pll dram_alt and dram_apb being marked with > > CLK_GET_RATE_NOCACHE for rate updates. > > > > Signed-off-by: Leonard Crestez > > Acked-by: Chanwoo Choi > > --- > > drivers/devfreq/Kconfig | 9 + > > drivers/devfreq/Makefile | 1 + > > drivers/devfreq/imx8m-ddrc.c | 465 +++++++++++++++++++++++++++++++++++ > > 3 files changed, 475 insertions(+) > > create mode 100644 drivers/devfreq/imx8m-ddrc.c > > > > diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig > > index 59027d7ddf2a..5eac479dd05f 100644 > > --- a/drivers/devfreq/Kconfig > > +++ b/drivers/devfreq/Kconfig > > @@ -89,10 +89,19 @@ config ARM_EXYNOS_BUS_DEVFREQ > > Each memory bus group could contain many memoby bus block. It reads > > PPMU counters of memory controllers by using DEVFREQ-event device > > and adjusts the operating frequencies and voltages with OPP support. > > This does not yet operate with optimal voltages. > > > > +config ARM_IMX8M_DDRC_DEVFREQ > > + tristate "i.MX8M DDRC DEVFREQ Driver" > > + depends on ARCH_MXC && HAVE_ARM_SMCCC > > I'll edit it as following and applied it. You corrupted the URLs in the binding patch when applying the series: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/jsonschema/validators.py", line 774, in resolve_from_url document = self.store[url] File "/usr/local/lib/python3.6/dist-packages/jsonschema/_utils.py", line 22, in __getitem__ return self.store[self.normalize(uri)] KeyError: 'https://protect2.fireeye.com/url?k=b51ff83f-e8cff0d7-b51e7370-000babff32e3-c25c03b8af1b12ee&u=http://devicetree.org/meta-schemas/core.yaml' Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel