From: Shenwei Wang <[email protected]>

Add the RPMSG bus node along with its GPIO subnodes to the device
tree.

Enable remote device communication and GPIO control via RPMSG on
the i.MX platform.

Signed-off-by: Shenwei Wang <[email protected]>
---
 arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi 
b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi
index c6d1bb9edf38..81fb36b48f20 100644
--- a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi
@@ -190,6 +190,29 @@ scmi_sensor: protocol@15 {
        cm33: remoteproc-cm33 {
                compatible = "fsl,imx8ulp-cm33";
                status = "disabled";
+
+               rpmsg {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       rpmsg_gpioa: gpio@0 {
+                               compatible = "rpmsg-gpio";
+                               reg = <0>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                               #interrupt-cells = <2>;
+                               interrupt-controller;
+                       };
+
+                       rpmsg_gpiob: gpio@1 {
+                               compatible = "rpmsg-gpio";
+                               reg = <1>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                               #interrupt-cells = <2>;
+                               interrupt-controller;
+                       };
+               };
        };
 
        soc: soc@0 {
-- 
2.43.0


Reply via email to