Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1988232ybb; Sat, 4 Apr 2020 18:25:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJ/AooVTDK1Zx3x3ph1lzWtJ1QPTciAbx0DlgOGEFnsku74lP4Yot4rZYPnP1tUv6RxMpPL X-Received: by 2002:a9d:7488:: with SMTP id t8mr11993039otk.219.1586049918308; Sat, 04 Apr 2020 18:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586049918; cv=none; d=google.com; s=arc-20160816; b=ZwYzkjmpYry0/5rFZXFLg7rvDO62EqBM629kbX9V4Qfw+F0HT794gYW64zg5TBg/Sb YYW71Ntpoqz0iZYBFTvuscypXYV3mYMQU5Y3+HzcXm3ehhoIWtKCsuUAJ9Aa6v4uXWbR tqVmqmJhv4IgHq2ivgwDLA9MygaG8kZn8v9LEDpE8sLN578zw5OGtgy3ElN9AYrvC0qg phuqitMh45k01RAMQBG1p+TxG+6jbl+HddcnVziUlobo8gwYToG9W5hymUQvlm9r3/x6 2MGjlvHrEUOD9oO1qdT0q3IWpmXyN5PegBsCK1xGLKPlQjLoi7sRNYpm+auJoYqjiE+i pIEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=V5gCxUvEJ9mnQOJwCbGwFUzCWNl5LXu0txZgNmpLEtg=; b=zbhIAZ7s2OJak56PjW1St32VLsNDzXrIePv4dfk2H/zR2B8y0uLDHbE2/jyFcpoiDF 3g/o0PDez+2VEZ4kEI7FgT1kJ0B3uKtJm3LjUeIChwmp5Yu7SHxqV5po+/462RJCFupG jDieUMJ0LEQWxyNUfrDu2MSH5EiXwFoNrfd5Id1v3WFV8x3EVYBWwJl9M3Pvq2kbE1Zn c9nxLWMWzJ108/2qOL2/9LPC2xu3Zm7hhwATH0RWvrTH9Nkdllkf7iLo7EZLvVToNSdu or+2qrtiSc1zpEtzBxy18TtOsI2f7j2kuc70/xoloaoeYMSC41Xgh3CnfHTbz4Tdexeb CLAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Aa+F7Vw0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t83si6114124oig.239.2020.04.04.18.25.05; Sat, 04 Apr 2020 18:25:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Aa+F7Vw0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726364AbgDEBYi (ORCPT + 99 others); Sat, 4 Apr 2020 21:24:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:54386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbgDEBYi (ORCPT ); Sat, 4 Apr 2020 21:24:38 -0400 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 812C92070E; Sun, 5 Apr 2020 01:24:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586049877; bh=V5gCxUvEJ9mnQOJwCbGwFUzCWNl5LXu0txZgNmpLEtg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Aa+F7Vw0XlhtJ/R5A6JusfA5mhVg+2EGtuEL5Uq338n8MQtpKY2dzASJAFHH7d8u7 rzFxoo4nqLgzN1vMRrxT3REvcg9jn6EH+5llKmDbuE2FowIS3fRUSxtOal9zvcKrls 6Fy17RS2y5YTW7LLUotQgIld88vsjZAeeYv1669s= Received: by mail-qv1-f53.google.com with SMTP id bu9so5680083qvb.13; Sat, 04 Apr 2020 18:24:37 -0700 (PDT) X-Gm-Message-State: AGi0PubU/qa0F7Uxd/0l9AHU8jXKTQH/z5O9ZsBiDHp5vxZcaVj1VgCW trJyBddwHEoV9RsFeiDkhOXuRIzbE1gVXunkvQ== X-Received: by 2002:ad4:4829:: with SMTP id h9mr14262204qvy.135.1586049876596; Sat, 04 Apr 2020 18:24:36 -0700 (PDT) MIME-Version: 1.0 References: <20200403185640.118569-1-thierry.reding@gmail.com> In-Reply-To: <20200403185640.118569-1-thierry.reding@gmail.com> From: Rob Herring Date: Sat, 4 Apr 2020 19:24:25 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/4] of: reserved-memory: Various improvements To: Thierry Reding Cc: Frank Rowand , devicetree@vger.kernel.org, linux-tegra , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 3, 2020 at 12:56 PM Thierry Reding wrote: > > From: Thierry Reding > > Hi Rob, all, > > this is a set of patches that I've been working on to allow me to use > reserved memory regions more flexibly. One of the use-cases that I have > is an external memory controller driver that gets passed one or two > tables from firmware containing a set of EMC frequencies and the > corresponding register values to program for these frequencies. > > One of these tables is the "nominal" table and an optional second table > is "derated" and is used when the DRAM chips are overheating. I want to > be able to pass these tables as separate memory-region entries. > > So what this small patchset does is make the reserved-memory code adapt > to this situation better. On one hand, while the DT bindings currently > support multiple regions per device tree node, it's slightly unintuitive > to specify them. The first patch adds a memory-region-names property > that allows the DT to specify a "consumer" name for these regions much > like we do for things like clocks, resets or the reg property. At the > same time, a new alias for memory-region, named memory-regions, is > introduced to make this more consistent with other bindings. It's just not worth supporting both flavors (forever). I don't want to repeat gpio vs. gpios. Let's just stick with 'memory-region' and allow that to be more than one entry. I'm not a fan of *-names, but fine. Rob