Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2103102yba; Fri, 19 Apr 2019 12:10:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdZuy5pa2OWGlHSlk3nap/p5NJmKl+kjVcmKH+Z8uH771s3noPP71QZS9uiTu/ul3KrGbd X-Received: by 2002:a62:480d:: with SMTP id v13mr5742190pfa.125.1555701046041; Fri, 19 Apr 2019 12:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555701046; cv=none; d=google.com; s=arc-20160816; b=bSAKz4G66xe3742yS7rRWe5zoAxgqGJXM3YIxnWUJ2pLJM+CSZBih0Pujz6Lhdo+lY GKapmOIy7b5EpM/3MLz+tb+xzF06jVDQ4f6wEVGjt3ZvT5CxfN2f/ZHElAkq80BULrg6 WGu82nPJGylm3glYe98sonCqiHNhKJziskp5V7bLBmZwUCJzrUsJIfMpS0+yH9O/5fSF 93cK2NRtS8SoLtdvuE3H0lHUl2BW9Bt/CvHTkDZxzLX5mynx3QVCvgDu90zCWPoouXJ8 IXc2jqlLc3yevPW1ewaT0qUiBUtb0dUG8jDYHL25qlkqYmfpaiiORyUJKDg5KRRuZxE1 ZWHQ== 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=QJOtFNoh5dlRuZa0BCb5/nTwgHjZIpFyzRw5uANmmR8=; b=0DkMwt2NcRCCi4IR8uYOu1B+wspjH/LueQnPqDONIEPJuICMJUe8ahmAT0/A0SQlkH ioDXkjXUO+TwlEJ+cWHTvPTwv3iqXh5qzFD81zaODBVZsxD23mPuf83yVHCquD/DymeA 1BIofZDHnmi/S6Xr1zKbOWOnyP15fF7neof6GzYoya6tfnjYbp+MoH3zisPgD9VtLg9E YOIQdeGqnvAJpwX3jodHbCxJpl4hSavdwzGApc1NijjUTqfjlSBJgAB74+A5zzel2VSE Yx3Gz0CC9oRVOp30gb6W4nL7J72vkvt6eGvQZmjInPTCZfApEa29cNX0Ky9cEZ7iVPJW OKoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="Cb/1hrNc"; 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 k1si6002608pfj.188.2019.04.19.12.10.30; Fri, 19 Apr 2019 12:10:46 -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="Cb/1hrNc"; 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 S1729114AbfDSTJl (ORCPT + 99 others); Fri, 19 Apr 2019 15:09:41 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:54672 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728990AbfDSTHy (ORCPT ); Fri, 19 Apr 2019 15:07:54 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190419141946euoutp022168d41c14bf070c3efdaa170b29491d~W5frIedLe2260922609euoutp02g for ; Fri, 19 Apr 2019 14:19:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190419141946euoutp022168d41c14bf070c3efdaa170b29491d~W5frIedLe2260922609euoutp02g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555683586; bh=QJOtFNoh5dlRuZa0BCb5/nTwgHjZIpFyzRw5uANmmR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cb/1hrNcYVUi8hRFa4zdUeMw4UTIkEsHvceGQhtOq8lZFwJZ7HSoXoJ8QxU+BX9M6 js+KC9LMMsiKpxucEsR/y+5QdqCS8g9QPYnemU4f8hReLjMH36PJ9hVDzMirLg8bHj YSHtDzUXzlWSN+40yl0YIDIXkKxuMgkz8eS4A64c= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190419141945eucas1p12471bb235563a0e133e26deffa7943eb~W5fqdOAa_3264632646eucas1p1T; Fri, 19 Apr 2019 14:19:45 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 18.72.04298.109D9BC5; Fri, 19 Apr 2019 15:19:45 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190419141945eucas1p1c95d65f261f82da5c856c0f2fcf1ce87~W5fpt85603259532595eucas1p1K; Fri, 19 Apr 2019 14:19:45 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190419141944eusmtrp1dfa37bfa4f1f85a58af6bab1b495a033~W5fpf8l8O1759317593eusmtrp1a; Fri, 19 Apr 2019 14:19:44 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-1f-5cb9d9017813 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8B.02.04146.009D9BC5; Fri, 19 Apr 2019 15:19:44 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190419141943eusmtip24b293dda9237ad973e6b4f13ad4de701~W5fouhMCN3043830438eusmtip2A; Fri, 19 Apr 2019 14:19:43 +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 Cc: 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, Lukasz Luba Subject: [PATCH v6 04/10] Documentation: dt: device tree bindings for LPDDR3 memories Date: Fri, 19 Apr 2019 16:19:22 +0200 Message-Id: <1555683568-20882-5-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555683568-20882-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0hTYRjHe3cuO1uuTlPyTcVqYFSUGgS9YYVCHw5WkH1ISMmWHlRyU3c0 Mw1mRd61NMqWl9RCM8PbELV0upZGU+cl85KWl5FaZuWNtKhcZ9W33/N//s/lfXgpTGogHKhQ ZRSrUsrDZKQYr21dNu0Gg/X+7rWjW1BVTgWB+hcmCVRg6CTQo68TAGW/zBOg9lQFypz4iCGT qVKIOi7PCNGQ2gn1NuSSaD7dAFCOqUmAHhtGhOhNQimJns0kEkj3yhu9+b4OLb0YB562zNJi Fs7cVXfjTL1mRMhUlyWTTPqVWZJpmX0qYDK0ZYCpMcYx89XOx0WnxAeC2LDQ86zK7dAZcUhf 1QIeoXO5sJjTB9TghnMKoChI74V9+SdTgJiS0qUA9hT0AT5YAHAgtQXng3kAl/vnVjOiPxUJ vTNWVwmApqEG4l9Jt7lIYOlL0q6wrizSUmBHx8Hhfh1m8WD0jAB2rHzDLQlb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PdYLV cAp4S+xauYUN4iAviQ3X9jJNYORbwMiwilEktbQ4Nz232FCvODG3uDQvXS85P3cTIzCSth37 uXkH46WNwYcYBTgYlXh4D0zaGSPEmlhWXJl7iFGCg1lJhNcxZUuMEG9KYmVValF+fFFpTmrx IUZToKMmMkuJJucDozyvJN7Q1NDcwtLQ3Njc2MxCSZz3vEFllJBAemJJanZqakFqEUwfEwen VAOjo7PW89WM31pnT3qiZHvELerCzluO0W9dqnZu0XwRwb1l0/sdUrWZAgKdL/y3Kt5P/F/1 97r+Lq5dR1sDxY00XLVy2pqO9iV/ezV31+fGoJypBkdP6bytW+o3oWAR48GJCafnavvz+Nz+ 5/r6ygah71v3GR/uuqeaFNkqfoDxie7efM1Hr1pilFiKMxINtZiLihMBvG/z/boCAAA= X-CMS-MailID: 20190419141945eucas1p1c95d65f261f82da5c856c0f2fcf1ce87 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190419141945eucas1p1c95d65f261f82da5c856c0f2fcf1ce87 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190419141945eucas1p1c95d65f261f82da5c856c0f2fcf1ce87 References: <1555683568-20882-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ++++++++++++++++++++++ 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 { + 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 + +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