bus: add driver for IMX AIPSTZ bridge
authorLaurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Tue, 10 Jun 2025 16:01:49 +0000 (12:01 -0400)
committerShawn Guo <shawnguo@kernel.org>
Tue, 1 Jul 2025 14:23:21 +0000 (22:23 +0800)
commit796cba2dd4d9fb72c2de8fceb4e5c67a6f3c3f9a
tree7900cf2422f33b2fb633e8410a6f2f3a735a09f2
parent37ccad07fd050815890ba222892169e7bcda1dec
bus: add driver for IMX AIPSTZ bridge

The secure AHB to IP Slave (AIPSTZ) bus bridge provides access control
configurations meant to restrict access to certain peripherals.
Some of the configurations include:

1) Marking masters as trusted for R/W. Based on this
(and the configuration of the accessed peripheral), the bridge
may choose to abort the R/W transactions issued by certain
masters.

2) Allowing/disallowing write accesses to peripherals.

Add driver for this IP. Since there's currently no framework for
access controllers (and since there's currently no need for having
flexibility w.r.t the configurations) all this driver does is it
applies a relaxed, "default" configuration, in which all masters
are trusted for R/W.

Note that some instances of this IP (e.g: AIPSTZ5 on i.MX8MP) may be tied
to a power domain and may lose their configuration when the domain is
powered off. This is why the configuration has to be restored when the
domain is powered on.

Co-developed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/bus/Kconfig
drivers/bus/Makefile
drivers/bus/imx-aipstz.c [new file with mode: 0644]