Linux Input/HID development
 help / color / mirror / Atom feed
From: Alexander Sverdlin <alexander.sverdlin@gmail.com>
To: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev
Cc: "Alexander Sverdlin" <alexander.sverdlin@gmail.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Chen-Yu Tsai" <wens@kernel.org>,
	"Jernej Skrabec" <jernej.skrabec@gmail.com>,
	"Samuel Holland" <samuel@sholland.org>,
	"Hans de Goede" <hansg@kernel.org>,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Andre Przywara" <andre.przywara@arm.com>,
	"Jun Yan" <jerrysteve1101@gmail.com>,
	"Lukas Schmid" <lukas.schmid@netcube.li>,
	"J. Neuschäfer" <j.ne@posteo.net>,
	"Eric Biggers" <ebiggers@kernel.org>,
	"Michal Simek" <michal.simek@amd.com>,
	"Luca Weiss" <luca@lucaweiss.eu>, "Sven Peter" <sven@kernel.org>,
	"Maxime Ripard" <mripard@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-input@vger.kernel.org
Subject: [PATCH v4 6/7] arm64: dts: allwinner: a100: reserve RAM for ATF
Date: Fri,  5 Jun 2026 09:09:20 +0200	[thread overview]
Message-ID: <20260605070923.3045073-7-alexander.sverdlin@gmail.com> (raw)
In-Reply-To: <20260605070923.3045073-1-alexander.sverdlin@gmail.com>

Add reserved-memory node carving out Trusted Firmware-A region spanning
fixed 256K from physical address 0x40000000. Even though Allwinner ATF
itself passes the address range in the fdt to U-Boot, U-Boot currently
only reserves this memory internally, but doesn't carve out the region
in the fdt passed to Linux.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
---
Changelog:
v4:
- new patch

 arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi
index 7cb06b19b5a5..d8391663fd1d 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi
@@ -87,6 +87,22 @@ osc32k: osc32k-clk {
 		#clock-cells = <0>;
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		/*
+		 * 256 KiB reserved for Trusted Firmware-A (BL31).
+		 * This is added by BL31 itself, but some bootloaders fail
+		 * to propagate this into the DTB handed to kernels.
+		 */
+		secmon@40000000 {
+			reg = <0x0 0x40000000 0x0 0x40000>;
+			no-map;
+		};
+	};
+
 	timer {
 		compatible = "arm,armv8-timer";
 		interrupts = <GIC_PPI 13
-- 
2.54.0


  parent reply	other threads:[~2026-06-05  7:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-05  7:09 [PATCH v4 0/7] Add support for Baijie Helper A133 board Alexander Sverdlin
2026-06-05  7:09 ` [PATCH v4 1/7] arm64: defconfig: Enable Allwinner LRADC input driver Alexander Sverdlin
2026-06-05  7:09 ` [PATCH v4 2/7] dt-bindings: vendor-prefixes: Add Shenzhen Baijie Technology Co., Ltd Alexander Sverdlin
2026-06-05  7:09 ` [PATCH v4 3/7] dt-bindings: arm: sunxi: Add Baijie HelperBoard A133 compatible Alexander Sverdlin
2026-06-05  7:09 ` [PATCH v4 4/7] dt-bindings: input: sun4i-lradc-keys: Add A100/A133 compatible Alexander Sverdlin
2026-06-05 16:11   ` Conor Dooley
2026-06-05  7:09 ` [PATCH v4 5/7] arm64: dts: allwinner: a100: Add LRADC node Alexander Sverdlin
2026-06-05  7:09 ` Alexander Sverdlin [this message]
2026-06-05  7:09 ` [PATCH v4 7/7] arm64: dts: allwinner: A133: add support for Baijie Helper A133 board Alexander Sverdlin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260605070923.3045073-7-alexander.sverdlin@gmail.com \
    --to=alexander.sverdlin@gmail.com \
    --cc=andre.przywara@arm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=ebiggers@kernel.org \
    --cc=hansg@kernel.org \
    --cc=j.ne@posteo.net \
    --cc=jernej.skrabec@gmail.com \
    --cc=jerrysteve1101@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=luca@lucaweiss.eu \
    --cc=lukas.schmid@netcube.li \
    --cc=michal.simek@amd.com \
    --cc=mripard@kernel.org \
    --cc=robh@kernel.org \
    --cc=samuel@sholland.org \
    --cc=sven@kernel.org \
    --cc=wens@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox