Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp666282ybl; Wed, 21 Aug 2019 03:48:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyU9WpuuKky3ZP4FT6ceKxiUWOg8cdIBdcqIa8nEbDoIWisIZLklpplfcvxOeJ/RGF/FJC X-Received: by 2002:a65:5382:: with SMTP id x2mr28742674pgq.422.1566384506860; Wed, 21 Aug 2019 03:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566384506; cv=none; d=google.com; s=arc-20160816; b=XEN+eRKePfiJoqyz0YnFJK4aC1dA3ScPfGasKIQ7f2yDaKk7Fpbj+FwudVC7f5Is3S dDNKiFE2o+vS8OuCaUIuqwq6Oum4o3z5nzSbQmmmhM/UhsUeUV5OuoA0PWYHLGpUDAQU uBRDxhj+B1qsnVStx6rbhpqUq0+4wWW8OB89In9G03tX3fu6JIKEehpBxjHhfR/iUCF6 k5hEU1NXWx++zmbP6+k6frECmiUR7XNDIPFM7n2RULxpjCvnw0wFb9OSexhg6Y4Lo//F lK5eACnlLpw8ZcVzegbKT+pikqJjfR7rExyjwzsSJM9Ccby0DjgBmfPxyVm/dtzE9IeM ONiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=f3wLyHimzjUSTT7T66Ch/UfMQRVvmyGyE4ItTn8wVqE=; b=aFGassNZGwWU0X50te0LFgp9OryWIN1gUMFrC+35jUdA4MfieEuIXN2vZuYEyEdv/w YZVuNAhOb/WrrrnffJtVvw0RL0Ni6rp3iDgG4UKbST7G36F5xZYg9QG6AwTdJ212xi9T JBTxHKGF7SGT893DDH0xjZkSjAzaDyfrzdX2LHtQDcSwMFEAYzQ7G+RYogQIuqGzQ3xN VRFbrklsxv7+Ek5RLzOLaBYhCjq+SD4axU0Uba+VfW9q4+1lPP34Q+oMWWJUmjJiV8fb m5++njkv6FtqL8FVtCyaHk3sEudnp135kfypGwojDnl3NXMG/hGW6JS8WDd0z4WpC05a Du6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=kM7X+ywJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si14368658pgc.305.2019.08.21.03.48.12; Wed, 21 Aug 2019 03:48:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=kM7X+ywJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728221AbfHUKnW (ORCPT + 99 others); Wed, 21 Aug 2019 06:43:22 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:53242 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727211AbfHUKnV (ORCPT ); Wed, 21 Aug 2019 06:43:21 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190821104319euoutp01eb2b2b4eb19105fad9ce4e1b0ebcce3b~86iFKDjwR0749107491euoutp01V for ; Wed, 21 Aug 2019 10:43:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190821104319euoutp01eb2b2b4eb19105fad9ce4e1b0ebcce3b~86iFKDjwR0749107491euoutp01V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1566384199; bh=f3wLyHimzjUSTT7T66Ch/UfMQRVvmyGyE4ItTn8wVqE=; h=From:To:Cc:Subject:Date:References:From; b=kM7X+ywJ4UyLg6DQYuAr1lGpjoq9svJEl7OhPEYhLio0EJ7DN9mOcLpac8vj7p0i2 s0u4sN/0f6JKg2bpssp9ibEVASPcQBeWWLujq6mCuLT5fRJv664Hi7kEvu1Rw0VYjt ojXpWDV+tfbN87zOrB/ZXGQ5YvpIGIHRFhZZmYyc= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190821104317eucas1p2b3e3f3db56979e7d32f44faadb51ef66~86iEC0dm50890708907eucas1p2C; Wed, 21 Aug 2019 10:43:17 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id A5.A6.04374.5402D5D5; Wed, 21 Aug 2019 11:43:17 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190821104316eucas1p2ecd715f3105921ec83e0acf1291201f8~86iDDUovf0930409304eucas1p2W; Wed, 21 Aug 2019 10:43:16 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190821104316eusmtrp26eae727cdae03b4d9cf385dfa04bcbe1~86iDCaXzG2827528275eusmtrp2y; Wed, 21 Aug 2019 10:43:16 +0000 (GMT) X-AuditID: cbfec7f5-92d689c000001116-50-5d5d20458cac Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F4.38.04117.4402D5D5; Wed, 21 Aug 2019 11:43:16 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190821104315eusmtip235af88bda0a5da9b34ba2a58ef2adecc~86iB7RrcF1223712237eusmtip2F; Wed, 21 Aug 2019 10:43:15 +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, linux-clk@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, keescook@chromium.org, tony@atomide.com, jroedel@suse.de, treding@nvidia.com, digetx@gmail.com, gregkh@linuxfoundation.org, willy.mh.wolff.ml@gmail.com, Lukasz Luba Subject: [PATCH v13 0/8] Exynos5 Dynamic Memory Controller driver Date: Wed, 21 Aug 2019 12:42:55 +0200 Message-Id: <20190821104303.32079-1-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0WSfUzMcRzHfe93v/v9Ol1+fjU+ysJNG0Z5Gt9haDK/ZTabmY3ddOmnbrrD /fRsHEnFJZOpVScKpbr1oEmeu25denQeKiwPtZUelPSAEF13+O/1eX8e3p/vZ1+aYNtJd1ql OcJrNcpQuUQqvl39vXHJ5rkKxVJ9uRcuSSsicctwF4mzzI0kLhjsQDg2p0iCU2oNIlx/Vo2T O3oJ3NRUTOGGk30Ufq2bjQf1b0n8/G6mBA8lmRFOa3oowkZzG4Wvt1hF2Fq7Gb85kSfBcQ/M FK7qiyfxeHOJGD964Y/f/HDBozXtaOMsrvByIeJGRy6IuYHWOIrL0FnFXEV6G8WV5idKuEeG QopLiu2XcJX990XcubJ8xN2qi+GGSj23O++WrgviQ1XhvNZnfYA0JKOjgToUC5F5FVE61Mme QU40MCvhWlM2cQZJaZbJQ2BMzaHswTCCir5SRz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vhzrYuti5ELqOYTo8TL52cZuxg5ONgE9CR2rCoEiYsIzGGU+Nm1jRHE YRb4zSxx8G4/WLewgKNET8t1VhCbRUBV4uK7ycwgNq+AvcTrPYcYITbIS6zecIB5AiPPAkaG VYwiqaXFuem5xUZ6xYm5xaV56XrJ+bmbGIERt+3Yzy07GLveBR9iFOBgVOLh3XEzOlaINbGs uDL3EKMEB7OSCG/FnKhYId6UxMqq1KL8+KLSnNTiQ4ymQMsnMkuJJucDk0FeSbyhqaG5haWh ubG5sZmFkjhvh8DBGCGB9MSS1OzU1ILUIpg+Jg5OqQZGsVDLz5NMaip3n30crWk74z+Pr6rk TS5lpqen/4bH1nNFz3st9pHhAZtS+XS7fysb1u589VfbdlagxhqunxoMxYzX17H4M3fNutQU IruXV27FleDdOnbFzNM3Wxqc8e3VceDSFXj0pMQperFgwfREh81f2oImnnn25iWj9nbL0g6l 23PYsxYqsRRnJBpqMRcVJwIAKZWt8M4CAAA= X-CMS-MailID: 20190821104316eucas1p2ecd715f3105921ec83e0acf1291201f8 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190821104316eucas1p2ecd715f3105921ec83e0acf1291201f8 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190821104316eucas1p2ecd715f3105921ec83e0acf1291201f8 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is v13 which makes cosmetic changes. It is based on current mainline (v5.3-rc5) with with devfreq/for-next where there is a PPMU patch [1]. The patch set adds support of Dynamic Memory Controller for Exynos5422 SoC. The driver supports Dynamic Voltage and Frequency Scaling for the DMC and DRAM. It also provides needed timings for different speed operations of the DRAM memory. There is also new generic code in of_memory and headers which allows to parse LPDDR3 memories defined in device-tree. Here are the last changes suggested by Krzysztof during his review. For the previous changes in older revisions please refer to [2], there is more detailed change log. changes: v13: - skipped patch with chipID changes in DT, since it is not used anymore, - removed license comment in of_memory.c since SPDX has been merged, - aligned comment to the current fields in the structure, - changed printed warning when timings are not found, Regards, Lukasz Luba [1] https://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git/commit/?h=for-next&id=b617376df8f01c975dee66802f4da16291f92079 [2] https://lkml.org/lkml/2019/7/22/251 Lukasz Luba (8): dt-bindings: ddr: rename lpddr2 directory dt-bindings: ddr: add LPDDR3 memories drivers: memory: extend of_memory by LPDDR3 support dt-bindings: memory-controllers: add Exynos5422 DMC device description drivers: memory: add DMC driver for Exynos5422 ARM: dts: exynos: add syscon to clock compatible ARM: dts: exynos: add DMC device for exynos5422 ARM: exynos_defconfig: enable DMC driver .../{lpddr2 => ddr}/lpddr2-timings.txt | 0 .../bindings/{lpddr2 => ddr}/lpddr2.txt | 2 +- .../bindings/ddr/lpddr3-timings.txt | 58 + .../devicetree/bindings/ddr/lpddr3.txt | 97 ++ .../memory-controllers/exynos5422-dmc.txt | 73 + MAINTAINERS | 8 + arch/arm/boot/dts/exynos5420.dtsi | 73 +- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 116 ++ arch/arm/boot/dts/exynos5800.dtsi | 2 +- arch/arm/configs/exynos_defconfig | 1 + drivers/memory/jedec_ddr.h | 61 + drivers/memory/of_memory.c | 149 ++ drivers/memory/of_memory.h | 18 + drivers/memory/samsung/Kconfig | 13 + drivers/memory/samsung/Makefile | 1 + drivers/memory/samsung/exynos5422-dmc.c | 1257 +++++++++++++++++ 16 files changed, 1926 insertions(+), 3 deletions(-) rename Documentation/devicetree/bindings/{lpddr2 => ddr}/lpddr2-timings.txt (100%) rename Documentation/devicetree/bindings/{lpddr2 => ddr}/lpddr2.txt (96%) create mode 100644 Documentation/devicetree/bindings/ddr/lpddr3-timings.txt create mode 100644 Documentation/devicetree/bindings/ddr/lpddr3.txt create mode 100644 Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt create mode 100644 drivers/memory/samsung/exynos5422-dmc.c -- 2.17.1