From patchwork Wed Oct 6 22:46:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 1537454 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=mqfhoIhc; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HPqNK50YYz9sRN for ; Thu, 7 Oct 2021 09:47:45 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229965AbhJFWth (ORCPT ); Wed, 6 Oct 2021 18:49:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239692AbhJFWtg (ORCPT ); Wed, 6 Oct 2021 18:49:36 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A32FFC061746; Wed, 6 Oct 2021 15:47:43 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id l7so4300202qkk.0; Wed, 06 Oct 2021 15:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eJzkAxAf4pzgN3Z1+ho4aj8iG+zpgpgw5v1wwaur2Uk=; b=mqfhoIhcF6l5svkA/pmE4pwHZVRlLCY1LiDwyFGHMeIc/bz1S2AEYcqrB/FOJWQWOl kGTTdeJG/SiKzwV98c6yqHv7K7oCtc0FaoZz729NIqevObIb+0V9/FGp0mKuw7CEMDlh ywsILH0N6HA4Xit5cNjHQNaaBk0SXBsqUmqqaQXF+MsdAczAsofcNJl7qi+Sbpit/JUP +DZNVV0Ot9TP+oi3d+UPI8j7k1Edohkc9aI+ogyyOI5OtZgOHcYoKtrnYQia5FeQWzNY Zu237sY3l1uB1UnZ8ZFBSvn3X2YJclWsOIOPp+LqMc+iR6n6Q2Xt8QxsXXC+swlfJwpQ aMvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eJzkAxAf4pzgN3Z1+ho4aj8iG+zpgpgw5v1wwaur2Uk=; b=4tt9GK+bWQ4QA4KYaoHPY8QQ6U/KihgNUz6ooWRMfvzeSnbc6aDlU3S7zgDSeViMpt ewOUJe8w36eIyIWuE67In0RF0bk0MN3cN3YM2wNN0HWs1RSYkcuvoDNleEdX0JORgK14 R9S8djnBiw0PRBGPpeKDFtKygqVcKqcHpRoH4IwnjpY3mCNKuWQy9jXnqPxbQP/aAz3G Q1IR289Zp/GOgPVT3Uch+AoFqCTqxdkp52nMxV86jHViCLot4mbENM56HamJNvc00uS8 ZUO+npzhQf1GAKzDp1YmfO1wiy4YXNEFm2DJ+/7utxBW+s/rtzcrjAIZfEKt3+9t+mrm HM3w== X-Gm-Message-State: AOAM530ujGh26/4g2mPvYkIbsn62vWLsBarOVSBvMYHC6nZCEfOyDRiR rLdk5gqXAar5kiTch81ft5jMn2kMDgU= X-Google-Smtp-Source: ABdhPJwO/wPpPPDzjFNoo9ZNqpjkgkXY3mRRkfnTzbzLweSXj0M/86jtOjjH7S9InZTAJeZ6gvoNew== X-Received: by 2002:a05:620a:288b:: with SMTP id j11mr645400qkp.175.1633560462867; Wed, 06 Oct 2021 15:47:42 -0700 (PDT) Received: from localhost.localdomain (79-139-163-57.dynamic.spd-mgts.ru. [79.139.163.57]) by smtp.gmail.com with ESMTPSA id n11sm14738166qtk.92.2021.10.06.15.47.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 15:47:42 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Krzysztof Kozlowski , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v5 1/9] dt-bindings: Relocate DDR bindings Date: Thu, 7 Oct 2021 01:46:51 +0300 Message-Id: <20211006224659.21434-2-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211006224659.21434-1-digetx@gmail.com> References: <20211006224659.21434-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Move DDR bindings to memory-controllers directory to make them more discoverable. Suggested-by: Krzysztof Kozlowski Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../bindings/{ => memory-controllers}/ddr/lpddr2-timings.txt | 0 .../devicetree/bindings/{ => memory-controllers}/ddr/lpddr2.txt | 0 .../bindings/{ => memory-controllers}/ddr/lpddr3-timings.txt | 0 .../devicetree/bindings/{ => memory-controllers}/ddr/lpddr3.txt | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename Documentation/devicetree/bindings/{ => memory-controllers}/ddr/lpddr2-timings.txt (100%) rename Documentation/devicetree/bindings/{ => memory-controllers}/ddr/lpddr2.txt (100%) rename Documentation/devicetree/bindings/{ => memory-controllers}/ddr/lpddr3-timings.txt (100%) rename Documentation/devicetree/bindings/{ => memory-controllers}/ddr/lpddr3.txt (100%) diff --git a/Documentation/devicetree/bindings/ddr/lpddr2-timings.txt b/Documentation/devicetree/bindings/memory-controllers/ddr/lpddr2-timings.txt similarity index 100% rename from Documentation/devicetree/bindings/ddr/lpddr2-timings.txt rename to Documentation/devicetree/bindings/memory-controllers/ddr/lpddr2-timings.txt diff --git a/Documentation/devicetree/bindings/ddr/lpddr2.txt b/Documentation/devicetree/bindings/memory-controllers/ddr/lpddr2.txt similarity index 100% rename from Documentation/devicetree/bindings/ddr/lpddr2.txt rename to Documentation/devicetree/bindings/memory-controllers/ddr/lpddr2.txt diff --git a/Documentation/devicetree/bindings/ddr/lpddr3-timings.txt b/Documentation/devicetree/bindings/memory-controllers/ddr/lpddr3-timings.txt similarity index 100% rename from Documentation/devicetree/bindings/ddr/lpddr3-timings.txt rename to Documentation/devicetree/bindings/memory-controllers/ddr/lpddr3-timings.txt diff --git a/Documentation/devicetree/bindings/ddr/lpddr3.txt b/Documentation/devicetree/bindings/memory-controllers/ddr/lpddr3.txt similarity index 100% rename from Documentation/devicetree/bindings/ddr/lpddr3.txt rename to Documentation/devicetree/bindings/memory-controllers/ddr/lpddr3.txt From patchwork Wed Oct 6 22:46:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 1537459 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=bMfrgW4P; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HPqQ85MjCz9sS8 for ; Thu, 7 Oct 2021 09:49:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239767AbhJFWvK (ORCPT ); Wed, 6 Oct 2021 18:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239794AbhJFWti (ORCPT ); Wed, 6 Oct 2021 18:49:38 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 997D1C061764; Wed, 6 Oct 2021 15:47:45 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id b65so4180214qkc.13; Wed, 06 Oct 2021 15:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8w8i+occt62gTrQveuARNGY9wHRKGULr3p5+LKeShiM=; b=bMfrgW4Pbohe7CUUL9rb9E4p+JpRrnDy4nsoxepUyRye31isUqbyqhosVlZQXOTHdy KuGfuG2N/uPgUunfvMponEVpygEp9cxjL704KE6hbdgSGiVvoCsDQxVDJLXZPtfc1TL5 btxChpCJZHI/6RPL1rPQrDiI2sl2yAUa0TRSqfIZDRnVZ20bn0Cj2dxQTABzilJ3NuJW 78iiJo53weE5lNhOr6c0tcdgDNIh8GJoUbgEGFFfexgW2TyrsDbZnHv4GHzgtOK4bpG4 423Wl8ueR3A4CXPdksXHsp4CUdyyyfQwPyxQMf0V8b3d/95/qwfUi0vX+hGKPY+66g/E so0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8w8i+occt62gTrQveuARNGY9wHRKGULr3p5+LKeShiM=; b=rupn5YDnjbq8X6nwsfZk1LFJ50EsyQVqU/HqzGAMI0SOSOhB6K4QQAAZIn6AEOzKpx B+WUN/QA4pnwW9VOZCNjvq2Oi2uXBaNEWMajJI5ZbwWQauu4Bz0y1XDlNnd2IzuIRuH6 l0M3ZkHVO/jc4NllCwwcyR4dXNZhjzDHlFGCy0Au01rXzSYHv3UdkZhrr/kxN4+xziFb uIFIRPRlQsVwYv1TuLK3E7BYbi3suhCmB/zQcLiopMeZ3pWYLZJ7yHvO+R53DUqYt1VX J+Xt6MjYOXLBjsHp5Hb36DtrNEd/833xMF3IsRCbkN9RGPZGWU3Hv3UrcR3PQujz+lhE 1ZlQ== X-Gm-Message-State: AOAM533im98RGkm5/XQGjUedPuV/UWnUCGycpyOoOC1PtnWFT0Xkuv1u gMqT/ivHVn+wQVYBVzP2b031bFBWt48= X-Google-Smtp-Source: ABdhPJw80lIzBx+6SkJDJhaxokCT7zo9yUsM2cDlfsVp4HpjlcJbvh29oA0iUm5yXGN18c38q5/mDw== X-Received: by 2002:a37:bc47:: with SMTP id m68mr662112qkf.115.1633560464743; Wed, 06 Oct 2021 15:47:44 -0700 (PDT) Received: from localhost.localdomain (79-139-163-57.dynamic.spd-mgts.ru. [79.139.163.57]) by smtp.gmail.com with ESMTPSA id n11sm14738166qtk.92.2021.10.06.15.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 15:47:44 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Krzysztof Kozlowski , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v5 2/9] dt-bindings: memory: lpddr2: Convert to schema Date: Thu, 7 Oct 2021 01:46:52 +0300 Message-Id: <20211006224659.21434-3-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211006224659.21434-1-digetx@gmail.com> References: <20211006224659.21434-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert LPDDR2 binding to schema. I removed obsolete ti,jedec-lpddr2-* compatibles since they were never used by device-trees and by the code. I also changed "Elpida" compatible prefix to lowercase "elpida". Suggested-by: Krzysztof Kozlowski Signed-off-by: Dmitry Osipenko Reviewed-by: Rob Herring --- .../memory-controllers/ddr/jedec,lpddr2.yaml | 208 ++++++++++++++++++ .../memory-controllers/ddr/lpddr2.txt | 102 --------- 2 files changed, 208 insertions(+), 102 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml delete mode 100644 Documentation/devicetree/bindings/memory-controllers/ddr/lpddr2.txt diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml new file mode 100644 index 000000000000..f931fe910ce5 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml @@ -0,0 +1,208 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPDDR2 SDRAM compliant to JEDEC JESD209-2 + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + oneOf: + - items: + - enum: + - elpida,ECB240ABACN + - enum: + - jedec,lpddr2-s4 + - items: + - enum: + - jedec,lpddr2-s2 + - items: + - enum: + - jedec,lpddr2-nvm + + density: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Density in megabits of SDRAM chip. Obtained from device datasheet. + enum: + - 64 + - 128 + - 256 + - 512 + - 1024 + - 2048 + - 4096 + - 8192 + - 16384 + - 32768 + + io-width: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + IO bus width in bits of SDRAM chip. Obtained from device datasheet. + enum: + - 32 + - 16 + - 8 + + tRRD-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + Active bank a to active bank b in terms of number of clock cycles. + Obtained from device datasheet. + + tWTR-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + Internal WRITE-to-READ command delay in terms of number of clock cycles. + Obtained from device datasheet. + + tXP-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + Exit power-down to next valid command delay in terms of number of clock + cycles. Obtained from device datasheet. + + tRTP-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + Internal READ to PRECHARGE command delay in terms of number of clock + cycles. Obtained from device datasheet. + + tCKE-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + CKE minimum pulse width (HIGH and LOW pulse width) in terms of number + of clock cycles. Obtained from device datasheet. + + tRPab-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + Row precharge time (all banks) in terms of number of clock cycles. + Obtained from device datasheet. + + tRCD-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + RAS-to-CAS delay in terms of number of clock cycles. Obtained from + device datasheet. + + tWR-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + WRITE recovery time in terms of number of clock cycles. Obtained from + device datasheet. + + tRASmin-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + Row active time in terms of number of clock cycles. Obtained from device + datasheet. + + tCKESR-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + CKE minimum pulse width during SELF REFRESH (low pulse width during + SELF REFRESH) in terms of number of clock cycles. Obtained from device + datasheet. + + tFAW-min-tck: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 16 + description: | + Four-bank activate window in terms of number of clock cycles. Obtained + from device datasheet. + +patternProperties: + "^lpddr2-timings": + type: object + description: | + The lpddr2 node may have one or more child nodes of type "lpddr2-timings". + "lpddr2-timings" provides AC timing parameters of the device for + a given speed-bin. The user may provide the timings for as many + speed-bins as is required. Please see Documentation/devicetree/ + bindings/memory-controllers/ddr/lpddr2-timings.txt for more information + on "lpddr2-timings". + +required: + - compatible + - density + - io-width + +additionalProperties: false + +examples: + - | + elpida_ECB240ABACN: lpddr2 { + compatible = "elpida,ECB240ABACN", "jedec,lpddr2-s4"; + density = <2048>; + io-width = <32>; + + tRPab-min-tck = <3>; + tRCD-min-tck = <3>; + tWR-min-tck = <3>; + tRASmin-min-tck = <3>; + tRRD-min-tck = <2>; + tWTR-min-tck = <2>; + tXP-min-tck = <2>; + tRTP-min-tck = <2>; + tCKE-min-tck = <3>; + tCKESR-min-tck = <3>; + tFAW-min-tck = <8>; + + timings_elpida_ECB240ABACN_400mhz: lpddr2-timings0 { + compatible = "jedec,lpddr2-timings"; + min-freq = <10000000>; + max-freq = <400000000>; + tRPab = <21000>; + tRCD = <18000>; + tWR = <15000>; + tRAS-min = <42000>; + tRRD = <10000>; + tWTR = <7500>; + tXP = <7500>; + tRTP = <7500>; + tCKESR = <15000>; + tDQSCK-max = <5500>; + tFAW = <50000>; + tZQCS = <90000>; + tZQCL = <360000>; + tZQinit = <1000000>; + tRAS-max-ns = <70000>; + }; + + timings_elpida_ECB240ABACN_200mhz: lpddr2-timings1 { + compatible = "jedec,lpddr2-timings"; + min-freq = <10000000>; + max-freq = <200000000>; + tRPab = <21000>; + tRCD = <18000>; + tWR = <15000>; + tRAS-min = <42000>; + tRRD = <10000>; + tWTR = <10000>; + tXP = <7500>; + tRTP = <7500>; + tCKESR = <15000>; + tDQSCK-max = <5500>; + tFAW = <50000>; + tZQCS = <90000>; + tZQCL = <360000>; + tZQinit = <1000000>; + tRAS-max-ns = <70000>; + }; + }; diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/lpddr2.txt b/Documentation/devicetree/bindings/memory-controllers/ddr/lpddr2.txt deleted file mode 100644 index ddd40121e6f6..000000000000 --- a/Documentation/devicetree/bindings/memory-controllers/ddr/lpddr2.txt +++ /dev/null @@ -1,102 +0,0 @@ -* LPDDR2 SDRAM memories compliant to JEDEC JESD209-2 - -Required properties: -- compatible : Should be one of - "jedec,lpddr2-nvm", "jedec,lpddr2-s2", - "jedec,lpddr2-s4" - - "ti,jedec-lpddr2-s2" should be listed if the memory part is LPDDR2-S2 type - - "ti,jedec-lpddr2-s4" should be listed if the memory part is LPDDR2-S4 type - - "ti,jedec-lpddr2-nvm" should be listed if the memory part is LPDDR2-NVM type - -- density : representing density in Mb (Mega bits) - -- io-width : representing bus width. Possible values are 8, 16, and 32 - -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. -- tRRD-min-tck -- tWTR-min-tck -- tXP-min-tck -- tRTP-min-tck -- tCKE-min-tck -- tRPab-min-tck -- tRCD-min-tck -- tWR-min-tck -- tRASmin-min-tck -- tCKESR-min-tck -- tFAW-min-tck - -Child nodes: -- The lpddr2 node may have one or more child nodes of type "lpddr2-timings". - "lpddr2-timings" provides AC timing parameters of the device for - a given speed-bin. The user may provide the timings for as many - speed-bins as is required. Please see Documentation/devicetree/ - bindings/ddr/lpddr2-timings.txt for more information on "lpddr2-timings" - -Example: - -elpida_ECB240ABACN : lpddr2 { - compatible = "Elpida,ECB240ABACN","jedec,lpddr2-s4"; - density = <2048>; - io-width = <32>; - - tRPab-min-tck = <3>; - tRCD-min-tck = <3>; - tWR-min-tck = <3>; - tRASmin-min-tck = <3>; - tRRD-min-tck = <2>; - tWTR-min-tck = <2>; - tXP-min-tck = <2>; - tRTP-min-tck = <2>; - tCKE-min-tck = <3>; - tCKESR-min-tck = <3>; - tFAW-min-tck = <8>; - - timings_elpida_ECB240ABACN_400mhz: lpddr2-timings@0 { - compatible = "jedec,lpddr2-timings"; - min-freq = <10000000>; - max-freq = <400000000>; - tRPab = <21000>; - tRCD = <18000>; - tWR = <15000>; - tRAS-min = <42000>; - tRRD = <10000>; - tWTR = <7500>; - tXP = <7500>; - tRTP = <7500>; - tCKESR = <15000>; - tDQSCK-max = <5500>; - tFAW = <50000>; - tZQCS = <90000>; - tZQCL = <360000>; - tZQinit = <1000000>; - tRAS-max-ns = <70000>; - }; - - timings_elpida_ECB240ABACN_200mhz: lpddr2-timings@1 { - compatible = "jedec,lpddr2-timings"; - min-freq = <10000000>; - max-freq = <200000000>; - tRPab = <21000>; - tRCD = <18000>; - tWR = <15000>; - tRAS-min = <42000>; - tRRD = <10000>; - tWTR = <10000>; - tXP = <7500>; - tRTP = <7500>; - tCKESR = <15000>; - tDQSCK-max = <5500>; - tFAW = <50000>; - tZQCS = <90000>; - tZQCL = <360000>; - tZQinit = <1000000>; - tRAS-max-ns = <70000>; - }; - -} From patchwork Wed Oct 6 22:46:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 1537461 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=JyKIn1MV; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HPqQ96BHsz9sf8 for ; Thu, 7 Oct 2021 09:49:21 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239933AbhJFWvK (ORCPT ); Wed, 6 Oct 2021 18:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239824AbhJFWtk (ORCPT ); Wed, 6 Oct 2021 18:49:40 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 671A1C061762; Wed, 6 Oct 2021 15:47:47 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id r1so4336234qta.12; Wed, 06 Oct 2021 15:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9bSDT4PncKUa8GX1h2NHuzdiEhd+wjlzkRZZUuWwZ9I=; b=JyKIn1MV6Jdo2pddeSlMq5cfLTvc9HotrStlBGS7/vJl5V+3Eshinz84bEg58BrfQX WD8PsjvopSrZI4vjAVEpssoT1ek+VFb2rJE5rj5Fw+Anh20JGhphEdaA7WZIqX0IzU/i /tVS9Bdq/meC76NPlmp2RNRnoVXgGSnKNIUxiLuX6SgJDJeJNf7DTJsdwSSGe+29d7eT BCTqAM4l3lFQvM0MknuR131N/YEokKsnYDqGwvyCjypn0dq4Mo/7ueGpueu1LOsE/DrD a0z5xDAKnP9WzjgNgtXTk6xw/ZnR1MkRFticXU6PsOZtBCPo9DWmcxgLaxUF02VzF+2Z 8bWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9bSDT4PncKUa8GX1h2NHuzdiEhd+wjlzkRZZUuWwZ9I=; b=GmR3NH1Hb7PlBanwVbBz4fdM33gLTV2rBA9s4GvrX6pWDt8KqdYStyrdx1BBQZpGO+ 6/qccbewWCSiUj7NSxf6gbOvP3uss3yISBX9f4SthOwmBFeFVf5m1TEFs8BMshrU2Iw0 UG2syFSf4YePviZJtDeJu155n5X9yYApuBSMvELjPi6tvLTKL2JlBXIMfnkGLxRUisa0 abcstrNk0qu3c1YTHFqJebJPHN4TCAa2ZOzVkRUZEx2XfDmsDwpvVxqsAKp3jMCFSr+O YP+25sP258kMzM8MWmzO7eJ4NWVdCNZHYHT3fQkSNPidJq97Dc6pDagOnBDYmmlamtHA euTw== X-Gm-Message-State: AOAM530n/p/5bm40OIDAecSzGA41XxbGwZLIr+xPs/0dWlUf4PqEfRMA vzBm8q3eqtCznkyerYhrJ2o= X-Google-Smtp-Source: ABdhPJxUuCcumIofHgKkYaGn3ugclE05eMivx31brWMfp4xd6BucQRvE2P0hl6iN+7zCtMRC0qB7ow== X-Received: by 2002:ac8:5ac7:: with SMTP id d7mr1024205qtd.382.1633560466623; Wed, 06 Oct 2021 15:47:46 -0700 (PDT) Received: from localhost.localdomain (79-139-163-57.dynamic.spd-mgts.ru. [79.139.163.57]) by smtp.gmail.com with ESMTPSA id n11sm14738166qtk.92.2021.10.06.15.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 15:47:46 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Krzysztof Kozlowski , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v5 3/9] dt-bindings: memory: lpddr2: Add revision-id properties Date: Thu, 7 Oct 2021 01:46:53 +0300 Message-Id: <20211006224659.21434-4-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211006224659.21434-1-digetx@gmail.com> References: <20211006224659.21434-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add optional revision-id standard LPDDR2 properties which will help to identify memory chip. Signed-off-by: Dmitry Osipenko Reviewed-by: Rob Herring --- .../memory-controllers/ddr/jedec,lpddr2.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml index f931fe910ce5..fe573750577e 100644 --- a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml @@ -24,6 +24,18 @@ properties: - enum: - jedec,lpddr2-nvm + revision-id1: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 255 + description: | + Revision 1 value of SDRAM chip. Obtained from device datasheet. + + revision-id2: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 255 + description: | + Revision 2 value of SDRAM chip. Obtained from device datasheet. + density: $ref: /schemas/types.yaml#/definitions/uint32 description: | @@ -151,6 +163,8 @@ examples: compatible = "elpida,ECB240ABACN", "jedec,lpddr2-s4"; density = <2048>; io-width = <32>; + revision-id1 = <1>; + revision-id2 = <0>; tRPab-min-tck = <3>; tRCD-min-tck = <3>; From patchwork Wed Oct 6 22:46:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 1537468 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=MABdq9r8; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HPqQP5zKnz9sS8 for ; Thu, 7 Oct 2021 09:49:33 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239828AbhJFWvM (ORCPT ); Wed, 6 Oct 2021 18:51:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239851AbhJFWtm (ORCPT ); Wed, 6 Oct 2021 18:49:42 -0400 Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58657C061746; Wed, 6 Oct 2021 15:47:49 -0700 (PDT) Received: by mail-qv1-xf2b.google.com with SMTP id a14so2987872qvb.6; Wed, 06 Oct 2021 15:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BzEsakUalTivewsFW2Yd2Avwfz1+J2TGxCg0pwP1Sao=; b=MABdq9r8Ztjgpoj3hLbtjNdSUcuRFEJXrFmP4RZBFiWAI9YTl1E6NJ51ERjKZvHR14 aszWembgYbDQhecfItgOIulDGdeqhunuYDkO4Xsh42j5gMGJDH0+mLwEwR6PLWIkYdAa h826yoa9wVME+a/94if6OXUcdMYyDpn89jPP5SFG+vJwlzFvDLcp1zF7hOgLby7BlUrZ aa3qOClVfNRQdt4HqDBpLrN/wMYDnVygyjyTIKptj5bd0gBeEet9Ri4Tm1/l2ZdwCEE6 +sCda+BarTm1nYojpLHyXJI7uBg9BNC4Y0sqZb+SRDEW/KD2p9WLfK8Hakb9zjp3n+oK Safg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BzEsakUalTivewsFW2Yd2Avwfz1+J2TGxCg0pwP1Sao=; b=eaMnCs68V05Gb9q9fvjJ1xiw3lwzfpDsI/MZpqYXM83akL2wivXR2nTMrDkbHbMhNE VFADGUkVBbeUQEBGgUzVDXqgXe6eWcTfhe5dmQWWacOYiabzh9EgLAM6UjoiPMFlmuDl tvyCQ8cdEwQmckZWZ8YONBgPseXNfx4xvyU6bIzMDc3TUVxKw6RyjPh25TQB90BTh9tS UXLHNw94PHK/rn8brHJpKw09gCWTJ2bbKz9pivpDQ1QQr6TGMJC8lvpCmWqQdrD0PSQZ YkOQLYKDKaFe35wK1ZXCMBVAbIDxRY+XAAfARKxwz9UBo6IeREnRE8Tyfy0zFZ6BhfGu XMxQ== X-Gm-Message-State: AOAM5300f02/NSmhujknu/7Yg4QnQ7OUfuuFO1ME3VMDYgZMZelY2sYu P5HOjDLV+RSBGUjDMS2MKI1xrLrT6w8= X-Google-Smtp-Source: ABdhPJzL0zou6p35ipO4N2b/ob7VuhRIRm3gyUHUrRn8PRvp4jtUv21D+K6sWNNe4xXqp7vnb0yMpg== X-Received: by 2002:ad4:554a:: with SMTP id v10mr856362qvy.29.1633560468508; Wed, 06 Oct 2021 15:47:48 -0700 (PDT) Received: from localhost.localdomain (79-139-163-57.dynamic.spd-mgts.ru. [79.139.163.57]) by smtp.gmail.com with ESMTPSA id n11sm14738166qtk.92.2021.10.06.15.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 15:47:48 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Krzysztof Kozlowski , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v5 4/9] dt-bindings: memory: lpddr2: Document Elpida B8132B2PB-6D-F Date: Thu, 7 Oct 2021 01:46:54 +0300 Message-Id: <20211006224659.21434-5-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211006224659.21434-1-digetx@gmail.com> References: <20211006224659.21434-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Elpida B8132B2PB-6D-F memory chip is used by ASUS Transformer TF101 tablet, add compatible for it. We need to specify this compatible it for a device-tree node containing corresponding memory timings in order to allow software to match the timings with the detected hardware. Signed-off-by: Dmitry Osipenko Reviewed-by: Rob Herring --- .../devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml index fe573750577e..25ed0266f6dd 100644 --- a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml @@ -15,6 +15,7 @@ properties: - items: - enum: - elpida,ECB240ABACN + - elpida,B8132B2PB-6D-F - enum: - jedec,lpddr2-s4 - items: From patchwork Wed Oct 6 22:46:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 1537462 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=gwzlD0aO; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HPqQB3c0vz9sRN for ; Thu, 7 Oct 2021 09:49:22 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239812AbhJFWvM (ORCPT ); Wed, 6 Oct 2021 18:51:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239867AbhJFWto (ORCPT ); Wed, 6 Oct 2021 18:49:44 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2140AC061753; Wed, 6 Oct 2021 15:47:51 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id d20so2983238qvm.8; Wed, 06 Oct 2021 15:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BvWjlblERvEujcsevvSOTWFd4bsGuB/Z9p30ro3lPrw=; b=gwzlD0aOL23lNlP8PhJuLLGOgDLD6QhM2OQx2C7f/VQeC3yd6hXRnn6OqD/8ZpHCDx RHb4aQoCMQuJAXpqE9hGavZgD3DjKT+9uOb+7qtNByK4ZAy7gpaurH6x9XVzGUOzhQIn td4v0TCAHIf4/IXvbfEAC+lvtb+j42sG0apzpGArklIFrkkFfZdHFCT4FbRYBA3UbfQC 6PGON3Ko86+rTu7dM89AYQ3i8q86SnHD1heAZx9UWtoAbeDF35Am0ZvIiaD8ADcRFUAN 4N2zCSHPQWkHYAUnE5ZAucXD7iigIc6BqdP8Q93WdaiZqwVL/bUgUI3sKgTTdC/5sVIa JKUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BvWjlblERvEujcsevvSOTWFd4bsGuB/Z9p30ro3lPrw=; b=KnIID7gXQ+EdVJUqDdaiN/AHDXUirKRdpXF2fp4ty1ZkXsH7AQdDBlNvChNFbpg4oz 0NNizho6K5ArErVKlJWROfkcv5Y519bP6Rw03DAknsq4YoK32G/YUfDRKx6TSVAlo9EG vcfaH+rA7CfN3PnnLxzPLjCe81vDqpnvU1UjLE5chJtDN4WZaNbrBNI8JXTppai4aJUC Iq5+pXQkhNCSI86bKJZBnRQJAieU2tBSPtv0xz28hrADjENYhrxuBjL2lkNS7pBgc/M/ W8Lw57azHmTs79g5I8CglLzdQmZWAWrv+9PH3j94a9rpOsJeyIK5mj1VfhoVQdsH93bh 15Dg== X-Gm-Message-State: AOAM53278av91zPRgIPNtclY6Cx7P9l5JpcevxaVXfU0wEy6dp2y0py4 w6WBX3WQ0C4MnRzleUqErAg= X-Google-Smtp-Source: ABdhPJz5SV9RKlXlMUdX2ZDCPsrhtW9/3gZgnErLYiCCzmmXfv6o/TQvjxviYxWldOmP20+Zx7a9DQ== X-Received: by 2002:a05:6214:140d:: with SMTP id n13mr740814qvx.22.1633560470385; Wed, 06 Oct 2021 15:47:50 -0700 (PDT) Received: from localhost.localdomain (79-139-163-57.dynamic.spd-mgts.ru. [79.139.163.57]) by smtp.gmail.com with ESMTPSA id n11sm14738166qtk.92.2021.10.06.15.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 15:47:50 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Krzysztof Kozlowski , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v5 5/9] dt-bindings: Add vendor prefix for Elpida Memory Date: Thu, 7 Oct 2021 01:46:55 +0300 Message-Id: <20211006224659.21434-6-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211006224659.21434-1-digetx@gmail.com> References: <20211006224659.21434-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Elpida Memory designed, manufactured and sold dynamic random-access memory (DRAM) products. It was acquired by Micron Technology in 2013, still there are many devices with components from Elpida. Document the vendor prefix. Signed-off-by: Dmitry Osipenko Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 1d77f151555b..8e06e3049a4f 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -355,6 +355,8 @@ patternProperties: description: Shenzhen Elida Technology Co., Ltd. "^elimo,.*": description: Elimo Engineering Ltd. + "^elpida,.*": + description: Elpida Memory, Inc. "^embest,.*": description: Shenzhen Embest Technology Co., Ltd. "^emlid,.*": From patchwork Wed Oct 6 22:46:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 1537464 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=IMcjp4DC; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4HPqQC693Dz9sRN for ; Thu, 7 Oct 2021 09:49:23 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239712AbhJFWvO (ORCPT ); Wed, 6 Oct 2021 18:51:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239905AbhJFWtr (ORCPT ); Wed, 6 Oct 2021 18:49:47 -0400 Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32EBDC061746; Wed, 6 Oct 2021 15:47:55 -0700 (PDT) Received: by mail-qv1-xf2b.google.com with SMTP id cv2so3001499qvb.5; Wed, 06 Oct 2021 15:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZazjXyZEVxAOGCWfu+WjAJm1Kzn5mq9JVmnxHrZ+lKg=; b=IMcjp4DCz/OrEO0xq3JWOgCvRsIKoJb8IzqJipjUr0GkNYJVw7Bh5wOuPwl9zJvmk6 4kQWEXDP0tSbradDRYVGSQVRNGALlyx4T7npK1q6tTbBVcE/aKY7t53SP94u+xkcbAJk DEE3jlAANZ/uoZMQfWZVilt1FB4wjLy5qyMha/U+PFjMvTJ+CPrkWzgiw9GaxrtNlGrd xNmAuZfYgf3VWJLwWvhpxShB1lWJzXctapTOHBHT/PO6mdoDHaLo5zoV/VSAD2GV9ROe jkqhL6wOju/rmERcg3HenDa1P2JXybgsREqK1lmV+TxF7mYnWoSRZaxtHWKFjK+lqZ+g RXIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZazjXyZEVxAOGCWfu+WjAJm1Kzn5mq9JVmnxHrZ+lKg=; b=NpBkOl6P6Z5nRp0kseHvQAkFlK0bpivZaYHkoOZKr2tebmL0C9fTJCn6CoaE6D4zFR 8EGAx9Jne4P7AhwNpZnJIif4od+EUlPmK2tLSvMgAnUSQcH2acQUPbfccHiQ6XrTj44p rLVXa4PRYycxPoQ3YjPXXWWRhgUYbXAYvqdsRKcwNC02xJOrYdVLK1GtXLz+1xhTWVLt DcWp65kEKPPYGYQMadlgC8BHi4k6MggZHi1eyDN2uJ0A4TCIy3up5LCfiTTNcnHiXqHL SBrp3FyhQNCRQSAzwQMiMrKXRlYH9qdIhxuyTW9URjsdqt2FZy4HKClxu4lEbHdvU8OS r67g== X-Gm-Message-State: AOAM533ysJ0u8XCntc2pvg6sIMZMQKcL86nugu9u8cqDSI0HjGdMpaAl M/b+jOAzT1Yyfq7mei59k+FcU6+hXn4= X-Google-Smtp-Source: ABdhPJzTpHDErj97IOCUDBGV+rjoxGnAt26phu4h/BjOa9n0QkRPeMcxbPgQ0lEpcsRdU82WVtWvNg== X-Received: by 2002:a0c:de0e:: with SMTP id t14mr702420qvk.41.1633560474431; Wed, 06 Oct 2021 15:47:54 -0700 (PDT) Received: from localhost.localdomain (79-139-163-57.dynamic.spd-mgts.ru. [79.139.163.57]) by smtp.gmail.com with ESMTPSA id n11sm14738166qtk.92.2021.10.06.15.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 15:47:54 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Krzysztof Kozlowski , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v5 7/9] dt-bindings: memory: tegra20: emc: Document new LPDDR2 sub-node Date: Thu, 7 Oct 2021 01:46:57 +0300 Message-Id: <20211006224659.21434-8-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211006224659.21434-1-digetx@gmail.com> References: <20211006224659.21434-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Some Tegra20 boards don't have RAM code stored in NVMEM, which is used for the memory chip identification and the identity information should be read out from LPDDR2 chip in this case. Document new sub-node containing generic LPDDR2 properties that will be used for the memory chip identification if RAM code isn't available. The identification is done by reading out memory configuration values from generic LPDDR2 mode registers of SDRAM chip and comparing them with the values of device-tree 'lpddr2' sub-node. Signed-off-by: Dmitry Osipenko Reviewed-by: Rob Herring --- .../nvidia,tegra20-emc.yaml | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-emc.yaml b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-emc.yaml index cac6842dc8f1..2fa44951cfde 100644 --- a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-emc.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-emc.yaml @@ -164,12 +164,20 @@ patternProperties: "#size-cells": const: 0 + lpddr2: + $ref: "ddr/jedec,lpddr2.yaml#" + type: object + patternProperties: "^emc-table@[0-9]+$": $ref: "#/$defs/emc-table" - required: - - nvidia,ram-code + oneOf: + - required: + - nvidia,ram-code + + - required: + - lpddr2 additionalProperties: false @@ -227,4 +235,15 @@ examples: 0x00000000 0x00000000 0x00000000 0x00000000>; }; }; + + emc-tables@1 { + reg = <1>; + + lpddr2 { + compatible = "elpida,B8132B2PB-6D-F", "jedec,lpddr2-s4"; + revision-id1 = <1>; + density = <2048>; + io-width = <16>; + }; + }; };