Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4229254rwb; Fri, 30 Sep 2022 15:10:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6TvYxoFxCsthe93igOe874u+R0WM6KHd6sMramy5/h15L1+UB+xMxzgjcrF0L8A7uTo7cL X-Received: by 2002:a17:907:6e93:b0:782:4248:e639 with SMTP id sh19-20020a1709076e9300b007824248e639mr7656762ejc.184.1664575856357; Fri, 30 Sep 2022 15:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664575856; cv=none; d=google.com; s=arc-20160816; b=O2sFBhuaztexPt1FIe3hNvu0ddcfDWhkEa24awVjcVZ6y07Lqfyzq/YgJVqaz0NwCh lorUUkH1kctjqYYqiBK/dVGTwCZms9Vq/D45DR7MQas9thqBw5Erwc4mnpZDUz8ynlId wd6O+VWjiToq2r70+KPC3hbQF8l+nsb66qwSjbuPSHECaDuF2coV83W+9amLVpy51nI4 RQrjkv8i60WvWXtHx34Mvr0IcXp7uD7OSfizeyF3RNlvnK7NizcLHJc7WC2DIlFkEbQC vHXFlnKR6ri7h+KVQIrOfCobUuAbFE1GghC2UyYEGOwQyWYka3Wwm8W0gf5m+jwUMOrO GkaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yYShJcdgyNXV7ZdCaqSPGIpCWtNNHbjqMrDSIEy3uh8=; b=jLUhKij8vJIM2U1NGmuT6zRDpsoExoc65UHCgTEqL0Qktwx4UclZWAIROWadnUo9RU G66FK99TJcoNDB9cZbeGOe+XBYFkgLgyysN51DnuDPXUS4wv5YWfgibMxpo+xAaKJXFL o/UvRsmyrcgkkg2oRcfVqmcnV9qmcqwd0yxEW48VDRZ8ppWsxKgk9Z+HoQJ9yGCwxGk/ KyHlBFF1RgU8Pj2jnyYr0iIN/y/5ud8S9f25Y4pesaE0Xr0SLtbya/Lh7RQSp1+iT/5M zJmm3u07amaMNHzswKbpd0Mvw0YJQhcsG87aEUmUA5pFHrsayU5dRKKzxx6SVUAvtmnN Fs0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LZGmwLer; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020aa7d60b000000b00448a3d713ffsi2667831edr.292.2022.09.30.15.10.31; Fri, 30 Sep 2022 15:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LZGmwLer; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232650AbiI3WGq (ORCPT + 99 others); Fri, 30 Sep 2022 18:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232539AbiI3WGe (ORCPT ); Fri, 30 Sep 2022 18:06:34 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6C52E9CD5 for ; Fri, 30 Sep 2022 15:06:22 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id l12so5206341pjh.2 for ; Fri, 30 Sep 2022 15:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=yYShJcdgyNXV7ZdCaqSPGIpCWtNNHbjqMrDSIEy3uh8=; b=LZGmwLerV8+osrz9eS82r32YCnbFlbRz3a+nZirmW+tscO7v4btLkcYhUJ5bHTP74x NoKpa2yLL2Nzng2i/gRpQbEiHX1Wgg4Ra1qMNVM+2fTJuYWwbwenelEnEkOFbd5ZxDwQ bn4JMg5ZlK9PIedl9STPxzvhDAlw+trEFWuE0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=yYShJcdgyNXV7ZdCaqSPGIpCWtNNHbjqMrDSIEy3uh8=; b=OscbPNI1IXQK5uIAYPf9hIKzidnjeqhSc15FAeEdWUa/K7PITfrEFOBt5zAH7A5dz0 CNMByhI/ucbhBoXcfew1r1m3H6WASJxb4WLEYRc2nTWEZGr6X1zljLPqksGAOh13PTc+ s+Lu46wfzN0jYgQQzMkqQw0gkje6uL1fRdSSa4qeVc14qQRCBWxyvWIrMrE9b7JwR9gV iRMrFTOFsW/T/cKURiosdkPEYOwTPwpHMDpXBfzKKwdquA5hhpsjULi6mSmwl+glfcxr L3Mf1uz0XVbSWihM2fXwyMqRS5467L9+2TOOcO3rB6LieqMMlZ2ljl2yAFBFhBKQDEop xQiA== X-Gm-Message-State: ACrzQf3PHJAviMVncVVgZKwOwweS5NmUUFzOSfOcnK3Fm/PUzPms4o9b JB/fV0JEdPx6UgKYHlsnfLGLBg== X-Received: by 2002:a17:902:ab89:b0:17a:67c:b9e9 with SMTP id f9-20020a170902ab8900b0017a067cb9e9mr10896874plr.55.1664575575756; Fri, 30 Sep 2022 15:06:15 -0700 (PDT) Received: from jwerner-p920.mtv.corp.google.com ([2620:15c:9d:2:ab9d:610e:ee54:d4ca]) by smtp.gmail.com with ESMTPSA id f91-20020a17090a706400b001facf455c91sm5769364pjk.21.2022.09.30.15.06.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 15:06:15 -0700 (PDT) From: Julius Werner To: Krzysztof Kozlowski Cc: Rob Herring , Dmitry Osipenko , Doug Anderson , Jian-Jia Su , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Julius Werner , Rob Herring Subject: [PATCH 3/4 v5] dt-bindings: memory: Add jedec,lpddr4 and jedec,lpddr5 bindings Date: Fri, 30 Sep 2022 15:06:05 -0700 Message-Id: <20220930220606.303395-3-jwerner@chromium.org> X-Mailer: git-send-email 2.38.0.rc1.362.ged0d419d3c-goog In-Reply-To: <20220930220606.303395-1-jwerner@chromium.org> References: <20220930220606.303395-1-jwerner@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds bindings for LPDDR4 and LPDDR5 memory analogous to the existing bindings for LPDDR2 and LPDDR3. For now, the new types are only needed for topology description, so other properties like timing parameters are omitted. They can be added later if needed. Signed-off-by: Julius Werner Reviewed-by: Rob Herring --- .../ddr/jedec,lpddr-props.yaml | 4 ++ .../memory-controllers/ddr/jedec,lpddr4.yaml | 35 ++++++++++++++ .../memory-controllers/ddr/jedec,lpddr5.yaml | 46 +++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr4.yaml create mode 100644 Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr5.yaml Changelog: - v2 - removed minItems - moved `$ref` below `maintainers` - renamed example node from `lpddr4` to `lpddr` - v3 - removed manufacturer-id property from examples - v4 - removed quotes from schema $ref strings - v5 - updated reviewed-by list diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr-props.yaml b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr-props.yaml index 4114cfa8de67f1..92ef660888f318 100644 --- a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr-props.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr-props.yaml @@ -45,9 +45,13 @@ properties: - 512 - 1024 - 2048 + - 3072 - 4096 + - 6144 - 8192 + - 12288 - 16384 + - 24576 - 32768 io-width: diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr4.yaml b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr4.yaml new file mode 100644 index 00000000000000..a078892fecee36 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr4.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr4.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPDDR4 SDRAM compliant to JEDEC JESD209-4 + +maintainers: + - Krzysztof Kozlowski + +allOf: + - $ref: jedec,lpddr-props.yaml# + +properties: + compatible: + items: + - pattern: "^lpddr4-[0-9a-f]{2},[0-9a-f]{4}$" + - const: jedec,lpddr4 + +required: + - compatible + - density + - io-width + +unevaluatedProperties: false + +examples: + - | + lpddr { + compatible = "lpddr4-ff,0100", "jedec,lpddr4"; + density = <8192>; + io-width = <16>; + revision-id = <1 0>; + }; diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr5.yaml b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr5.yaml new file mode 100644 index 00000000000000..e441dac5f15445 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr5.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr5.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPDDR5 SDRAM compliant to JEDEC JESD209-5 + +maintainers: + - Krzysztof Kozlowski + +allOf: + - $ref: jedec,lpddr-props.yaml# + +properties: + compatible: + items: + - pattern: "^lpddr5-[0-9a-f]{2},[0-9a-f]{4}$" + - const: jedec,lpddr5 + + serial-id: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + Serial IDs read from Mode Registers 47 through 54. One byte per uint32 + cell (i.e. ). + maxItems: 8 + items: + minimum: 0 + maximum: 255 + +required: + - compatible + - density + - io-width + +unevaluatedProperties: false + +examples: + - | + lpddr { + compatible = "lpddr5-01,0200", "jedec,lpddr5"; + density = <8192>; + io-width = <8>; + revision-id = <2 0>; + serial-id = <3 1 0 0 0 0 0 0>; + }; -- 2.31.0