From patchwork Fri Feb 1 16:46:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10793341 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 14CAB6C2 for ; Fri, 1 Feb 2019 16:49:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFBF63217C for ; Fri, 1 Feb 2019 16:49:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D999132182; Fri, 1 Feb 2019 16:49:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62B7B32174 for ; Fri, 1 Feb 2019 16:49:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730682AbfBAQrV (ORCPT ); Fri, 1 Feb 2019 11:47:21 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:45294 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730213AbfBAQrU (ORCPT ); Fri, 1 Feb 2019 11:47:20 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190201164719euoutp02f40854136d3b52abd0eb585e473cff50~-S1gy5PLk1462914629euoutp02D for ; Fri, 1 Feb 2019 16:47:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190201164719euoutp02f40854136d3b52abd0eb585e473cff50~-S1gy5PLk1462914629euoutp02D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1549039639; bh=6uQKtEbSrA2rR2vaPlBS82mIq9Rpuo3fLggusB/LfQs=; h=From:To:Cc:Subject:Date:References:From; b=Y7IFy5XcqARnXXUPh9xDvnkqIuDmcIUsO/JwkxOPsuEfIlCBLlRUzXxzkpoi5ZiKs KwwLFHwrr24d8NBwhGSJtvAxwnJiLkibOeF6RB6WEOgb0/avpX25u4l+MRWS/BCNtc p4p9HXXzfKSJTVJBj7HlujRYX/QnQt1xewTzzGdI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190201164718eucas1p2eae9a125dcf8fb84b114ee3941910955~-S1f5JRY60986009860eucas1p2J; Fri, 1 Feb 2019 16:47:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 8A.E3.04441.518745C5; Fri, 1 Feb 2019 16:47:17 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190201164717eucas1p2ddf83cd5b7a5f53fdb866eeb8e991c71~-S1fO9CXq0986009860eucas1p2I; Fri, 1 Feb 2019 16:47:17 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190201164717eusmtrp1028c772ddbc16ef0dfe0d01a95920352~-S1fAJrFP3167231672eusmtrp1R; Fri, 1 Feb 2019 16:47:17 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-ce-5c5478150491 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 81.29.04284.418745C5; Fri, 1 Feb 2019 16:47:17 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190201164716eusmtip220009bb485aaeb491cac28f1526b62e9~-S1ea_rub0105101051eusmtip2Y; Fri, 1 Feb 2019 16:47:16 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, Lukasz Luba Subject: [PATCH v4 0/8] Exynos5 Dynamic Memory Controller driver Date: Fri, 1 Feb 2019 17:46:44 +0100 Message-Id: <1549039612-28905-1-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplleLIzCtJLcpLzFFi42LZduzneV3RipAYg63TDCw2zljPanH9y3NW i/lHzrFa9D9+zWxx/vwGdouzTW/YLW41yFhc3jWHzeJz7xFGixnn9zFZrD1yl93iduMKNovD b9pZHXg9Nq3qZPM4+G4Pk0ffllWMHp83yQWwRHHZpKTmZJalFunbJXBlHLvSy1rwTaTiwMOZ bA2Mr/m7GDk5JARMJCY132TvYuTiEBJYwShx4eFqRgjnC6PE9g8PmSCcz4wSyxedYoFp6Tgx iQUisZxRYsbWdna4luXdE9m6GDk42AT0JHasKgRpEBGolrhzfT8zSA2zwFtGiZk3v4BNEhZw kNi47BATiM0ioCpxY8UBZhCbV8BLYufFaewQ2+Qkbp7rBGuWEPjNJrFvzVSohIvE5UPn2SBs YYlXx7dAxWUkTk/ugTq1WOJsxyqomhqJ9pM7oGqsJQ4fv8gKciizgKbE+l36EGFHiaZDrSwg YQkBPokbbwVBwsxA5qRt05khwrwSHW1CENUaElt6LjBB2GISy9fAXOwh8X3zXbDhQ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NT1kwNbyjldHvowyJhVs5l nVcpdSfDzWBmgMdelxWlt5mMIwsURd0jlsnseXDsR0Xz7I/hNbIB1a0GsZ5XEncdfaR37zZz tuPVGMu5x9YlucYqsRRnJBpqMRcVJwIAJmBc0HACAAA= X-CMS-MailID: 20190201164717eucas1p2ddf83cd5b7a5f53fdb866eeb8e991c71 X-Msg-Generator: CA X-RootMTR: 20190201164717eucas1p2ddf83cd5b7a5f53fdb866eeb8e991c71 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190201164717eucas1p2ddf83cd5b7a5f53fdb866eeb8e991c71 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This is v4 of the patch set which adds support of Dynamic Memory Controller for Exynos5422 SoC. The driver supports Dynamic Voltage and Frequency Scalling for the DMC and DRAM. It also provides needed timings for different speed operations of the DRAM memory. The patch set is based on tag: v5.0-rc4 changes: v4: - removed unneeded DPLL and G3D clocks IDs - changed names of parent clocks for mout_mx_mspll_ccore_phy_p and added one more parent: mout_sclk_epll - removed 933Mhz and 138MHz from the BPLL ratio table v3: - in DTS align to proper indent the clocks and clock-names entries v2: - changed file name exynos5-dmc.c -> exynos5422-dmc.c and related entries in other files - changed dt-binding file name - changed config entry to CONFIG_ARM_EXYNOS5422_DMC_DEVFREQ - removed sysfs and print info messages (print only one line) - removed function exynos5_read_chip_info and compact code - changed dt-binding patch and move it up in the patch set - new entries in MAINTAINERS are added with the driver c code - clean-up in DTS file: renamed nodes to 'ppmu' and 'memory-controller', entries moved to suggested location (before nocp nodes or after), moved according to alfabetical order, compacted clocks names with right indent. Regards, Lukasz Luba Lukasz Luba (8): clk: samsung: add needed IDs for DMC clocks in Exynos5420 clk: samsung: add new clocks for DMC for Exynos5422 SoC clk: samsung: add BPLL rate table for Exynos 5422 SoC drivers: devfreq: add DMC driver for Exynos5422 dt-bindings: devfreq: add Exynos5422 DMC device description DT: arm: exynos: add DMC device for exynos5422 drivers: devfreq: events: add Exynos PPMU new events ARM: exynos_defconfig: enable DMC driver .../devicetree/bindings/devfreq/exynos5422-dmc.txt | 106 ++ MAINTAINERS | 8 + arch/arm/boot/dts/exynos5420.dtsi | 78 ++ arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 22 + arch/arm/configs/exynos_defconfig | 1 + drivers/clk/samsung/clk-exynos5420.c | 59 +- drivers/devfreq/Kconfig | 13 + drivers/devfreq/Makefile | 1 + drivers/devfreq/event/exynos-ppmu.c | 6 + drivers/devfreq/exynos5422-dmc.c | 1274 ++++++++++++++++++++ include/dt-bindings/clock/exynos5420.h | 16 +- 11 files changed, 1578 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/devfreq/exynos5422-dmc.txt create mode 100644 drivers/devfreq/exynos5422-dmc.c