Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4805955yba; Wed, 8 May 2019 03:07:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwN7W+XOY62Uzmhg++MmfEA1N89QqzjWrNhDi1f0g7Y9ut8pDbNo1Y6YeRrDYGJ/oSDUuJI X-Received: by 2002:a65:5189:: with SMTP id h9mr44729667pgq.304.1557310047334; Wed, 08 May 2019 03:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557310047; cv=none; d=google.com; s=arc-20160816; b=NBYCFahxnttVnajUBJZtroQKRYlBzf+D2kJZZ+EXvURC237Kn1CcFqIb2L7yGUsKtP e6KuMHtwYVv19JS+NxWmqq9tHXGnsUqSjaz++ekAzX+hU5/0BHD8wyRyIgGvIezHsxKN qKY8K3zSjwfZndIeBZ1Fyb5WDjXiyOvA5OEtioflDnVLWriViYtaeOjl0ZeDPYDcmqgI y6AkI94bJD+JQ5DZz3QoBdS1+1xddnbBWATV2zvBu9aZDfYZuL9W7YwvKq3cCxkPt9iJ mwXKBh6s1SSKCoO8RJ0Z3zC1jbuxbFajJ5ALrw5KDx5X//IZ/aQWn9YbybJl0XaUgS0H 4IRQ== 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=MuOs/E311PhekgRKOAjqsoOM7+A3YKyosF5AEe5N4s4=; b=H8kwH7+AeSdWTq3C707BLM9o96RNpVwt7RV8hIEG/Lfiy29tWlpk3RtWv3648AwQaV pRWrS8umGbvXpg4n37pKfmFFc0VrAaIir4G4MW1Des++1DxcUCFsgx1P6zITuJBxCxMl F3iS5sdW9icxKJV5T0P3TFV7lx9BoMM4VYyEpuebsAylOlJEtePQ5YMG6Iy491ugRtlI 3SSr21I/KSvuZXsy43jy6LJUKdnf71thnt0Jvt4PKMd+FZF8Uo831dfxKCG18cduF//B hzLikUFQygd/iO5uqSFlQj2dcJCq34Z3lpZidz0SJK9MfMCl/qnceQpbKF0KvdHHZUT8 5qfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=g+oJJAlR; 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 v27si1328606pgk.257.2019.05.08.03.07.08; Wed, 08 May 2019 03:07:27 -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=g+oJJAlR; 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 S1726834AbfEHJpW (ORCPT + 99 others); Wed, 8 May 2019 05:45:22 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:59980 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbfEHJpW (ORCPT ); Wed, 8 May 2019 05:45:22 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190508094520euoutp01c9f73a54c28d836269970e06e38d77ca~crAeycguI0436704367euoutp01w for ; Wed, 8 May 2019 09:45:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190508094520euoutp01c9f73a54c28d836269970e06e38d77ca~crAeycguI0436704367euoutp01w DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1557308720; bh=MuOs/E311PhekgRKOAjqsoOM7+A3YKyosF5AEe5N4s4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=g+oJJAlRKq0kzE5WpoGqeUzQLxEWMjMxtwj6p6FTXyH3OlZe1tmQGxq9MULwZamoa F1ow9VENuuZ9nNPTkLnAjhLBcObtu44YxCr44Kwv9YA0MQYAVzjb30aNLmmGl7FQkA aijO1gJgj+1I57OQgAauzDrK2wtQNUkSrB9DjCZg= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190508094519eucas1p240af845e3456e87dcdb7fbe8906af8a2~crAd9UfRW1448714487eucas1p23; Wed, 8 May 2019 09:45:19 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 47.3A.04298.E25A2DC5; Wed, 8 May 2019 10:45:19 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190508094518eucas1p29c68c439a387132f9de555f39540851a~crAdKS6S11451814518eucas1p28; Wed, 8 May 2019 09:45:18 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190508094518eusmtrp1b01d2e17125f5bb912ae7518937ef45a~crAc786DA1256112561eusmtrp1c; Wed, 8 May 2019 09:45:18 +0000 (GMT) X-AuditID: cbfec7f2-f13ff700000010ca-1f-5cd2a52e2865 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id E5.99.04146.E25A2DC5; Wed, 8 May 2019 10:45:18 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190508094517eusmtip247caadf547383ab469f9c86a4ba1487c~crAb-PHi42390423904eusmtip21; Wed, 8 May 2019 09:45:17 +0000 (GMT) Subject: Re: [PATCH v7 07/13] dt-bindings: memory-controllers: add Exynos5422 DMC device description To: Krzysztof Kozlowski , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "linux-samsung-soc@vger.kernel.org" , =?UTF-8?Q?Bart=c5=82omiej_=c5=bbo=c5=82nierkiewicz?= , kgene@kernel.org, Chanwoo Choi , kyungmin.park@samsung.com, Marek Szyprowski , s.nawrocki@samsung.com, myungjoo.ham@samsung.com, keescook@chromium.org, tony@atomide.com, jroedel@suse.de, treding@nvidia.com, digetx@gmail.com, willy.mh.wolff.ml@gmail.com From: Lukasz Luba Message-ID: Date: Wed, 8 May 2019 11:45:29 +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: H4sIAAAAAAAAA02Se0hTcRTH++3eu11H135OzYNJwQh7oTMr+kUPCiMuRVEQFCbU0ptZzmw3 K7NgPX3k0hIqpzJ7Kqt8LCvTHrBES5dLk0orekyozBWls6LQut5J/vc5v+/3/L7nwGEpTS8T yial7BKMKfpkrVJN32z81Rqhu9QeF3XfpCDVZysZ8rz/A0OsDa0MufLNjUhBc4mCOI8bSJ77 M0VcrioVeXyoV0We1hUrSZ+5AZGzrnsKcq3htYq8PFiuJEN3alXkQW8mQ+53LCcvf/uTgYfv 0eJAfsB7iuaLTG00f9vyWsXbbdlK3nz4i5I/UWND/PWWDL7PPnE1G6tekCAkJ+0WjLpFm9Rb 8zqrUWqZeu+zz7NNyMrmID8W8GywejtQDlKzGlyOwHv5j6/oR/DGXugr+hDkmZ8xIy3Oo1+R xBpchsBRekA2eRCc6LZRkhCIt4DjYpdK4iDMg7O0k5JMFK6m4VZt3T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ib3feEFMFgEVia8/wkHGiApE SJx5v4IFxOYVEJQ4OfMJmM0pEChxfssnZhCbWcBMYt7mh1C2uMStJ/OZIGx5ie1v5zBPYBSa haR9FpKWWUhaZiFpWcDIsopRJLW0ODc9t9hQrzgxt7g0L10vOT93EyMw/rcd+7l5B+OljcGH GAU4GJV4eCfMuhQjxJpYVlyZe4hRgoNZSYT3+kSgEG9KYmVValF+fFFpTmrxIUZToN8mMkuJ JucDU1NeSbyhqaG5haWhubG5sZmFkjhvh8DBGCGB9MSS1OzU1ILUIpg+Jg5OqQZGwfxtO7t/ f7s73ezXidQaXu/DahOcMqIV1X/bTds2n+Pukv52D11xuZATpzdOum13d1Xg6deLjvZyp+9x VUrsdOrZs1qX90Xx0vB/kzSjbnMsfvhZw77ma4cg27SiNeHP3xf+ThI5Mfcjl7RJ4pzDGnsF kudzn1/+4N3JFcYH1R+s0zwjXrfujRJLcUaioRZzUXEiAIRUUrEVAwAA X-CMS-MailID: 20190508094518eucas1p29c68c439a387132f9de555f39540851a 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 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. > > 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. Regards, Lukasz