Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2392443pxb; Wed, 9 Feb 2022 18:05:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxEzWiLnZK1o8dxeEz9YV96OFWwuRCdhSi0eQPTsaaAUrMJKGUrbCi0THG3FkRc2s661EP X-Received: by 2002:a17:902:eb8c:: with SMTP id q12mr5323981plg.131.1644458759512; Wed, 09 Feb 2022 18:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644458759; cv=none; d=google.com; s=arc-20160816; b=n50W6s2MptK17M96mm5vb8i9m9rKMHuCkeqMX1G9Is3HdfkY0Z46NL9Yn1d5b3KL6G HRwlQTuZvvzz7kK0bi+aD6ZKGlHWBsG84EqZ2Ak7gI4JTt1D9KvKaf5bKg13qNb4QhFx u661Myj+mMSGgHfUkNveIXF0p/RO6T2wxiIp6WAz283Dt00zcGEo0lsydAKasPe2AxTD hv6wFxFl1gQO5jX25N105i1omucEVPqpzEUvzNaCTOX/AIPb0IpDd7/VJcLIjYt6bREx 09//KVGXtQEnDxzx/RDcmyZ3Tr5Suh/XLIi4Zzy7Z7QcTpIlYOBNN+EbuUNdoNk5m8dg M84Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CpXL3kPoVZ7att1zdwN8Mf8Da7ajP98VvjIjGbgaZGA=; b=La4mTkOwvLKiq57zcX/sjgn/+7fonsAuN9iAj/Al9ODUxRqaFFpymc0XUEYhgil/mP An31RBEK3uW3aPrycS8lB4hs9JXrnPH0IhPuJAtkjMnmiesIo/Fp3w2gwaT+HbT1o2mf 7CthwcjGyHjJTYfJb45RqkE+iEEZqNP8XINdRIeSvrHrBOCqzd0ubMKTnse47xnFLmP5 wspeAwKCvOA5yO5HDjxjZFl4cLocOie+ZqeZEvQM9e1gMJKL6M7Ici/Qmwr77FGIQiqo b0SOZ5dudGEmuyONjbRdyzAl47IdKLnr+gGrHO4IbrgGcBkScworTTrPj0VF1NrbywEm QQCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ENY37unj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t4si747256plg.498.2022.02.09.18.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 18:05:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ENY37unj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9384EB4; Wed, 9 Feb 2022 17:56:46 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233192AbiBJB4f (ORCPT + 99 others); Wed, 9 Feb 2022 20:56:35 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:60030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232923AbiBJB4A (ORCPT ); Wed, 9 Feb 2022 20:56:00 -0500 Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 294CF270FC for ; Wed, 9 Feb 2022 17:34:07 -0800 (PST) Received: by mail-vs1-xe34.google.com with SMTP id j5so1406373vsm.5 for ; Wed, 09 Feb 2022 17:34:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CpXL3kPoVZ7att1zdwN8Mf8Da7ajP98VvjIjGbgaZGA=; b=ENY37unj6f6SjoHK/K0Df/VIBp8PpZN9GGdjmw2F5RHMgth0BKvyfe7sX2l5TwfuMv Bw72HuoCoav/n3JPrtIVxRyg7PhW6XYai1AIx9e9CG7QfpdEhEDh7DNsywpBfEYsuHG0 PC/EAciecqkqFtBE+fMv5STFjECmxiVAH8eSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CpXL3kPoVZ7att1zdwN8Mf8Da7ajP98VvjIjGbgaZGA=; b=Xoajm94P9uEvi/97w9VT/XFqURmIZQszBYCYFArhA+DiZ1M7Nw9qGOWJsiLEJLFehg 6CFBL1ExL8bUOvZoJZvhwzXnmQ/581dYyhXzu7vdKxK10Du9HiGYzYhcOIn/iTY3eNzJ 4vnDpID0ZII2wDoc3NfLy77H7TTi/94FQ+5QAIalH4HxehGxmQxnyY26nlfrV5v/nPuD Ew4k8h/xbJFvKYL6abcgF78V9ZS2VnhG17iSw1XlsIKNvExbdkTSGLEHh9ApKuoRcPOO d/tKfEUpcr98O/W9iIJHBMhmvIMM9l6/kKBAmZ+hO8/vniz3dgNF4HT4vzWQw6JpkC5E V7Tw== X-Gm-Message-State: AOAM530nPHg4LD2FTJmKiyGB6x+Woa0+KUOWeBQHBEscM8aTIDoxOyBp eRyj9hdalA9kcHkHC7UA14u/s2dvNqdndDDuOavpifhpf3ijCQ== X-Received: by 2002:a05:6102:cc8:: with SMTP id g8mr1471720vst.39.1644453157351; Wed, 09 Feb 2022 16:32:37 -0800 (PST) MIME-Version: 1.0 References: <20211006224659.21434-1-digetx@gmail.com> <20211006224659.21434-4-digetx@gmail.com> <6568fd31-113f-1581-4eff-45a4a1eb4e5d@canonical.com> In-Reply-To: From: Julius Werner Date: Wed, 9 Feb 2022 16:32:25 -0800 Message-ID: Subject: Re: [PATCH v5 3/9] dt-bindings: memory: lpddr2: Add revision-id properties To: Dmitry Osipenko Cc: Krzysztof Kozlowski , Julius Werner , Rob Herring , linux-tegra@vger.kernel.org, Rob Herring , Jonathan Hunter , devicetree@vger.kernel.org, LKML , Thierry Reding Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 > I don't mind, but I also don't see where the revision-id property of > LPDDR3 is used at all. I can't find any device-tree with LPDDR3 > revision-id and don't see it being used in the code either. Maybe it's > the LPDDR3 binding that needs to be changed? We are using the revision ID in userspace (read through /proc/device-tree) for runtime memory identification. We don't have a kernel driver bound to it. Our boot firmware is inserting this value at runtime into the FDT (that's basically the reason we have this, our firmware auto-detects memory during boot and we use the FDT to report what it found to userspace), that's why you can't find it anywhere in the static device trees in boot/dts/. > I made each LPDDR2 revision-id property to correspond to a dedicated MR > of LPDDR, which feels okay to me to since it matches h/w. I'm not super married to my solution, so if that makes things easier we can standardize on the two-property version as well. I mostly designed it my way because I thought we may one day also want to do something like this for the 8-byte LPDDR5 serial-id, and then it would get kinda cumbersome to have serial-id1 through serial-id8 all as separate properties. But that's also a bridge we can cross when we get there. My use case is in a position where we could still change this now without requiring backwards-compatibility. Krzysztof, would you be okay if I instead changed the "jedec,lpddr3" to the same thing "jedec,lpddr2" does -- seeing as the original patch was from me, my use case could handle the switch, there has never been any actual kernel code using the property, and it seems very unlikely that anyone else has silently started using the same thing in the time it's been in the tree? Or do we also need to go the official deprecation route for that?