]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: k3-j721s2-binman: Add firewall configurations
authorManorit Chawdhry <m-chawdhry@ti.com>
Fri, 29 Dec 2023 10:46:30 +0000 (16:16 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 4 Jan 2024 21:48:00 +0000 (16:48 -0500)
The following commits adds the configuration of firewalls required to
protect ATF and OP-TEE memory region from non-secure reads and
writes using master and slave firewalls present in our K3 SOCs.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
arch/arm/dts/k3-j721s2-binman.dtsi

index f17dd8e04cfa3949e1310534ad4db7ba0d9989e6..7efb135bdff94266efc59b2b2d857218d9692296 100644 (file)
 
                fit {
                        images {
+                               atf {
+                                       ti-secure {
+                                               auth-in-place = <0xa02>;
+
+                                               firewall-257-0 {
+                                                       /* cpu_0_cpu_0_msmc Background Firewall */
+                                                       insert-template = <&firewall_bg_1>;
+                                                       id = <257>;
+                                                       region = <0>;
+                                               };
+
+                                               firewall-257-1 {
+                                                       /* cpu_0_cpu_0_msmc Foreground Firewall */
+                                                       insert-template = <&firewall_armv8_atf_fg>;
+                                                       id = <257>;
+                                                       region = <1>;
+                                               };
+
+                                               firewall-284-0 {
+                                                       /* dru_0_msmc Background Firewall */
+                                                       insert-template = <&firewall_bg_3>;
+                                                       id = <284>;
+                                                       region = <0>;
+                                               };
+
+                                               firewall-284-1 {
+                                                       /* dru_0_msmc Foreground Firewall */
+                                                       insert-template = <&firewall_armv8_atf_fg>;
+                                                       id = <284>;
+                                                       region = <1>;
+                                               };
+
+                                               /*      firewall-5140-0 {
+                                                *              nb_slv0__mem0 Background Firewall
+                                                *              Already configured by the secure entity
+                                                *      };
+                                                */
+
+                                               firewall-5140-1 {
+                                                       /* nb_slv0__mem0 Foreground Firewall */
+                                                       insert-template = <&firewall_armv8_atf_fg>;
+                                                       id = <5140>;
+                                                       region = <1>;
+                                               };
+
+                                               /*      firewall-5140-0 {
+                                                *              nb_slv1__mem0 Background Firewall
+                                                *              Already configured by the secure entity
+                                                *      };
+                                                */
+
+                                               firewall-5141-1 {
+                                                       /* nb_slv1__mem0 Foreground Firewall */
+                                                       insert-template = <&firewall_armv8_atf_fg>;
+                                                       id = <5141>;
+                                                       region = <1>;
+                                               };
+
+                                       };
+                               };
+
+                               tee {
+                                       ti-secure {
+                                               auth-in-place = <0xa02>;
+
+                                               firewall-257-2 {
+                                                       /* cpu_0_cpu_0_msmc Foreground Firewall */
+                                                       insert-template = <&firewall_armv8_optee_fg>;
+                                                       id = <257>;
+                                                       region = <2>;
+                                               };
+
+                                               firewall-284-2 {
+                                                       /* dru_0_msmc Foreground Firewall */
+                                                       insert-template = <&firewall_armv8_optee_fg>;
+                                                       id = <284>;
+                                                       region = <2>;
+                                               };
+
+                                               firewall-5142-0 {
+                                                       /* nb_slv2__mem0 Background Firewall - 0 */
+                                                       insert-template = <&firewall_bg_3>;
+                                                       id = <5142>;
+                                                       region = <0>;
+                                               };
+
+                                               firewall-5142-1 {
+                                                       /* nb_slv2__mem0 Foreground Firewall */
+                                                       insert-template = <&firewall_armv8_optee_fg>;
+                                                       id = <5142>;
+                                                       region = <1>;
+                                               };
+
+                                               firewall-5143-0 {
+                                                       /* nb_slv3__mem0 Background Firewall - 0 */
+                                                       insert-template = <&firewall_bg_3>;
+                                                       id = <5143>;
+                                                       region = <0>;
+                                               };
+
+                                               firewall-5143-1 {
+                                                       /* nb_slv3__mem0 Foreground Firewall */
+                                                       insert-template = <&firewall_armv8_optee_fg>;
+                                                       id = <5143>;
+                                                       region = <1>;
+                                               };
+
+                                               firewall-5144-0 {
+                                                       /* nb_slv4__mem0 Background Firewall - 0 */
+                                                       insert-template = <&firewall_bg_3>;
+                                                       id = <5144>;
+                                                       region = <0>;
+                                               };
+
+                                               firewall-5144-1 {
+                                                       /* nb_slv4__mem0 Foreground Firewall */
+                                                       insert-template = <&firewall_armv8_optee_fg>;
+                                                       id = <5144>;
+                                                       region = <1>;
+                                               };
+
+                                       };
+                               };
                                dm {
                                        ti-secure {
                                                content = <&dm>;