Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2201301pxu; Fri, 18 Dec 2020 07:46:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJycNV4mQ8nI7hcz/D7qc8HZ0EwuUpXYFK8+ngbyBCDX1G7lmdaWm8bfiodIqN16ROqjgWXc X-Received: by 2002:a17:906:4f8d:: with SMTP id o13mr4659333eju.117.1608306417054; Fri, 18 Dec 2020 07:46:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608306417; cv=none; d=google.com; s=arc-20160816; b=M1I41wPDtnKvNoJoPO2JsxJWMhWE1v90bRIg0v4E3EYEGkrXq5v+T3qmdWc1Oxhieo Xw6QqWwaj8uHj3OunH1pKeclu3syP/Q9U4AQgditbN2/4giOZ7pjv4T6oWvBWdv7lBhR i2ky4LqvxZcdyG0rHbVjAJE5uSKdgZHtpJfovnX+4xT5xu72fAsTzW6q5kJDlLLQzaBv K47IkCKwS/Vc3UX4DjiQ9VE7yrD5WDNoGqdsKuBe3M1yhyvVLIm94tZc369MSfn1aTSM c1DEth7owNb5QiOK+cRhUgd/tvC3djrvRdzfueivXU00SB43MuHd63jZhjYPmrwjNChg 3Hdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jeTyFKsW77/WJubTMynrYlQ8bRbcz6h7zrWSbmfu+/c=; b=jC0/PWv/TKp1L2GGPFztubc+er6ErV5ykpgq5Ezq66nmQjlbC+pPT1LFmkxooFXmMq UkcDsr1CcXDirAOqsG+M76iGnA4xIpjLo+u7wAEM7UglSFxyM41S7LShtfdfQmWf5IVS L885AviR+k03QzwVobu1uK0nD+Fz4+HijiD2tsR07L6Fl41GpsVvWaZUjkH3d0VBEWuh YLNxEXG+HvkTWzB/j63+LC7OXEwOPaHaC+MfvIzqoGALooIK5rtgfM8f/pvpiRCUAdWs WsUAdhGqtNnMCYkdJDGmt9w7wsVmX/wtdPaqJJwISXDCSJDjhlmmOK1F3aSUBsYPDR0S yCQA== 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 q9si6371725edr.98.2020.12.18.07.46.34; Fri, 18 Dec 2020 07:46:57 -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 S1729146AbgLRPod (ORCPT + 99 others); Fri, 18 Dec 2020 10:44:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:43026 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbgLRPoS (ORCPT ); Fri, 18 Dec 2020 10:44:18 -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 42DE4AD60; Fri, 18 Dec 2020 15:43:36 +0000 (UTC) From: Nicolas Saenz Julienne To: srinivas.kandagatla@linaro.org, linux-kernel@vger.kernel.org, Saenz Julienne Cc: linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, robh+dt@kernel.org, bcm-kernel-feedback-list@broadcom.com, tim.gover@raspberrypi.com, phil@raspberrypi.com Subject: [PATCH v2 1/5] dt-bindings: nvmem: Add bindings for rmem driver Date: Fri, 18 Dec 2020 16:43:16 +0100 Message-Id: <20201218154320.28368-2-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201218154320.28368-1-nsaenzjulienne@suse.de> References: <20201218154320.28368-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Introduce the dt-bindings to nvmem's rmem. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Update schema to new driver design .../devicetree/bindings/nvmem/rmem.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/rmem.yaml diff --git a/Documentation/devicetree/bindings/nvmem/rmem.yaml b/Documentation/devicetree/bindings/nvmem/rmem.yaml new file mode 100644 index 000000000000..29b53871aa02 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/rmem.yaml @@ -0,0 +1,49 @@ +# 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 + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + items: + - enum: + - raspberrypi,bootloader-config + - const: nvmem-rmem + + no-map: + $ref: /schemas/types.yaml#/definitions/flag + description: + Avoid creating a virtual mapping of the region as part of the OS' + standard mapping of system memory. + +required: + - compatible + - no-map + +unevaluatedProperties: false + +examples: + - | + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + + blconfig: nvram@10000000 { + compatible = "raspberrypi,bootloader-config", "nvmem-rmem"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x10000000 0x1000>; + no-map; + }; + }; + +... -- 2.29.2