Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2585845rwn; Fri, 9 Sep 2022 16:45:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YIT+S+748IF/D2PJQjTbWg+cSU+FlrwPId3NLlhV9Z4Ch15ydfgt9iaYEtMX91vEMQQo9 X-Received: by 2002:a63:5c25:0:b0:435:2b72:cee8 with SMTP id q37-20020a635c25000000b004352b72cee8mr10556645pgb.290.1662767121808; Fri, 09 Sep 2022 16:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662767121; cv=none; d=google.com; s=arc-20160816; b=s/8IoPK4sU10MyvieuAta3SeWd9NQ7Vpe6pZ0RcnhUrn9mYSFmfXuVekRWIgIMg0Bk tfnxMS6navM9nttT5LjRk20/bTx3FdhHcuWTroryYHwio5BUV9aP26XOrn519YZXb4oO kIeRVGL1toDG6nEJFzEIB73ZS4ESD2MXoUEbcrZunyp7xObxgNlJYKdkHMrYMXY9Gd2m /P0a+OeDyYPBawBjHRKddZGAbZJR6e2+mCOkwHkKvU+O3qa+nPOoEpDLKgVOZWogqX13 O8sXxBMwGP9g20Q1eXYLuwUehP5Aeblb62Nf8ZNPBE3jwuRjgVZkbaB2KzDuweFBYYAw m1ag== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=l9PuuyJSQVeq02GdOw2R6VgeBJa3DnGqhNZZR4MkHcI=; b=UA7bif/T0oUSO5olUYmhOwQ8ZH3gHL9zeF7Qnacg00tNHeyry3cZUjy3EL/GTtTBo8 f7Mc2+/UGuzcEOAAKix6mmEbp4Aufgq8nVXni5TSrrup7hEyaO8lTrYtMPO8LmzpVsnJ uobcE+HqrmzfePjJJezTsXvo2MIkAFCjPXCX3mzo1e9cMZS+fYKeB4WZbUJizr+rRt96 SUK0WT1mqA4pR+x7ohNV8Uk435ycs6XzESQ7IsswgpdLGrjqD510mga37+BRSkm8FufP I6yblce3OSFooatTC6tu43EDZzcC8XXJ3fswK/EtqiWVwSPbnek/3iHlaXLO9pkiVFju 5x4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ks3rXN7x; 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 t9-20020a170902b20900b00177ef5e0f5fsi1619657plr.560.2022.09.09.16.45.10; Fri, 09 Sep 2022 16:45:21 -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=ks3rXN7x; 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 S229631AbiIIXVs (ORCPT + 99 others); Fri, 9 Sep 2022 19:21:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbiIIXVq (ORCPT ); Fri, 9 Sep 2022 19:21:46 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 761B96D9E0 for ; Fri, 9 Sep 2022 16:21:44 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id j12so3013284pfi.11 for ; Fri, 09 Sep 2022 16:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=l9PuuyJSQVeq02GdOw2R6VgeBJa3DnGqhNZZR4MkHcI=; b=ks3rXN7xrG05isUQ01v3nTatFgkPeTP1wLKXZrOTl7ms5XHhnZK3vEPNTnm1Vkks/5 kkV+wTPG8eEtVUpJicqlIODj6x3xJt/z3XSndMtAWaT00POhatjXJ3Qxjq2ojPv8kOln UYLFpaxg7uPUKBFERe5W3mlqpnZWWiRcb1l94= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=l9PuuyJSQVeq02GdOw2R6VgeBJa3DnGqhNZZR4MkHcI=; b=3px2Ilyii0xW8qgWB8pSPDYKb+vjphOVKmqaRKjmfwDNpvZwrUCEbzJX5zjNL494UK E0uaRlLzYOd5w2EhLYCzPeZ8iFTBqmXVE9oVQ0HQX7MzLOn4LZa/G8AsTIDm1jaUkmg0 YwhfVMufkVcYR4YMvQUHWOJ9E6URHVOjM1eyD5E8W2wUyPHfdmMoDn6w4wPDN3B3s6ro Y5dwEVsCUHaynlt8A4mcleqnitCYfu6ubhq7KVijdChjYJPhaz5nSWaDsH3BzuMHu8A+ MS/BfO+RTDueI3ZUhpfugP/CMbtx0dKZs/twZuSVCsYqOyF9N0AYcpksIlv6i2xeoke/ O78Q== X-Gm-Message-State: ACgBeo2YH5bWuzPaAuWdpuH53i5y5SpvcWbj9pYwyNHqwnr+jQNb/VpW 4Vnw0BjGHuO59dwxRjzP2UXfnw== X-Received: by 2002:a63:4907:0:b0:434:731f:c0ae with SMTP id w7-20020a634907000000b00434731fc0aemr14118564pga.405.1662765703958; Fri, 09 Sep 2022 16:21:43 -0700 (PDT) Received: from jwerner-p920.mtv.corp.google.com ([2620:15c:202:201:809e:14a9:9f5d:18f7]) by smtp.gmail.com with ESMTPSA id x127-20020a626385000000b0053b2681b0e0sm299449pfb.39.2022.09.09.16.21.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 16:21:43 -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 Subject: [PATCH 3/4 v3] dt-bindings: memory: Add jedec,lpddr4 and jedec,lpddr5 bindings Date: Fri, 9 Sep 2022 16:21:39 -0700 Message-Id: <20220909232139.645945-1-jwerner@chromium.org> X-Mailer: git-send-email 2.37.2.789.g6183377224-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 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,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --- .../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 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..fa9b30ee89cb81 --- /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..01e11aabc5a3f9 --- /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