summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFugang Duan <fugang.duan@nxp.com>2017-10-11 14:22:10 +0800
committerFugang Duan <fugang.duan@nxp.com>2017-10-11 19:10:59 +0800
commit572a89ccbf4b87e31fc46aae20c94f800e5e0d6e (patch)
tree8868653e425d7a6208d3eff0344d12b63b46bcd3
parent23b0361c2fbbdce59b2cb914ea7e067a5b10d295 (diff)
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 <hongxing.zhu@nxp.com> Reviewed-by: Robin Gong <yibin.gong@nxp.com> Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
-rw-r--r--arch/arm/boot/dts/imx7ulp-evk.dts33
1 files 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";
};