From patchwork Sat Feb 19 01:20:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julius Werner X-Patchwork-Id: 1594941 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 (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=HrTqeMzk; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4K0rNW6Z7nz9sFr for ; Sat, 19 Feb 2022 12:20:43 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240896AbiBSBU5 (ORCPT ); Fri, 18 Feb 2022 20:20:57 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240890AbiBSBU4 (ORCPT ); Fri, 18 Feb 2022 20:20:56 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DDE3158DB7 for ; Fri, 18 Feb 2022 17:20:38 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id l8so8449134pls.7 for ; Fri, 18 Feb 2022 17:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8Lj6YX7FRkv3bs+GJXuZJxzDwnOwlM3IinhEgHw4XZw=; b=HrTqeMzkOeddI4nLvtfvWYkYVZH7pUGm2Y3tDGKpvNGtyvKgK7N9WiuUKu7FRu3Vkz pNh/6/PHWCo9zDjdo/VyhkCzGS+Q+tnVYX8W8OdXkCyCrVR1yeUWCxRXkQU2U4jkoDlc NWnxUVaCHwDlP//jkVd3s/AJmtET4MjgKUfO8= 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:mime-version :content-transfer-encoding; bh=8Lj6YX7FRkv3bs+GJXuZJxzDwnOwlM3IinhEgHw4XZw=; b=COVSHhH/8el0gov+kQrC1FZ0IRSMnHYXxAmOzVgCRvY6gRTjS3YVsxTEhOS1dwKPtL rj11h+RjMClf4rcyo430lQoomVIsMG8RI12wJxUx0VJtJ709dct+/4059CF2qZil4Ihu 2FucpHIyGkPobTTk0hC36REcYgar4+NcCPidnThZmrpoVB32KeC+JIKiBKQpFoqcvuY/ fs++bCgZ0GCbq1dJeGLH2A4Lhef1WNafzD4CRCt0hhzn95323hHZhh+qXpD8JAGVKKKg /QPkZATNGfvcCs4GYIykchO/bM3OyQLc1Atxw1O5c9TWvO7dgG5HF0cfA9iq/vIPgO2Y DPug== X-Gm-Message-State: AOAM530n/CxSWC378ZBEPo8TxhiqRUQoRkaIdB0hVvc/0FLtYRDy/L9Y ypIRiLMe/wtqkRw3/AZMnd4ETg== X-Google-Smtp-Source: ABdhPJy6xXRVgXghCn/2tizJ4qCsDOqDWj7clCWwB2FkX/Hh0jpyIgWEaLNnLb/o7oqWsdRq1D9kkw== X-Received: by 2002:a17:90b:3ec2:b0:1b9:fbeb:942b with SMTP id rm2-20020a17090b3ec200b001b9fbeb942bmr15026530pjb.55.1645233637899; Fri, 18 Feb 2022 17:20:37 -0800 (PST) Received: from jwerner-p920.mtv.corp.google.com ([2620:15c:202:201:90c7:ea9e:6907:5ea9]) by smtp.gmail.com with ESMTPSA id gk11-20020a17090b118b00b001b8c8cfdca2sm494549pjb.20.2022.02.18.17.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 17:20:37 -0800 (PST) From: Julius Werner To: Krzysztof Kozlowski Cc: Dmitry Osipenko , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Julius Werner Subject: [PATCH] dt-bindings: memory: lpddr2: Adjust revision ID property to match lpddr3 Date: Fri, 18 Feb 2022 17:20:25 -0800 Message-Id: <20220219012025.2887724-1-jwerner@chromium.org> X-Mailer: git-send-email 2.35.1.473.g83b2b277ed-goog MIME-Version: 1.0 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,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: devicetree@vger.kernel.org Commit XXXXXX (dt-bindings: memory: lpddr2: Add revision-id properties) added the properties `revision-id1` and `revision-id2` to the "jedec,lpddr2" binding. The "jedec,lpddr3" binding already had a single array property `revision-id` for the same purpose. For consistency between related memory types, this patch deprecates the LPDDR2 properties and instead adds a property in the same style as for LPDDR3 to that binding. Signed-off-by: Julius Werner --- .../memory-controllers/ddr/jedec,lpddr2.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml index 25ed0266f6dd3d..37229738f47271 100644 --- a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr2.yaml @@ -30,12 +30,23 @@ properties: maximum: 255 description: | Revision 1 value of SDRAM chip. Obtained from device datasheet. + Property is deprecated, use revision-id instead. + deprecated: true revision-id2: $ref: /schemas/types.yaml#/definitions/uint32 maximum: 255 description: | Revision 2 value of SDRAM chip. Obtained from device datasheet. + Property is deprecated, use revision-id instead. + deprecated: true + + revision-id: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 2 + description: | + Revision IDs read from Mode Register 6 and 7. One byte per uint32 cell (i.e. ). density: $ref: /schemas/types.yaml#/definitions/uint32 @@ -164,8 +175,7 @@ examples: compatible = "elpida,ECB240ABACN", "jedec,lpddr2-s4"; density = <2048>; io-width = <32>; - revision-id1 = <1>; - revision-id2 = <0>; + revision-id = <123 234>; tRPab-min-tck = <3>; tRCD-min-tck = <3>;