From nobody Tue Feb 10 12:40:30 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF49C31AAA3 for ; Wed, 7 Jan 2026 13:05:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767791124; cv=none; b=NeQmq1aQRZbd0T9cg0aYXr4yLBgpC/EK3gzfqr7hiRXp185DIhH94GvZdV2xDs9daZLukEe6bjsnaDTOD/Ifwune2gND/417fcf97sXR4j9l5/hGpvvbAwfH9gHBwXEor3sV3S7SsEoFvOnbtU4ZNxtx/OXgkN9EgW4zI7sGBW8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767791124; c=relaxed/simple; bh=XCP/FOFK72L8E2QDh/6XCwQgAkV01L+/PzWMTRRC2G8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CYVG6l9F8TqYzPusOKJIexWQnqGCnNnzaD2DLc/4kksVGxUwJf8Czo7ie5JscT+lTtc1BR7Pr+IfYYw/KBeEtrvb2R4aQed2IYK7x+BPmQFsa67928rKVCIvToX7B3coCSb5g8+6smFW4ObLwkw2ZqWNfyRWP0CiUu9xH0+CRnQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=ewS7wwGI; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ewS7wwGI" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 58FDE1A267D; Wed, 7 Jan 2026 13:05:21 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 293AC606F8; Wed, 7 Jan 2026 13:05:21 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 1DC51103C821A; Wed, 7 Jan 2026 14:05:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1767791120; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=v86K00C2fNx5hWbvxkan6t0DbijjMzvVsdWXGbU7/lY=; b=ewS7wwGIxnLGvlW1n7rbyYVE272yKtFwMLpXA5dQxwBgkXDCDIjJ/00Crbfj/yjvQoF3KO Tx11D+DGgmI67oFQcEmX+DLOztgWjbGAhymtnaevZ/myz5iv283sMxkj7DacsQAV4NEdVC nBRLthQpl9T4htROsyNVba4lV3jZbja1UpM5F/XhsaEeDHxzwnPPzt2CBAlpzfU7JrGBr5 fuhxbzmg80sngjZygGzgi8Usi8M9d/2iqtt0Ua/gkP6KNf8aAtw82k6Ff+QZgxrkxijLu/ FJnMWcTNqpIBmus89VnLtyDYJww8qXlPXa7us9UgAMbcfqPZtc96NXcaVqYQ0g== From: Gregory CLEMENT Date: Wed, 07 Jan 2026 14:04:54 +0100 Subject: [PATCH v3 3/4] dt-bindings: mtd: physmap: Allow using memory-region to access memory resources Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260107-mtd-memregion-v3-3-f9fc9107b992@bootlin.com> References: <20260107-mtd-memregion-v3-0-f9fc9107b992@bootlin.com> In-Reply-To: <20260107-mtd-memregion-v3-0-f9fc9107b992@bootlin.com> To: Rob Herring , Linus Walleij , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , Conor Dooley Cc: Thomas Petazzoni , Vladimir Kondratiev , =?utf-8?q?Beno=C3=AEt_Monin?= , =?utf-8?q?Th=C3=A9o_Lebrun?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org, Gregory CLEMENT X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Enable access to memory resources not only via I/O address using reg, but also through a portion of main memory using memory-region. To achieve this, new compatible strings have been introduced: mtd-mem and mtd-memro. Signed-off-by: Gregory CLEMENT --- .../devicetree/bindings/mtd/mtd-physmap.yaml | 69 ++++++++++++++++--= ---- 1 file changed, 52 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml b/Docum= entation/devicetree/bindings/mtd/mtd-physmap.yaml index a9ec3ca002c7d..98d45982d8eb9 100644 --- a/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml @@ -13,10 +13,6 @@ description: | Flash chips (Memory Technology Devices) are often used for solid state file systems on embedded devices. =20 -allOf: - - $ref: mtd.yaml# - - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# - properties: compatible: oneOf: @@ -61,6 +57,8 @@ properties: - jedec-flash - mtd-ram - mtd-rom + - mtd-mem + - mtd-memro =20 reg: description: | @@ -141,19 +139,37 @@ required: - compatible - reg =20 -if: - properties: - compatible: - contains: - const: cortina,gemini-flash -then: - properties: - syscon: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the syscon controller - required: - - syscon +allOf: + - if: + properties: + compatible: + contains: + const: cortina,gemini-flash + then: + properties: + syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the syscon controller + required: + - syscon + - if: + properties: + compatible: + contains: + enum: + - mtd-mem + - mtd-memro + then: + $ref: /schemas/reserved-memory/reserved-memory.yaml + required: + - no-map + properties: + addr-gpios: false + else: + allOf: + - $ref: /schemas/mtd/mtd.yaml + - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# =20 unevaluatedProperties: false =20 @@ -233,4 +249,23 @@ examples: reg =3D <0 0x04000000>; }; }; + + - | + /* An example using mtd-mem/mtd-memro */ + reserved-memory { + #address-cells =3D <2>; + #size-cells =3D <2>; + + bm_logs_reserved: bm_logs_reserved@10000800 { + compatible =3D "mtd-mem"; + reg =3D <0x1 0x0000800 0x0 0x0010000>; + no-map; + }; + + sys_logs_reserved: sys_logs_reserved@100120000 { + compatible =3D "mtd-memro"; + reg =3D <0x1 0x00120000 0x0 0x0010000>; + no-map; + }; + }; ... --=20 2.51.0