[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251129142042.344359-5-richard@nod.at>
Date: Sat, 29 Nov 2025 15:20:42 +0100
From: Richard Weinberger <richard@....at>
To: linux-kernel@...r.kernel.org
Cc: linux-omap@...r.kernel.org,
devicetree@...r.kernel.org,
arnd@...db.de,
lee@...nel.org,
dakr@...nel.org,
rafael@...nel.org,
gregkh@...uxfoundation.org,
broonie@...nel.org,
tony@...mide.com,
rogerq@...nel.org,
khilman@...libre.com,
andreas@...nade.info,
aaro.koskinen@....fi,
conor+dt@...nel.org,
krzk+dt@...nel.org,
robh@...nel.org,
Richard Weinberger <richard@....at>
Subject: [PATCH 4/4] arm: dts: omap: Mark various register maps as dangerous
These register maps contain registers where reads can cause an
imprecise async data abort.
Mark these register maps with has-inaccessible-regs to make sure
they cannot be accessed via debugfs and only by device drivers that
hopefully know exactly how and when access is allowed.
Signed-off-by: Richard Weinberger <richard@....at>
---
arch/arm/boot/dts/ti/omap/dra7-l4.dtsi | 4 ++++
arch/arm/boot/dts/ti/omap/dra7.dtsi | 1 +
arch/arm/boot/dts/ti/omap/dra74x.dtsi | 1 +
3 files changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/ti/omap/dra7-l4.dtsi b/arch/arm/boot/dts/ti/omap/dra7-l4.dtsi
index c9282f57ffa5e..bd037e199946e 100644
--- a/arch/arm/boot/dts/ti/omap/dra7-l4.dtsi
+++ b/arch/arm/boot/dts/ti/omap/dra7-l4.dtsi
@@ -69,6 +69,7 @@ scm_conf: scm_conf@0 {
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x0 0x1400>;
+ has-inaccessible-regs;
pbias_regulator: pbias_regulator@e00 {
compatible = "ti,pbias-dra7", "ti,pbias-omap";
@@ -110,11 +111,13 @@ scm_conf1: scm_conf@...4 {
compatible = "syscon";
reg = <0x1c04 0x0020>;
#syscon-cells = <2>;
+ has-inaccessible-regs;
};
scm_conf_pcie: scm_conf@...4 {
compatible = "syscon";
reg = <0x1c24 0x0024>;
+ has-inaccessible-regs;
};
sdma_xbar: dma-router@b78 {
@@ -4306,6 +4309,7 @@ target-module@...0 { /* 0x4ae0c000, ap 17 50.0 */
scm_wkup: scm_conf@0 {
compatible = "syscon";
reg = <0 0x1000>;
+ has-inaccessible-regs;
};
};
};
diff --git a/arch/arm/boot/dts/ti/omap/dra7.dtsi b/arch/arm/boot/dts/ti/omap/dra7.dtsi
index 711ce4c31bb1f..1b1f31608d37e 100644
--- a/arch/arm/boot/dts/ti/omap/dra7.dtsi
+++ b/arch/arm/boot/dts/ti/omap/dra7.dtsi
@@ -359,6 +359,7 @@ bandgap: bandgap@...021e0 {
dsp1_system: dsp_system@...00000 {
compatible = "syscon";
reg = <0x40d00000 0x100>;
+ has-inaccessible-regs;
};
dra7_iodelay_core: padconf@...4a000 {
diff --git a/arch/arm/boot/dts/ti/omap/dra74x.dtsi b/arch/arm/boot/dts/ti/omap/dra74x.dtsi
index cfb39dde49300..d814c31576797 100644
--- a/arch/arm/boot/dts/ti/omap/dra74x.dtsi
+++ b/arch/arm/boot/dts/ti/omap/dra74x.dtsi
@@ -47,6 +47,7 @@ ocp {
dsp2_system: dsp_system@...00000 {
compatible = "syscon";
reg = <0x41500000 0x100>;
+ has-inaccessible-regs;
};
--
2.51.0
Powered by blists - more mailing lists