Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp15590pxu; Tue, 15 Dec 2020 13:18:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxtfqa/QtQ+McBtCq9azCxy6+x6Uk/Nhkz6PB+xu/ovA89r7J/ducnnsZiWGlJsZG51h0y X-Received: by 2002:a17:906:52da:: with SMTP id w26mr28889020ejn.347.1608067115507; Tue, 15 Dec 2020 13:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608067115; cv=none; d=google.com; s=arc-20160816; b=dQf99wo03vhZVsHJiJTV8Mt4LGRs0FS50dIObXSvO5D1TW0lZt9NNh2V4PCRntnbkQ wlTixa8nhu9AInMyFa6eS1CJGOZU8e2A7t/oLy5LXK/bn0UaiIu0if2YQPAP1Y6j0/7j UQQ3snKmUBEQ0D7oDDcW+pEYe97zlf19dZvGSsUKes16nbjP0PjaKi2ebzu0d/Wx28Es OWbfo+g9WICUXFCXrKd+pOGCR1CYesTFBrWwGjpRDTBXBhdXDtwOC9gp8qGSwpUpu5ws LUiVRFN9rQ7naxvENhQJ6r9h7lW4cPBXa7NI/YqvnHXfNrRJHksfYbbQY/AaEKdrLWwx Ba/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id; bh=UXdGzv+M+lbkNYS+Dfc2Q1+UiiLWdFcz48/ODNRvhJw=; b=f96vg3Dj/24dwJ5Ac5MJfHTmlpQLwHr2zuQG/5zBjaKp7+w2cqD2Hgoar3s6G7rUZC eKSmcHQZMj9cnToZ7aDYqatQttFm7ee6LpjKuG4sQx4uQPk7h7BkyfX514/YVUzo0pAf hNW5pBwkNPEQykv3DkepVF35ZYncuIDkBssZo5YbZJj4zZ6c/rfDdG8ysfUyMMWyQpzy wez0010OpS24JNdAtsYqw8pXhOmleq9fAlWwUPA+nyGvgQlPcREWcHQV8fEkyVmuktXW ZOkfBedsOV46MY/daDQhP3SUZJrj8Btbb3tycO1mkOE+BNwKbqyqTSkB7HRu+hRlGLTK p1GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si1510948edx.507.2020.12.15.13.18.12; Tue, 15 Dec 2020 13:18:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727679AbgLOVRu (ORCPT + 99 others); Tue, 15 Dec 2020 16:17:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:55352 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbgLOVRj (ORCPT ); Tue, 15 Dec 2020 16:17:39 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 73D62AC93; Tue, 15 Dec 2020 21:16:56 +0000 (UTC) Message-ID: <6773252eb539f09383f2b31118467b0be23e592a.camel@suse.de> Subject: Re: [PATCH 1/6] dt-bindings: nvmem: Add bindings for rmem driver From: Nicolas Saenz Julienne To: Rob Herring Cc: Srinivas Kandagatla , devicetree@vger.kernel.org, "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2835 ARM ARCHITECTURE" , linux-arm-kernel , "linux-kernel@vger.kernel.org" , Russell King , Catalin Marinas , Will Deacon , Tim Gover , Phil Elwell Date: Tue, 15 Dec 2020 22:16:54 +0100 In-Reply-To: References: <20201215155627.2513-1-nsaenzjulienne@suse.de> <20201215155627.2513-2-nsaenzjulienne@suse.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-HRNIWeNhFPTeTIs+fz/7" User-Agent: Evolution 3.38.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-HRNIWeNhFPTeTIs+fz/7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2020-12-15 at 14:25 -0600, Rob Herring wrote: > On Tue, Dec 15, 2020 at 9:56 AM Nicolas Saenz Julienne > wrote: > >=20 > > Firmware/co-processors might use reserved memory areas in order to pass > > data stemming from an nvmem device otherwise non accessible to Linux. > > For example an EEPROM memory only physically accessible to firmware, or > > data only accessible early at boot time. > >=20 > > Introduce the dt-bindings to nvmem's rmem. > >=20 > > Signed-off-by: Nicolas Saenz Julienne > > --- > > =C2=A0.../devicetree/bindings/nvmem/rmem.yaml | 35 ++++++++++++++= +++++ > > =C2=A01 file changed, 35 insertions(+) > > =C2=A0create mode 100644 Documentation/devicetree/bindings/nvmem/rmem.y= aml > >=20 > > diff --git a/Documentation/devicetree/bindings/nvmem/rmem.yaml b/Docume= ntation/devicetree/bindings/nvmem/rmem.yaml > > new file mode 100644 > > index 000000000000..3037ebc4634d > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/nvmem/rmem.yaml > > @@ -0,0 +1,35 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/nvmem/rmem.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Reserved Memory Based nvmem Device > > + > > +maintainers: > > + - Nicolas Saenz Julienne > > + > > +properties: > > + compatible: > > + enum: > > + - nvmem-rmem > > + > > + memory-region: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: > > + phandle to the reserved memory region >=20 > There's no need for this indirection. Just add a compatible to the > reserved-memory node. See ramoops for example. >=20 > Please make the compatible specific enough to define what the memory > contains. If you want 'nvmem-rmem' as a fallback that's fine. Ok, I'll look into it. Regards, Nicolas --=-HRNIWeNhFPTeTIs+fz/7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl/ZJ8YACgkQlfZmHno8 x/6DEgf+Ir9Z/EAoImzzkz0WNDBqJRFShxXJ3Z6YrpJ/j5p/I4owZX9Xtpwjh+k3 Sk5ZQcjw9MFcs6X9Kka2oLL5O6TspqD3YDHF/Afm0Uo5TXLU69hfcVh5Jx0NIyaG 2Cll+fLE0ozkyfViIXKwCvL5P7BIB6VWZVXpZSfOr3sxhvgXOGw4O2ivWD3s3LsL BsWllvWIXSLZfDAcZr3MVBBOuR2fByCLtyWWMfB+T9SIQodxFVVMYpUuRiHKTn8B zCfhsl+Wxsp/WADK+EoIl1euIbBgkzI+9Ws7xq8O3NBTLFanJHxJt/b+IXS7cZw+ Dub6IRL35RjvAN6O/Ras4aJF9jzvgA== =OefD -----END PGP SIGNATURE----- --=-HRNIWeNhFPTeTIs+fz/7--