[PATCH 13/14] [TEST] dts: stm32mp15: scmi mailbox transport

Etienne Carriere etienne.carriere at linaro.org
Thu Nov 4 15:23:23 CET 2021


Signed-off-by: Etienne Carriere <etienne.carriere at linaro.org>
---
 arch/arm/dts/stm32mp15-u-boot.dtsi |  4 ++++
 arch/arm/dts/stm32mp151.dtsi       | 21 ++++++++++++++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/arch/arm/dts/stm32mp15-u-boot.dtsi b/arch/arm/dts/stm32mp15-u-boot.dtsi
index 6fd204c635..d69b2df419 100644
--- a/arch/arm/dts/stm32mp15-u-boot.dtsi
+++ b/arch/arm/dts/stm32mp15-u-boot.dtsi
@@ -151,6 +151,10 @@
 	u-boot,dm-pre-reloc;
 };
 
+&scmi0_mbox {
+	u-boot,dm-pre-reloc;
+};
+
 &scmi0_reset {
 	u-boot,dm-pre-reloc;
 };
diff --git a/arch/arm/dts/stm32mp151.dtsi b/arch/arm/dts/stm32mp151.dtsi
index 6eaf3760bc..8fcce4aa2a 100644
--- a/arch/arm/dts/stm32mp151.dtsi
+++ b/arch/arm/dts/stm32mp151.dtsi
@@ -65,6 +65,12 @@
 		};
 	};
 
+	scmi0_mbox: mailbox-0 {
+		#mbox-cells = <0>;
+		compatible = "arm,smc-mbox";
+		arm,func-id = <0x82002000>;
+	};
+
 	firmware {
 		optee: optee {
 			compatible = "linaro,optee-tz";
@@ -73,17 +79,22 @@
 		};
 
 		scmi0: scmi0 {
-			//compatible = "linaro,scmi-optee";
-			compatible = "arm,scmi-smc";
 			#address-cells = <1>;
 			#size-cells = <0>;
-			//linaro,optee-channel-id = <0>;
-			/* Supply properties for arm,scmi-smc compatible */
-			arm,smc-id = <0x82002000>;
 			shmem = <&scmi0_shm>;
 			/* Enable only if stm32mp15x RCC[TZEN]=1 */
 			status = "disabled";
 
+			//compatible = "linaro,scmi-optee";
+			//linaro,optee-channel-id = <0>;
+
+			//compatible = "arm,scmi-smc";
+			//arm,smc-id = <0x82002000>;
+
+			compatible = "arm,scmi";
+			mboxes = <&scmi0_mbox>;
+			mbox-names = "txrx";
+
 			scmi0_clk: protocol at 14 {
 				reg = <0x14>;
 				#clock-cells = <1>;
-- 
2.17.1



More information about the U-Boot mailing list