Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2100152ybi; Mon, 1 Jul 2019 06:12:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFDgbIsMO17eA8rkXDlM5C+/zSN8dLohAZ/UgqxHKGbzHDxKHNOrIL+wMuV+63rIqj7bIE X-Received: by 2002:a63:f95d:: with SMTP id q29mr24681718pgk.368.1561986747733; Mon, 01 Jul 2019 06:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561986747; cv=none; d=google.com; s=arc-20160816; b=yyPlCZYBzae2tpjeR43bzND/uFZEkqafv0gx4ar+/AGmSU8f/bV1BIWOFMwlCNX1g8 jFRfNKLwSJXFggRciwI9H3WlonirJ9dfqqDDhnxVYBCrUWt51Fw2mQJpT9oSvfMIQf+z kl8J4znaXytAdKkWMKgB+twXvcO+FCZ7FzeDRsxhtsbn2RS3wHpqWwJ4gmFupEuj7mYC 9d0J5vk9uYru/u+1PnzuVU315U3O8PKCf28+VFgoITYuwappqUnw/OKBfxB4Orz4KSNT HI7ZDsjby0/eMQma7Yi0cq/5JrRjMk6in5sB8akpGsRJQ2bgfS/aPC7T2YGQ71Brecf+ 9uqg== 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:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=V2RxqnmrrTg838z/OUohhOWlIB6UFsk0++imMcaiW7Y=; b=OiBtN7nzI0RvEZ6DrEUYrUKD/0yUjl7qFfgGYRmQjvfzDb9TtbwOCoQ55RycBJJDbL 8LtwPmuof6IYaSkObPdGOeAAkvK86SEKH/M04qBFM6A1+1eDTYes9AjQ38W/pExlmhJ8 tzT14mP36QcnlPVLJtXPEOHbjQp9zUQuXl4ymTpwApHV2q+EG7nRPJRSfAATh2Sg6phX 4ce/J7x77yV1d0RAqAKSxjhHJctlx56l2xCcqfAiHKUb+MlcpbN70X7biu9O/Kyl2Rc7 StYUvQbJPNmuhlHdq+manB6nYAHLtS5a6SpH/Xq2huuB6kjAnmiSt275LY/vqXJ5RtF4 /LnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=uL+Vq78r; 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 y12si10181342pge.187.2019.07.01.06.12.12; Mon, 01 Jul 2019 06:12: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=uL+Vq78r; 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 S1728836AbfGANL7 (ORCPT + 99 others); Mon, 1 Jul 2019 09:11:59 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57914 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728482AbfGANLy (ORCPT ); Mon, 1 Jul 2019 09:11:54 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190701131153euoutp01ee7e6b34f3a78324afe300f45aeda740~tSqPEg8if2302723027euoutp01i for ; Mon, 1 Jul 2019 13:11:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190701131153euoutp01ee7e6b34f3a78324afe300f45aeda740~tSqPEg8if2302723027euoutp01i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1561986713; bh=V2RxqnmrrTg838z/OUohhOWlIB6UFsk0++imMcaiW7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uL+Vq78rWlTkWirhueJNd/n2ozK3Ixf/aFsdH53d3yL+WaC7UiMe54Uxn3yxWQNsa BOLm+iMVt45y6/pD7WNtAnLqDroAdNLgOH92OJ36dsx9OEx1ckpaGxznL6jDFAKADb ShldxJz+u2txycO+MgGTb5aggSR4eN6yHf5PJH0E= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190701131152eucas1p113f79b9b0affd2f6ff7e7c177e60c463~tSqOSS5dn1001910019eucas1p1J; Mon, 1 Jul 2019 13:11:52 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id FF.77.04325.7960A1D5; Mon, 1 Jul 2019 14:11:51 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190701131151eucas1p2b9f0982ed2d285d212964d7857e6ed8a~tSqNg8ODM1085710857eucas1p2F; Mon, 1 Jul 2019 13:11:51 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190701131151eusmtrp29fb24a7bc0cedec4a96bb0c96504c64c~tSqNSuyww0788807888eusmtrp26; Mon, 1 Jul 2019 13:11:51 +0000 (GMT) X-AuditID: cbfec7f5-fbbf09c0000010e5-d4-5d1a06975ab5 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D1.02.04146.7960A1D5; Mon, 1 Jul 2019 14:11:51 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190701131150eusmtip149a6f1edec1697042f7eb6848979667b~tSqMZqBIW2623726237eusmtip1b; Mon, 1 Jul 2019 13:11:50 +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, 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 v11 2/9] dt-bindings: ddr: add LPDDR3 memories Date: Mon, 1 Jul 2019 15:11:31 +0200 Message-Id: <20190701131138.22666-3-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190701131138.22666-1-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSeyxVcRzvd8/TrWuny/JLFu6iSHq331YrvbZTy9bW+iOxOupQy0X3oIf+ uHVR5KZodSOJiF3qInmVt8WShJJn7tBLyorbeirH0frv8/08vp/tuy+NKc2EPX04OIzXBHNB KlKOFz/63rLkKmnvt+xSzUpUYDAR6OX4WwKl1T8lUO7nQYB0t0wkSnqcKkNPzqtRwuAHDLW0 5FOo+cwIhbq1Duhz/CsCtZdfJ9GYvh4gQ0ulDN2p76NQ6+OtqOd0DonqRs4SaKKjAEdVz7ej np/W6GvjAPCyY79aEnF2tDOaYlO0rThbltxHsYXGWJKtSs2jWL3uE8nWfHooYy8UGQF7rymS HSucv3Omj3zdQT7ocASvWbp+v/yQ3tBEhha4Hv89/IvSgv75cYCmIbMKdk+cjANyWsnkAPhC Z6KkYXxyGM2QScMYgNHjWjIOWE0lvj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mLkYODjYBPYkdqwpB4iICcxglfnZtYwRxmAXOMkvsXvGGCaRbWMBO 4k7LJLBJLAKqEocPbGABaeYVsJe4eaMCYoG8xOoNB5hBbE4BB4lLX++ygdhCQCXrFt9gnMDI t4CRYRWjSGppcW56brGhXnFibnFpXrpecn7uJkZgFG479nPzDsZLG4MPMQpwMCrx8GrckogV Yk0sK67MPcQowcGsJMK7f4VkrBBvSmJlVWpRfnxRaU5q8SFGU6CbJjJLiSbnAxNEXkm8oamh uYWlobmxubGZhZI4b4fAwRghgfTEktTs1NSC1CKYPiYOTqkGxqm+h3OFa2U69ntI/MzYv6dl 3rTJjVx33N4runROszo8+0bP+q+6NRo79/tfOFr9Knids1PtubOTaj2Mmu4ebb3M/WT2/KcP 7nR5VQlcdzQI8T/Iv3DZTQHfLxO1s04cvsL9mnf50QvGWSGHC0XNfpx02b35/c3jC98l53J/ Zqpoby5wnbv+3mklluKMREMt5qLiRABO4naY2AIAAA== X-CMS-MailID: 20190701131151eucas1p2b9f0982ed2d285d212964d7857e6ed8a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190701131151eucas1p2b9f0982ed2d285d212964d7857e6ed8a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190701131151eucas1p2b9f0982ed2d285d212964d7857e6ed8a References: <20190701131138.22666-1-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Specifies the AC timing parameters of the LPDDR3 memory device. Reviewed-by: Rob Herring Signed-off-by: Lukasz Luba --- .../bindings/ddr/lpddr3-timings.txt | 58 +++++++++++ .../devicetree/bindings/ddr/lpddr3.txt | 97 +++++++++++++++++++ 2 files changed, 155 insertions(+) create mode 100644 Documentation/devicetree/bindings/ddr/lpddr3-timings.txt create mode 100644 Documentation/devicetree/bindings/ddr/lpddr3.txt diff --git a/Documentation/devicetree/bindings/ddr/lpddr3-timings.txt b/Documentation/devicetree/bindings/ddr/lpddr3-timings.txt new file mode 100644 index 000000000000..84705e50a3fd --- /dev/null +++ b/Documentation/devicetree/bindings/ddr/lpddr3-timings.txt @@ -0,0 +1,58 @@ +* 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 +- reg : 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@800000000 { + compatible = "jedec,lpddr3-timings"; + reg = <800000000>; /* workaround: it shows max-freq */ + min-freq = <100000000>; + 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/ddr/lpddr3.txt b/Documentation/devicetree/bindings/ddr/lpddr3.txt new file mode 100644 index 000000000000..3b2485b84b3f --- /dev/null +++ b/Documentation/devicetree/bindings/ddr/lpddr3.txt @@ -0,0 +1,97 @@ +* LPDDR3 SDRAM memories compliant to JEDEC JESD209-3C + +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 +- #address-cells: Must be set to 1 +- #size-cells: Must be set to 0 + +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/ddr/lpddr3-timings.txt for more information on "lpddr3-timings" + +Example: + +samsung_K3QF2F20DB: lpddr3 { + compatible = "Samsung,K3QF2F20DB", "jedec,lpddr3"; + density = <16384>; + io-width = <32>; + #address-cells = <1>; + #size-cells = <0>; + + 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@800000000 { + compatible = "jedec,lpddr3-timings"; + reg = <800000000>; /* workaround: it shows max-freq */ + min-freq = <100000000>; + 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.17.1