Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5349860yba; Tue, 30 Apr 2019 13:17:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJFqn9l/WOKTBttTe2tdD9AWfjDG1k2T24DcdNqCut4HBZneW+UujXTu8znDpQdM+vEq47 X-Received: by 2002:a63:610f:: with SMTP id v15mr32423058pgb.128.1556655433124; Tue, 30 Apr 2019 13:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556655433; cv=none; d=google.com; s=arc-20160816; b=mIT7lQCuO9D45NpkYvPmk6WNx1X7tqekhWN9z/DlA+/5Z45IrOBG0sizilg+pln0sA U0zugXgfqoRHEPy/31oYxgxZAvJDEP3FV2RhUYUNjv9AHdiEB0dYsF+ci859dHab+4O0 R5M6DX2V+0Fhx4IqnATdL6gr6SZsswy9uT60cgNzntPOSBeTw56wXdytZG+J6sRfdKcU b0BhUQNPrStORK5mWDiNCpizZyGqatI1xw4R3xRfSZuYmEhmlyvhZpPBsFn12AZ+aL49 eMorBwkBYgd5c4K+2E1mz6Naw2g8y+ScvzwAnym3GN3BuZKheROkwKniaXvpBPBE+W+h sINg== 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 :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=mn7t1uuvg68BUUAH/Tn9zR4of3JANp39h4iNEwxbGP4=; b=Qw+ciZ13AL4p913VZYx7ZxYY2caxLwdv86CoqMYCh5umwOtLf7j/s+Zf99VTqN6b1H 6dJF7UK8hoRZOdtHmNj3+uhpw/OI2B2gqwolqlVjiwvCSTzaoE5RaEykvsG2pRcu6xmP Qe8DR1GwHhpHpaEKK7b9JGTZpnyzfkwLZAyW+h5Wv6xpElieVoSpMHDxLWNsJ5cDIHqK HhD+u3Hn+Ki03nX0om0lRwjzv9MYUUQfeta/OczyL5unQ99aqfSh2MF7RTLUoqIaOzZH gEItehQ1ZmJkI9o/ZpWglTH7zL59PTNXGQF7ihu1+jHiOED3tkbbYkoKWMJUA9PTfFQe FWjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tUfR82Y2; 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 136si35630614pgb.552.2019.04.30.13.16.51; Tue, 30 Apr 2019 13:17:13 -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=tUfR82Y2; 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 S1726222AbfD3UP5 (ORCPT + 99 others); Tue, 30 Apr 2019 16:15:57 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44713 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfD3UP5 (ORCPT ); Tue, 30 Apr 2019 16:15:57 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190430201555euoutp025416196df7101e757e39823a82c43de2~aWcxMyOxO2593125931euoutp02D for ; Tue, 30 Apr 2019 20:15:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190430201555euoutp025416196df7101e757e39823a82c43de2~aWcxMyOxO2593125931euoutp02D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1556655355; bh=mn7t1uuvg68BUUAH/Tn9zR4of3JANp39h4iNEwxbGP4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=tUfR82Y2KEPUr6qeHvVxbG2AqVFG8l9nITOUBBNTn7k4imqJmggGK+AYgVtil1mVP ry/iYoEy7EYw+zP9sPefk3mVMaG/LjwfTvwYzWEQl/xRquO6xcaJYl7bQFiEUokob2 jxXqnbRwdx6MXv5NYPjMxomqHgZgm/8PJKRpUjMY= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190430201553eucas1p16c8ec34f4c03c140ce5d385e98fccde8~aWcv7s8ke3098530985eucas1p1G; Tue, 30 Apr 2019 20:15:53 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id F7.F3.04377.9FCA8CC5; Tue, 30 Apr 2019 21:15:53 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190430201552eucas1p20e6654bf0e5f922312977bd8180e9be0~aWcuRMGx11156111561eucas1p28; Tue, 30 Apr 2019 20:15:52 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190430201551eusmtrp220f9624dc288508cce91c124c6d1dd4e~aWcuBL1QP0508705087eusmtrp2_; Tue, 30 Apr 2019 20:15:51 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-d8-5cc8acf9efce Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5D.B2.04140.7FCA8CC5; Tue, 30 Apr 2019 21:15:51 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190430201550eusmtip1d4a86f3d0c2d00bcfb858fe60607a6d4~aWcs_ylEU0208402084eusmtip1g; Tue, 30 Apr 2019 20:15:50 +0000 (GMT) Subject: Re: [PATCH v6 06/10] dt-bindings: memory-controllers: add Exynos5422 DMC device description To: Rob Herring Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "open list:THERMAL" , linux-samsung-soc , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Kukjin Kim , Chanwoo Choi , Kyungmin Park , Marek Szyprowski , Sylwester Nawrocki , MyungJoo Ham , Kees Cook , Tony Lindgren , Joerg Roedel , Thierry Reding , Dmitry Osipenko , willy.mh.wolff.ml@gmail.com From: Lukasz Luba Message-ID: <8f488d35-d576-a710-c24b-18514c6c0f34@partner.samsung.com> Date: Tue, 30 Apr 2019 22:15:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SbUhTYRTHe3Zfdh1tPE7LU1nRKjIhtRfpCcUKQi5FkdKHSiFveTPJme2q ZfVhKVhaZqhYLc38kqKWabJ8Q2NZrqzcyF5QhpFmpa4SX0CKrOtd5Lf/Oed3+P8PHI7S/2AW c4nJqaIpWUgysBra+nS6e910jT02xGZdSuqu1zLk3cRnhpR1vGJI9dgAIoXPS1XkxSUjyR8Y oUh39301eZk5qiavm0tYMp7Xgcj17jYVudvhUpO+85UsmWltVJPHoxcY0t6zk/T91JEp+0e0 zYefmiyg+ZtmJ803WVxqvr4qh+Xzsr6x/JWGKsQ/6DrLj9cv28sd1ITHi0mJ6aIpOCJOc+xG MUl55H/anuNGZtTil4u8OMCboCfLinKRhtPjSgS9nx+olGICgWu4hVaKcQSZ71z0v5WsyXuM MqhAUNd031O4EVRkO5FM+eCjYBmyqmTti1fAz+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zJn9BmyzqECE xJn3K1ggagQlTs58AmZzCgRKfGvYD3YRs4CZxLzND5khbHGJW0/mM0HY8hLb385hnsAoNAtJ +ywkLbOQtMxC0rKAkWUVo0hqaXFuem6xkV5xYm5xaV66XnJ+7iZGYArYduznlh2MXe+CDzEK cDAq8fBqeJ6IEWJNLCuuzD3EKMHBrCTC63H8aIwQb0piZVVqUX58UWlOavEhRlOg5yYyS4km 5wPTU15JvKGpobmFpaG5sbmxmYWSOG+HwMEYIYH0xJLU7NTUgtQimD4mDk6pBsa9BrWFh1uV uqy/KrBdnfq9WeXTrMyklcKzF4jvuXXmMiPH+nK7ZLMj+987NMux663v+VD371X0VM3goLiU 6bn2rrc1bj3Wupcxe7n3Bnlf3bdnFk9Yl+fRFZPfz3/6xu9rWvHFQf/muJVlZc32rvn07OIO VcPCzebTWLhPMr+QFOU+Y8WvI6zEUpyRaKjFXFScCADu9m08FwMAAA== X-CMS-MailID: 20190430201552eucas1p20e6654bf0e5f922312977bd8180e9be0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190419141947eucas1p13a27605e04169ab528ef5bfb385eddbc X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190419141947eucas1p13a27605e04169ab528ef5bfb385eddbc References: <1555683568-20882-1-git-send-email-l.luba@partner.samsung.com> <1555683568-20882-7-git-send-email-l.luba@partner.samsung.com> <20190425195750.GA26031@bogus> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/29/19 6:43 PM, Rob Herring wrote: > On Mon, Apr 29, 2019 at 7:14 AM Lukasz Luba wrote: >> >> Hi Rob, >> >> On 4/25/19 9:57 PM, Rob Herring wrote: >>> On Fri, Apr 19, 2019 at 04:19:24PM +0200, Lukasz Luba wrote: >>>> The patch adds description for DT binding for a new Exynos5422 Dynamic >>>> Memory Controller device. >>>> >>>> Signed-off-by: Lukasz Luba >>>> --- >>>> .../bindings/memory-controllers/exynos5422-dmc.txt | 73 ++++++++++++++++++++++ >>>> 1 file changed, 73 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt >>>> >>>> diff --git a/Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt b/Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt >>>> new file mode 100644 >>>> index 0000000..133b3cc >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt >>>> @@ -0,0 +1,73 @@ >>>> +* Exynos5422 frequency and voltage scaling for Dynamic Memory Controller device >>>> + >>>> +The Samsung Exynos5422 SoC has DMC (Dynamic Memory Controller) to which the DRAM >>>> +memory chips are connected. The driver is to monitor the controller in runtime >>>> +and switch frequency and voltage. To monitor the usage of the controller in >>>> +runtime, the driver uses the PPMU (Platform Performance Monitoring Unit), which >>>> +is able to measure the current load of the memory. >>>> +When 'userspace' governor is used for the driver, an application is able to >>>> +switch the DMC and memory frequency. >>>> + >>>> +Required properties for DMC device for Exynos5422: >>>> +- compatible: Should be "samsung,exynos5422-bus". >>>> +- clock-names : the name of clock used by the bus, "bus". >>>> +- clocks : phandles for clock specified in "clock-names" property. >>>> +- devfreq-events : phandles for PPMU devices connected to this DMC. >>>> +- vdd-supply : phandle for voltage regulator which is connected. >>>> +- reg : registers of two CDREX controllers, chip information, clocks subsystem. >>>> +- operating-points-v2 : phandle for OPPs described in v2 definition. >>>> +- device-handle : phandle of the connected DRAM memory device. For more >>>> + information please refer to Documentation >>> >>> The memory node(s) should be a child of the memory controller IMO. >> I have followed the TI code for LPDDR2. They use 'device-handle' >> probably because the memory controller can be moved into the common >> .dtsi and taken by reference in .dts in a proper board file. > > You'd still have to have the ctrlr node in the board file to add the > 'device-handle' property. > >> The board .dts files might specify different DRAM chips and timings. >> In Exynos case we will also have such situation: one memory controller >> and a few different DRAM chips. > > You mean as in the case where there are multiple options and one chip > gets populated on the board? So 'device-handle' is selecting which > chip to use. Yes. The 'device-handle' will point to different memories depending on the board/SoCs. There are boards with Exynos 5420, 5422, 5800 which are 'almost' the same, but with different memories glued on top (the PoP LPDDR3). > > You can actually do both here. Keep 'device-handle' to select which > DRAM chip and have the chips as child nodes. But if you really don't > want to have them as child nodes, that's fine. For now, I would like to keep it like this (if Krzysztof also agrees with the implementation). Regards, Lukasz > > Rob > >