Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3145356ybb; Mon, 6 Apr 2020 03:04:53 -0700 (PDT) X-Google-Smtp-Source: APiQypJb7CK9XOdvPQ0lRIZwee+neIHc7G4dc6IQ9eGR+W0QQ5oqmraKXcTjpzc25qmCDSrG89qR X-Received: by 2002:a9d:7a47:: with SMTP id z7mr17271927otm.290.1586167493543; Mon, 06 Apr 2020 03:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586167493; cv=none; d=google.com; s=arc-20160816; b=zF9o5JmubNFnzMvRXITmvgCeNQ7K/oItlshnzrHQgtt/JQmVKE8r0o3e4EASYvrCkF 9erpEQ2+dKaowJM4HfgFkLadNQtyeIes2+LJnDis1KKfIaF0dIIT5dmRo3TTqXbKMVxI 7ankQe5FR653Ln/5udIk+16t3gQkD6eFeOmClANJ7SeZQwA9RcrQXOvPAjpVnA2p2c78 O5TqmETYNqdUqFEEOavc+vFpFqdT49ClpWlyfVhXIVm0gchq7cY3wGphp9N1shdjg06t WX45UA+r8Z605qV0hEqH8Tr/mFt9qFZN7Aw8Zd3tJLLp8VOSXQP0Mh6O2CGNdJgaQEbT CcuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TDxVDF2XVyHK1LpPBZBlcR0MpokI9aaOMTXvOXm2QFs=; b=vbnt7AA7caPOC6/E4KBP2mHTMdvgh6zExwX3s87A1OpVvfuO8/gHJ17y08VjsxSTRj yxjxAr8CKnE1JE1HbJ9ly3uz9Ng3JXfpCauP4r1hJHoLrMWUI+D9HVZLnkEzHV+Z3IWA GxxFpzMX4CJMJi9KU08lQ8tX1GHuxRITulsqVhSV36SPe0vslFWZaBTLmsRGBbB+SdVC Gs67hlKPlRFgrmnqHsGyDkrykhUr7BDIWppIZ/ZV6jOJIj4oC3qflsb+oYwsNhT8uBKR hj8B1IO0z2naT2RrRNtx/uXVHqe2wCNrrwjQtCLl4PHoRKGFk+9YoVGAzCT3DwiItIu3 qxUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=slj96URn; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si7677876oou.5.2020.04.06.03.04.40; Mon, 06 Apr 2020 03:04:53 -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=@gmail.com header.s=20161025 header.b=slj96URn; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726858AbgDFKEP (ORCPT + 99 others); Mon, 6 Apr 2020 06:04:15 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:33608 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbgDFKEP (ORCPT ); Mon, 6 Apr 2020 06:04:15 -0400 Received: by mail-wm1-f68.google.com with SMTP id g21so1356278wmh.0; Mon, 06 Apr 2020 03:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=TDxVDF2XVyHK1LpPBZBlcR0MpokI9aaOMTXvOXm2QFs=; b=slj96URnwsKS5pPlbU8Zvbw/ymTmZPpymkHbhDerbD6rJvw0kYwQOb4QMhZIycJZLb xp3aIPbkdJFXYU8uX5u+yy5u/opWF2hrhj0BEWP9HsLE4h1ZylqCD8Vzg3w1spTCOkZv Id7azN7Qc/vONo33LjyAKXPxbPQWrY+Mld+W6h3ahI0DZGN5RTkQFMqjeDq3NIGsHv+h p1xahfhixL0fGOeH4yCOG+S8S//33UsuRSZ7lXQPJlpPx29QOTYMr4N50PRpuCvN214S nztGKNakCFDieyuV1KtLbs5Mg7HrQs29Czrz12UeiWiJA0erKVAoDE2MEVTEHh61d2fq 27Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TDxVDF2XVyHK1LpPBZBlcR0MpokI9aaOMTXvOXm2QFs=; b=IwnnghIDQfM2CXD62g9OiT8J53cNHH1/2DmQ8CiSsccMFPU/Wvsqxbh5CvrPTRzN6G nXnENyCkDxsLZwOb2vryu54zxAtEXRl9up8a4zfAx3o6grmojmXlw/aaKCOce7CC//l0 sHY59rhtPYpegq1J0dbv01+J2QbNgAHWQkuYCjT+RU+tck2mAV8xyNR7itd82pVLdW5h 28lhzxSuwZR+P0vINTchJQIngoT+dx1TvvqpbszRFPdbAq4bR0xYd+kPHdhAwwuXwzd+ LYkkywJAEgEV5ZEV66zr6UFOCX+1aBFNU3Sxw2lUSrYK3sanKUypNe/WFCzDiBlUmyOs c22A== X-Gm-Message-State: AGi0Pub1eHhXyfvFq2QL4mLanUvug2sT4hzzUuOGU/3DcOkRc3y3j9HK xW8Zl5lQx/v6cCoEYWn0iB3N50Hq X-Received: by 2002:a1c:5605:: with SMTP id k5mr12809098wmb.83.1586167453487; Mon, 06 Apr 2020 03:04:13 -0700 (PDT) Received: from localhost (pD9E51D62.dip0.t-ipconnect.de. [217.229.29.98]) by smtp.gmail.com with ESMTPSA id r15sm27503137wra.19.2020.04.06.03.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2020 03:04:12 -0700 (PDT) Date: Mon, 6 Apr 2020 12:04:11 +0200 From: Thierry Reding To: Rob Herring Cc: Frank Rowand , devicetree@vger.kernel.org, linux-tegra , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 0/4] of: reserved-memory: Various improvements Message-ID: <20200406100411.GB475759@ulmo> References: <20200403185640.118569-1-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jho1yZJdad60DJr+" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.13.1 (2019-12-14) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jho1yZJdad60DJr+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 04, 2020 at 07:24:25PM -0600, Rob Herring wrote: > 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. >=20 > 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. Alright, I'll drop the corresponding changes from the bindings and the OF core then. > I'm not a fan of *-names, but fine. I suppose I could work without them, but I like the descriptiveness that they add to the device tree. There are also cases where they can be very essential. For example, what if a device can take two separate memory regions. One case that we have on Tegra is the display controller that can have a framebuffer and a color-conversion lookup table assigned to it on boot. I think in this particular case both are actually always there, but what if either of them was optional. Without -names it would be impossible to describe the context if only one is provided in device tree. Thierry --jho1yZJdad60DJr+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl6K/pgACgkQ3SOs138+ s6EcBBAAknv2wjVaLqK8Fv5noZrIB4XtpJNVRyHSCdzsZ32kDSogdVHbSGnmgqdb sGP6hAF8i6wZan9ZfAm3ZGcYTngPZPJVMI5EszlVW1WXtiXjpA963KSuVwg930H+ h8oPvchZ6DKOiHy90RaVt3wIyZA0CQwpCDukYMxjj7o2xzx+Ig7ywmaP+GkV6lUF utXr68/po507c5JsgB9xc8THDnM1dOazLPrb3O0nG+WcmGeLuqZx8AVZnGZsM5Bb khjmisr6O2YpATkGWO7ZJbRMKSQZOVgmkFxJB2NpuOKSU0z5PdlopYAh8OgCOjy0 e9HKoAaF0Ip7dlMaCKrEg3tifMCPQZ3o5UroATrDfVQagRCzing/UGqGSaftNkif +yh8DiwKpttDEdsKK5Oipa6oCwViqCANXIFe443lYdlSH1qUMO2ow7Oi/DEIFeTB 6NjOKi2HQxrhqQ3BOc7PvAG/eUH+yBH3P9mUEwctFdTLvlQgsmIo97vA+wAnkL6o nYP+wQLkehEV2WsHFJFFVZZbbATX0UjXyQH0QGCFGXK1vYw0KwJcwDU5V1k/+HFh o0TonpcG28IksxcDuw4CcuH3MZbB0a+AvAPjjfewmCbx+L3hDWULJK2dl3YPRYtP o1wNwBsuUDtHNREgj3KcZMBj3YgBEdryxTM6dHDtOa25Ze8SacM= =98ej -----END PGP SIGNATURE----- --jho1yZJdad60DJr+--