Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2233892yba; Thu, 25 Apr 2019 12:54:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdaknc788xC+2ub2o93/yZcfqVtKVpRhJrIWLWmxGu4UZ43M9mZoI+FiY6RO939Np0pcAH X-Received: by 2002:a17:902:54c:: with SMTP id 70mr41825661plf.210.1556222060751; Thu, 25 Apr 2019 12:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556222060; cv=none; d=google.com; s=arc-20160816; b=nUq65g24gX9QWUlmsvcTIjE48Q2zHGAIjgdpU9HoOtq/1VgmJeeRcLSzKy582LRy3T ewyp+NGpulfimCE08jlRegMzfz07QaFXnUwr18FKy6gmYUrV+MUfzpdoOqVQx98pnORQ dZXmCuKlghfoR9FW6U5wsTJJRmZtFe7Z2uH4RO6jazr/gwhMnBWE6qlslHH2M2zQKeOG ncLsElOv94l+e6LalAV9FhCicC/gMriSRbX12j0BPmfqYCwKVi+ENbDzgFpHzz33J8Ze BWJdbHF3pM93WgrK861BAARLfqJdcmgEPMWoASzaIU7o9ZVI/D7kZlSDkbyzk7kc4uMk iyrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=cKM4pLCQMWaOgJXBRBtihdODzmH4ydKptoPHFUneFTk=; b=vqwu4haXCAUqy2iXd6ddfFN4pL2ytSG7BoY9mVmwOGG7P+lnNzMp+u/FPZxDd4qSbN 9lAXbIbYIiqsCd7yENYa5odrUTEsDlpHlxeFvCB4TUHTceTCvmn+tg0MzEwbSyyUoF+U PpOK1Jgmp+7E1lOxXTnTWyF1NXSbxgxIUxHY6baHmqfyVYKYqCt3KceXoqwIPmipSEKI 3bwRJkGHlhcTqRYGzuUwa1TMK8LBcBxMPVv6JIBm5AYFt3PGuia2wh4QzChUMnmEQVsM Deb6jkhw4qMzEEw8K1muPLdxiVq3reL6Ny6lmw4jnhM62YhxgkoEa7ZFRprj+nUcNvWf nUXA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si16016546plm.116.2019.04.25.12.54.06; Thu, 25 Apr 2019 12:54:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729791AbfDYTwA (ORCPT + 99 others); Thu, 25 Apr 2019 15:52:00 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:44854 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbfDYTv7 (ORCPT ); Thu, 25 Apr 2019 15:51:59 -0400 Received: by mail-ot1-f65.google.com with SMTP id d24so585611otl.11; Thu, 25 Apr 2019 12:51:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cKM4pLCQMWaOgJXBRBtihdODzmH4ydKptoPHFUneFTk=; b=TTQb2uBLeg7Hvo6nKqY0jIdNYMTMcpzneitRHk2zETqth3hDmM/LsvvVF8aMq2rEh3 8P8IIS4/sFvzlzYxWz8mFu/HyOqXkecjmmvqxzTENdryxWq7wv4NrWJSkBSLx3URN/T1 WPeoRG/UxPB2N1a21ZiYmUAMxUERwH+/VdszBlL1MDv3QIx7Zek5uPpQXxk0bn26ANug mdLNCUawISUhyymZ/ACo+K/Z3V29QQp1X1b4qVZA5ZNkXHMQk04GZGlcR3NJruf0wOz8 dl5k6HxHoUyfEdwfFQ8nCWUrLlvM4yMuF31GRU8xUxhT+PWfrrIjCGwPHtxz+X7ukqVy JbHA== X-Gm-Message-State: APjAAAWqXmdMHEV2T7d/GHX9krZz2cOc2UTcswkXwGP4rUBr2ilLqAqj 6j6NFD9dnD+zM78yQNATLbHUAZ8= X-Received: by 2002:a05:6830:1559:: with SMTP id l25mr24682251otp.355.1556221917937; Thu, 25 Apr 2019 12:51:57 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 38sm4134315otg.10.2019.04.25.12.51.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 12:51:56 -0700 (PDT) Date: Thu, 25 Apr 2019 14:51:56 -0500 From: Rob Herring To: Lukasz Luba Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, 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, keescook@chromium.org, tony@atomide.com, jroedel@suse.de, treding@nvidia.com, digetx@gmail.com, willy.mh.wolff.ml@gmail.com Subject: Re: [PATCH v6 04/10] Documentation: dt: device tree bindings for LPDDR3 memories Message-ID: <20190425195156.GA31128@bogus> References: <1555683568-20882-1-git-send-email-l.luba@partner.samsung.com> <1555683568-20882-5-git-send-email-l.luba@partner.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1555683568-20882-5-git-send-email-l.luba@partner.samsung.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 19, 2019 at 04:19:22PM +0200, Lukasz Luba wrote: > The device tree bindings for LPDDR3 SDRAM memories. > > For specifying the AC timing parameters of the memory device > the 'lpddr3' binding uses binding 'lpddr2-timings'. > > Signed-off-by: Lukasz Luba > --- > .../devicetree/bindings/lpddr3/lpddr3-timings.txt | 57 +++++++++++++ > .../devicetree/bindings/lpddr3/lpddr3.txt | 93 ++++++++++++++++++++++ Please rename the lpddr2 directory to 'ddr' and add these to it. Maybe whatever properties are common should be put in a common doc. > 2 files changed, 150 insertions(+) > create mode 100644 Documentation/devicetree/bindings/lpddr3/lpddr3-timings.txt > create mode 100644 Documentation/devicetree/bindings/lpddr3/lpddr3.txt > > diff --git a/Documentation/devicetree/bindings/lpddr3/lpddr3-timings.txt b/Documentation/devicetree/bindings/lpddr3/lpddr3-timings.txt > new file mode 100644 > index 0000000..ebf3e00 > --- /dev/null > +++ b/Documentation/devicetree/bindings/lpddr3/lpddr3-timings.txt > @@ -0,0 +1,57 @@ > +* AC timing parameters of LPDDR3 memories for a given speed-bin. > +* The structures are based on LPDDR2 and extended where needed. > + > +Required properties: > +- compatible : Should be "jedec,lpddr3-timings" > +- min-freq : minimum DDR clock frequency for the speed-bin. Type is > +- max-freq : maximum DDR clock frequency for the speed-bin. Type is > + > +Optional properties: > + > +The following properties represent AC timing parameters from the memory > +data-sheet of the device for a given speed-bin. All these properties are > +of type and the default unit is ps (pico seconds). > +- tRFC > +- tRRD > +- tRPab > +- tRPpb > +- tRCD > +- tRC > +- tRAS > +- tWTR > +- tWR > +- tRTP > +- tW2W-C2C > +- tR2R-C2C > +- tFAW > +- tXSR > +- tXP > +- tCKE > +- tCKESR > +- tMRD > + > +Example: > + > +timings_samsung_K3QF2F20DB_800mhz: lpddr3-timings@0 { Since the lpddr2 version was written, we've gotten stricter about allowing unit-address without reg property. Perhaps 'reg' should be the max-freq instead. > + compatible = "jedec,lpddr3-timings"; > + min-freq = <100000000>; > + max-freq = <800000000>; > + tRFC = <65000>; > + tRRD = <6000>; > + tRPab = <12000>; > + tRPpb = <12000>; > + tRCD = <10000>; > + tRC = <33750>; > + tRAS = <23000>; > + tWTR = <3750>; > + tWR = <7500>; > + tRTP = <3750>; > + tW2W-C2C = <0>; > + tR2R-C2C = <0>; > + tFAW = <25000>; > + tXSR = <70000>; > + tXP = <3750>; > + tCKE = <3750>; > + tCKESR = <3750>; > + tMRD = <7000>; > +}; > diff --git a/Documentation/devicetree/bindings/lpddr3/lpddr3.txt b/Documentation/devicetree/bindings/lpddr3/lpddr3.txt > new file mode 100644 > index 0000000..fc7875c > --- /dev/null > +++ b/Documentation/devicetree/bindings/lpddr3/lpddr3.txt > @@ -0,0 +1,93 @@ > +* LPDDR3 SDRAM memories compliant to JEDEC JESD209-2 That's an LPDDR2 spec. > + > +Required properties: > +- compatible : Should be - "jedec,lpddr3" > +- density : representing density in Mb (Mega bits) > +- io-width : representing bus width. Possible values are 8, 16, 32, 64 > + > +Optional properties: > + > +The following optional properties represent the minimum value of some AC > +timing parameters of the DDR device in terms of number of clock cycles. > +These values shall be obtained from the device data-sheet. > +- tRFC-min-tck > +- tRRD-min-tck > +- tRPab-min-tck > +- tRPpb-min-tck > +- tRCD-min-tck > +- tRC-min-tck > +- tRAS-min-tck > +- tWTR-min-tck > +- tWR-min-tck > +- tRTP-min-tck > +- tW2W-C2C-min-tck > +- tR2R-C2C-min-tck > +- tWL-min-tck > +- tDQSCK-min-tck > +- tRL-min-tck > +- tFAW-min-tck > +- tXSR-min-tck > +- tXP-min-tck > +- tCKE-min-tck > +- tCKESR-min-tck > +- tMRD-min-tck > + > +Child nodes: > +- The lpddr3 node may have one or more child nodes of type "lpddr3-timings". > + "lpddr3-timings" provides AC timing parameters of the device for > + a given speed-bin. Please see Documentation/devicetree/ > + bindings/lpddr3/lpddr3-timings.txt for more information on "lpddr3-timings" > + > +Example: > + > +samsung_K3QF2F20DB: lpddr3 { > + compatible = "Samsung,K3QF2F20DB","jedec,lpddr3"; > + density = <16384>; > + io-width = <32>; > + > + tRFC-min-tck = <17>; > + tRRD-min-tck = <2>; > + tRPab-min-tck = <2>; > + tRPpb-min-tck = <2>; > + tRCD-min-tck = <3>; > + tRC-min-tck = <6>; > + tRAS-min-tck = <5>; > + tWTR-min-tck = <2>; > + tWR-min-tck = <7>; > + tRTP-min-tck = <2>; > + tW2W-C2C-min-tck = <0>; > + tR2R-C2C-min-tck = <0>; > + tWL-min-tck = <8>; > + tDQSCK-min-tck = <5>; > + tRL-min-tck = <14>; > + tFAW-min-tck = <5>; > + tXSR-min-tck = <12>; > + tXP-min-tck = <2>; > + tCKE-min-tck = <2>; > + tCKESR-min-tck = <2>; > + tMRD-min-tck = <5>; > + > + timings_samsung_K3QF2F20DB_800mhz: lpddr3-timings@0 { > + compatible = "jedec,lpddr3-timings"; > + min-freq = <100000000>; > + max-freq = <800000000>; > + tRFC = <65000>; > + tRRD = <6000>; > + tRPab = <12000>; > + tRPpb = <12000>; > + tRCD = <10000>; > + tRC = <33750>; > + tRAS = <23000>; > + tWTR = <3750>; > + tWR = <7500>; > + tRTP = <3750>; > + tW2W-C2C = <0>; > + tR2R-C2C = <0>; > + tFAW = <25000>; > + tXSR = <70000>; > + tXP = <3750>; > + tCKE = <3750>; > + tCKESR = <3750>; > + tMRD = <7000>; > + }; > +} > -- > 2.7.4 >