Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2094390yba; Fri, 10 May 2019 06:15:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqw0xP1Tp0PHfrxI9IU2m529ldCk7z+4ir78GFBP8IkE4HoO/l4GYeMpSkdlRUtJPQ/N9q X-Received: by 2002:aa7:8384:: with SMTP id u4mr13597672pfm.214.1557494158598; Fri, 10 May 2019 06:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557494158; cv=none; d=google.com; s=arc-20160816; b=qBvS/6F5/tgJ7x9NChuiZxxObJEYT/CeL5s3bSomWqL7/3xIzvomjt1j/rcVyW7lsl Abw8RzCSgceZHzZ/hXGf6Mxpzn+hYEeyY42bKMrj474WP6i3XmUzFAArUWbhZfOnd3k4 VIeXqOBYq0EMdRAO3BikU/CdpAaiIwcM5WxfrDluVdiyiZhkRHQAdaY9VlxaaTigdKGH lnf+RpwIHx3x5Wb4Pf5C2sAWVK8l05q38TpFpVtSWeL9+k2WtgmDLN9rfF3cB6T73G8S H+SbUF2wcQNbkzq4igwfLaJaPRZE/fkWakMntFBeto9nhJRC9pl1Y72xxGj5R5/S98vk I3rg== 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=j5HYaAoYE8H3ysc4iIL7WLxLaS/SspmuDmBrz/8NW1o=; b=JUJ0LHxAXd5oJSrZCVNzn0y80VRQnrtmHT8YTt6PkNWOIsdDpsyC1rVRlVmQpH/m4I u/7LfCnOxRv2t4pUT8w39fSXgBMOus3UcRZ50JSUhtP7DUfhvTFD/IeyOYCRsHtbWC5M yUhtHBCqyrrfmx+wL1cyeUHJUXVpGhNH5ukLEyGCsRBVNbyRkkOlAa82ImjddA4B9Zo8 kWX34Kk3GEGJP7uOccoqZ5n8o3qk9ESW2OWlO92oYEGGSHTbPgdirBhSQbC3xE5nIAWD oQEzEMUl58jBJcvtt21cVougdyezHBDkn3KEVQAomTEcuoQDgEHsAjIceQu66FTB2tnZ FHWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="OIZo/VXw"; 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 4si7496944plb.158.2019.05.10.06.15.40; Fri, 10 May 2019 06:15:58 -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="OIZo/VXw"; 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 S1727560AbfEJNM6 (ORCPT + 99 others); Fri, 10 May 2019 09:12:58 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44260 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727493AbfEJNM5 (ORCPT ); Fri, 10 May 2019 09:12:57 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190510131256euoutp028c266755a156ebf9a0289cf3a29afe5f~dVIUGPeWQ1435114351euoutp020 for ; Fri, 10 May 2019 13:12:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190510131256euoutp028c266755a156ebf9a0289cf3a29afe5f~dVIUGPeWQ1435114351euoutp020 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1557493976; bh=j5HYaAoYE8H3ysc4iIL7WLxLaS/SspmuDmBrz/8NW1o=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=OIZo/VXwF121fsfuAWfDygFwj/mr9SkTn30FQH+oYy/sPESqQ3g5z/zCulxeIRPBQ EuB03HmxYY/hYFR8KRSApF+H86l1ysmk01cwNeUbl0xkp1ot5rb7uahloYgObjrR45 c3UO7YimfqbCsf1RsAVk3EF9JtYTnWSLHZGUS16Q= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190510131255eucas1p1b1e2d76f60bc4dbde6a9b6f495e37cfe~dVITWlwPZ3127531275eucas1p1m; Fri, 10 May 2019 13:12:55 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 94.8B.04377.7D875DC5; Fri, 10 May 2019 14:12:55 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190510131254eucas1p1fcf8dbeffa10d59a44108c3820efb01a~dVISjTEZP0116601166eucas1p1j; Fri, 10 May 2019 13:12:54 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190510131254eusmtrp113c2899e2188b15d97970140148781ed~dVISVEKyk1895118951eusmtrp1H; Fri, 10 May 2019 13:12:54 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-0b-5cd578d74831 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 81.47.04140.6D875DC5; Fri, 10 May 2019 14:12:54 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190510131253eusmtip25866cbb1e621a84176e0e205134e59ea~dVIReyyHG3162231622eusmtip2v; Fri, 10 May 2019 13:12:53 +0000 (GMT) Subject: Re: [PATCH v7 07/13] dt-bindings: memory-controllers: add Exynos5422 DMC device description To: Rob Herring Cc: Krzysztof Kozlowski , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "open list:THERMAL" , "linux-samsung-soc@vger.kernel.org" , =?UTF-8?Q?Bart=c5=82omiej_=c5=bbo=c5=82nierkiewicz?= , 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: Date: Fri, 10 May 2019 15:12:52 +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: H4sIAAAAAAAAA02Se1BMURzHO3vv3XtrbE4b+k0axmK88xyd8X5bjfEYj/FosHT10G7ZK0rN WPQSiRCt3oyaPKJCmoZRS/TYakiNrBpbI7QNSoY8r1uj/z7n/L7f8/t+Zw5HKTsYV85Pt4/X 6zQBKrkDfefxN/Ok+pA6rymZDc7k1oVchtR3vWVImsnMkKufrIicKU+RkcrjWhJv/UCR6uqb LKk60s6SZ0XJctIZZ0LkQvV9GblusrCk8XC2nPwuLmRJaXs0Qx489ySNPY6k+8kbtMBZ3f0l gVZfNNTS6ntGC6vOyzkmV8cd7ZCrTxbkIHV+RZi6M2/YGm6LwxxvPsBvP6+fPG+Hg68lNQYF vRgYcv/sJdaAigbEInsO8Ax4WPlULrISZyP4aZoaixz+cheCms9mJB06ESS3NFN9jk9Neaw0 yEJgaYxEkt2GwPxxvsjOeDeUXH7JijwIj4CeqERGNFA4U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PYsaoQJMwr4Cax7PFbsHIWAVWJe3ePMIHY ogIREmfer2CBqBGUODnzCZjNKRAo8X3SPCaI8WYS8zY/ZIawxSVuPZkPFZeX2P52DvMERqFZ SNpnIWmZhaRlFpKWBYwsqxhFUkuLc9Nzi430ihNzi0vz0vWS83M3MQITwLZjP7fsYOx6F3yI UYCDUYmHVyD5aowQa2JZcWXuIUYJDmYlEd4inSsxQrwpiZVVqUX58UWlOanFhxhNgZ6byCwl mpwPTE55JfGGpobmFpaG5sbmxmYWSuK8HQIHY4QE0hNLUrNTUwtSi2D6mDg4pRoY1XR1Fh10 fHj2UJeTJet79sInxZPk/XXWfZRn0bFZ8H/yBacP33j8eTevjQp4fKjl7nXvD0sOvxe4f/f6 U75zAp/mpV2+bRRblGHw0qn9jrPE0mshm0/b3At5JrZ+2S73czP63L0i/m/tfasZtFAt9uLb ZzUPDzelq0pv/nP+oOyTeefuPZvj7KTEUpyRaKjFXFScCAAe9Pq2FgMAAA== X-CMS-MailID: 20190510131254eucas1p1fcf8dbeffa10d59a44108c3820efb01a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190506151215eucas1p2c57147edac5671c5ec9a223efb6b4adc X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190506151215eucas1p2c57147edac5671c5ec9a223efb6b4adc References: <1557155521-30949-1-git-send-email-l.luba@partner.samsung.com> <1557155521-30949-8-git-send-email-l.luba@partner.samsung.com> <20190507170422.GA25179@bogus> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 5/8/19 10:35 PM, Rob Herring wrote: > On Wed, May 8, 2019 at 4:45 AM Lukasz Luba wrote: >> >> >> On 5/8/19 9:19 AM, Krzysztof Kozlowski wrote: >>> On Tue, 7 May 2019 at 19:04, Rob Herring wrote: >>>>> +- devfreq-events : phandles of the PPMU events used by the controller. >>>>> +- samsung,syscon-chipid : phandle of the ChipID used by the controller. >>>>> +- samsung,syscon-clk : phandle of the clock register set used by the controller. >>>> >>>> Looks like a hack. Can't you get this from the clocks property? What is >>>> this for? >>> >>> Hi Rob, >>> >>> Lukasz uses these two syscon regmaps to read certain registers. For >>> chipid he reads it to check the size of attached memory (only 2 GB >>> version is supported). This indeed looks like a hack. However the >>> second regmap (clk) is needed to get the timing data from registers >>> from DMC clock driver address space. These are registers with memory >>> timing so their data is not exposed anyway in common clk framework. > > Okay, please just explain what your accessing. Consider adding the > offset as a cell in case stuff moves around on another chip. Good point. I will also have to regmap the registers and not take from 'clock' device. > >>> >>> Best regards, >>> Krzysztof >> >> Thank you Krzysztof for a fast response. I have also responded to Rob. >> I wouldn't call accessing chipid registers as a hack, though. The DMC >> registers do not contain information about the memory chip since it is >> in phase of production the board not the chip. Thus, chipid regs (which >> loads from e-fuses) are best place to put information about memory >> type/size. > > For efuses, we have a binding (nvmem). Maybe you should use it. I don't know about the design of a planned 'chipid' driver, which going to be sent to LKML in near future. Thank you for this information, I will talk with Bartek. Regards, Lukasz > > Rob > >