Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch/arm64/boot/dts/marvell: add optee FW definitions
@ 2022-11-09 14:30 kostap
  2022-11-09 14:34 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: kostap @ 2022-11-09 14:30 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring, Stefan Chulski, Nadav Haklai,
	Konstantin Porotchkin, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth

From: Konstantin Porotchkin <kostap@marvell.com>

Add reserved memory and ARM firmware definitions for optee
memory region in Marvell Armada SoCs to avoid protected memory
access.

Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@bootlin.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
---
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi  | 11 +++++++++++
 arch/arm64/boot/dts/marvell/armada-ap80x.dtsi | 13 +++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index df152c72276b..c7a5a25826ea 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -35,6 +35,11 @@ psci-area@4000000 {
 			reg = <0 0x4000000 0 0x200000>;
 			no-map;
 		};
+
+		tee@4400000 {
+			reg = <0 0x4400000 0 0x1000000>;
+			no-map;
+		};
 	};
 
 	cpus {
@@ -531,5 +536,11 @@ armada-3700-rwtm {
 			mboxes = <&rwtm 0>;
 			status = "okay";
 		};
+
+		optee {
+			compatible = "linaro,optee-tz";
+			method = "smc";
+			status = "okay";
+		 };
 	};
 };
diff --git a/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi b/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi
index a06a0a889c43..abf373b39463 100644
--- a/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi
@@ -41,6 +41,11 @@ psci-area@4000000 {
 			reg = <0x0 0x4000000 0x0 0x200000>;
 			no-map;
 		};
+
+		tee@4400000 {
+			reg = <0 0x4400000 0 0x1000000>;
+			no-map;
+		};
 	};
 
 	AP_NAME {
@@ -461,4 +466,12 @@ map3_emerg: map3-emerg {
 			};
 		};
 	};
+
+	firmware {
+		optee {
+			compatible = "linaro,optee-tz";
+			method = "smc";
+			status = "okay";
+		 };
+	};
 };
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arch/arm64/boot/dts/marvell: add optee FW definitions
  2022-11-09 14:30 [PATCH] arch/arm64/boot/dts/marvell: add optee FW definitions kostap
@ 2022-11-09 14:34 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-09 14:34 UTC (permalink / raw)
  To: kostap, linux-arm-kernel, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski, Rob Herring, Stefan Chulski, Nadav Haklai,
	Andrew Lunn, Gregory Clement, Sebastian Hesselbarth

On 09/11/2022 15:30, kostap@marvell.com wrote:
> From: Konstantin Porotchkin <kostap@marvell.com>
> 
> Add reserved memory and ARM firmware definitions for optee
> memory region in Marvell Armada SoCs to avoid protected memory
> access.
> 
> Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>

Use subject prefixes matching the subsystem (git log --oneline -- ...).

> Cc: Andrew Lunn <andrew@lunn.ch>
> Cc: Gregory Clement <gregory.clement@bootlin.com>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> ---
>  arch/arm64/boot/dts/marvell/armada-37xx.dtsi  | 11 +++++++++++
>  arch/arm64/boot/dts/marvell/armada-ap80x.dtsi | 13 +++++++++++++
>  2 files changed, 24 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> index df152c72276b..c7a5a25826ea 100644
> --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> @@ -35,6 +35,11 @@ psci-area@4000000 {
>  			reg = <0 0x4000000 0 0x200000>;
>  			no-map;
>  		};
> +
> +		tee@4400000 {
> +			reg = <0 0x4400000 0 0x1000000>;
> +			no-map;
> +		};
>  	};
>  
>  	cpus {
> @@ -531,5 +536,11 @@ armada-3700-rwtm {
>  			mboxes = <&rwtm 0>;
>  			status = "okay";
>  		};
> +
> +		optee {
> +			compatible = "linaro,optee-tz";
> +			method = "smc";
> +			status = "okay";

Why? It's by default.

> +		 };
>  	};
>  };
> diff --git a/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi b/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi
> index a06a0a889c43..abf373b39463 100644
> --- a/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi
> +++ b/arch/arm64/boot/dts/marvell/armada-ap80x.dtsi
> @@ -41,6 +41,11 @@ psci-area@4000000 {
>  			reg = <0x0 0x4000000 0x0 0x200000>;
>  			no-map;
>  		};
> +
> +		tee@4400000 {
> +			reg = <0 0x4400000 0 0x1000000>;
> +			no-map;
> +		};
>  	};
>  
>  	AP_NAME {
> @@ -461,4 +466,12 @@ map3_emerg: map3-emerg {
>  			};
>  		};
>  	};
> +
> +	firmware {
> +		optee {
> +			compatible = "linaro,optee-tz";
> +			method = "smc";
> +			status = "okay";

Drop.

> +		 };
> +	};
>  };

Best regards,
Krzysztof


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-09 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-09 14:30 [PATCH] arch/arm64/boot/dts/marvell: add optee FW definitions kostap
2022-11-09 14:34 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox