[PATCH 4/4] arm: dts: omap: Mark various register maps as dangerous
From: Richard Weinberger
Date: Sat Nov 29 2025 - 09:22:25 EST
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@xxxxxx>
---
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@1c04 {
compatible = "syscon";
reg = <0x1c04 0x0020>;
#syscon-cells = <2>;
+ has-inaccessible-regs;
};
scm_conf_pcie: scm_conf@1c24 {
compatible = "syscon";
reg = <0x1c24 0x0024>;
+ has-inaccessible-regs;
};
sdma_xbar: dma-router@b78 {
@@ -4306,6 +4309,7 @@ target-module@c000 { /* 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@4a0021e0 {
dsp1_system: dsp_system@40d00000 {
compatible = "syscon";
reg = <0x40d00000 0x100>;
+ has-inaccessible-regs;
};
dra7_iodelay_core: padconf@4844a000 {
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@41500000 {
compatible = "syscon";
reg = <0x41500000 0x100>;
+ has-inaccessible-regs;
};
--
2.51.0