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=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no 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 A12D2C7618B for ; Wed, 24 Jul 2019 12:38:59 +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 7608421BF6 for ; Wed, 24 Jul 2019 12:38:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="r8Shsi0t" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7608421BF6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=6JCnBbN4ortg3VRIgIqXi+DUfNdfNWltzxpJnlMG2Ww=; b=r8S hsi0tWdESMx2t9FvW1MBY3PhRGY5YjlODGWn0/TWOjtXMWq5E1fqo8xalr1VbPdx3fiKb2Ajcs7Vq DGljcowQId2CEoKlGS4elUqB9KmBHsEs8p9ttZwifO1jmOd1Uwz7lkT9cUPV8c00LzUWK+3Vyf3Ze 1AncQVS9I64dK5WK0DdW6Qln5pvuI862hlUJDfdsHcLpxN69Zk12fWHwJKZYa5aJLpH1sQl5+y5// rUdSFUMHwP44mbs8llKz0aAbNrdsafNk51jlmQoBk/7dNAHDJc1PAQa4OzvcfAxrGluyfdiT7qTdm gEnpY1Vp+4QXPIAYm/xOE2YSpAHEglg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqGXr-0002Rd-3t; Wed, 24 Jul 2019 12:38:59 +0000 Received: from inva020.nxp.com ([92.121.34.13]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hqGXm-0002Ph-VM for linux-arm-kernel@lists.infradead.org; Wed, 24 Jul 2019 12:38:56 +0000 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3BC6D1A01FD; Wed, 24 Jul 2019 14:38:51 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 2D2CB1A0148; Wed, 24 Jul 2019 14:38:51 +0200 (CEST) Received: from fsr-ub1864-112.ea.freescale.net (fsr-ub1864-112.ea.freescale.net [10.171.82.98]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id ED221205D8; Wed, 24 Jul 2019 14:38:49 +0200 (CEST) From: Leonard Crestez To: MyungJoo Ham , Kyungmin Park , Will Deacon , Stephen Boyd Subject: [RFCv2 0/3] PM / devfreq: Add imx driver Date: Wed, 24 Jul 2019 15:38:43 +0300 Message-Id: X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190724_053855_152949_E13C817F X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. 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: Dong Aisheng , Mark Rutland , Fabio Estevam , Sascha Hauer , Jacky Bai , Anson Huang , linux-pm@vger.kernel.org, Viresh Kumar , Michael Turquette , Frank Li , NXP Linux Team , linux-kernel@vger.kernel.org, Chanwoo Choi , devicetree@vger.kernel.org, Rob Herring , Alexandre Bailon , Pengutronix Kernel Team , Shawn Guo , Georgi Djakov , linux-arm-kernel@lists.infradead.org, Abel Vesa MIME-Version: 1.0 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 This series attempts to add devfreq support for imx8mm, covering dynamic scaling of internal buses and dram. Actual scaling is performed through the clk framework: The NOC and main NICs are driven by composite clks and a new 'imx8m-dram' clk is used for scaling dram using firmware calls. Frequency target is set via "clk_set_min_rate", this allows an unrelated subsystem (for example interconnect) to also request minimum rates as a form for proactive scaling. The dram controller (DDRC) has a performance monitoring block attached for which a perf driver already exists. Instead of reimplementing that as devfreq-events the perf in-kernel API is used. Changes since v2: * Solve review comments * Add yaml binding doc * Add perf event support Link to v2: https://patchwork.kernel.org/patch/11021571/ DRAM frequency switching through clk framework is here: * https://patchwork.kernel.org/patch/11049429/ That part might not be accepted in clk and it might have to be moved to devfreq also. Leonard Crestez (3): dt-bindings: devfreq: Add initial bindings for i.MX PM / devfreq: Add imx driver PM / devfreq: Add imx perf event support .../devicetree/bindings/devfreq/imx.yaml | 59 ++++ drivers/devfreq/Kconfig | 10 + drivers/devfreq/Makefile | 1 + drivers/devfreq/imx-devfreq.c | 278 ++++++++++++++++++ 4 files changed, 348 insertions(+) create mode 100644 Documentation/devicetree/bindings/devfreq/imx.yaml create mode 100644 drivers/devfreq/imx-devfreq.c -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel