From 5436757f014db7109f89278555c21fc5dd10def7 Mon Sep 17 00:00:00 2001 From: Fugang Duan Date: Wed, 11 Oct 2017 14:22:10 +0800 Subject: [PATCH] MLK-16564-02 dts: imx7ulp-evk: add rpmsg gpio PTA and PTB support Add rpmsg gpio PTA and PTB support. Since currently M4 image support dynamical channel allocation, and reserve below memory for kernel service and app channel: * --0x9FF00000~0x9FF0FFFF: pmic,pm,audio,keys,gpio * --0x9FF10000~0x9FF1FFFF: pingpong,virtual tty Change the rpmsg instances of A core part to sync with M core. Test M4 image built from Wayne Feng, M4 image commit ID: b1321d4aca82 Reviewed-by: Richard Zhu Reviewed-by: Robin Gong Signed-off-by: Fugang Duan --- arch/arm/boot/dts/imx7ulp-evk.dts | 33 +++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts index 0ff23f42aa44..3ee6e3c34747 100644 --- a/arch/arm/boot/dts/imx7ulp-evk.dts +++ b/arch/arm/boot/dts/imx7ulp-evk.dts @@ -16,6 +16,11 @@ model = "NXP i.MX7ULP EVK"; compatible = "fsl,imx7ulp-evk", "fsl,imx7ulp", "Generic DT based system"; + aliases { + gpio4 = &rpmsg_gpio0; + gpio5 = &rpmsg_gpio1; + }; + chosen { bootargs = "console=ttyLP0,115200 earlycon=lpuart32,0x402D0000,115200"; stdout-path = &lpuart4; @@ -166,6 +171,22 @@ status = "okay"; }; + rpmsg_gpio0: rpmsg-gpio0 { + compatible = "fsl,imx-rpmsg-gpio"; + port_idx = <0>; + gpio-controller; + #gpio-cells = <2>; + status = "okay"; + }; + + rpmsg_gpio1: rpmsg-gpio1 { + compatible = "fsl,imx-rpmsg-gpio"; + port_idx = <1>; + gpio-controller; + #gpio-cells = <2>; + status = "okay"; + }; + rpmsg_keys: rpmsg-keys { compatible = "fsl,rpmsg-keys"; @@ -484,15 +505,11 @@ &rpmsg{ /* * 64K for one rpmsg instance, default using 2 rpmsg instances: - * --0x9FF00000~0x9FF0FFFF: pingpong - * --0x9FF10000~0x9FF1FFFF: pmic - * --0x9FF20000~0x9FF2FFFF: pm - * --0x9FF30000~0x9FF3FFFF: audio - * --0x9FF40000~0x9FF4FFFF: virtual tty - * --0x9FF50000~0x9FF5FFFF: keys + * --0x9FF00000~0x9FF0FFFF: pmic,pm,audio,keys,gpio + * --0x9FF10000~0x9FF1FFFF: pingpong,virtual tty */ - vdev-nums = <6>; - reg = <0x9FF00000 0x60000>; + vdev-nums = <2>; + reg = <0x9FF00000 0x20000>; status = "okay"; }; -- 2.17.1