diff mbox series

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

Message ID 20211104142324.2879-13-etienne.carriere@linaro.org
State New
Headers show
Series [01/14] firmware: scmi: fix description of an API function | expand

Commit Message

Etienne Carriere Nov. 4, 2021, 2:23 p.m. UTC
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>

---
 arch/arm/dts/stm32mp15-u-boot.dtsi |  4 ++++
 arch/arm/dts/stm32mp151.dtsi       | 21 ++++++++++++++++-----
 2 files changed, 20 insertions(+), 5 deletions(-)

-- 
2.17.1
diff mbox series

Patch

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@14 {
 				reg = <0x14>;
 				#clock-cells = <1>;