MLK-16483 ARM64: dts: imx8mq-evk-pcie1-m2: add pcie1 M.2 interface support
authorFugang Duan <fugang.duan@nxp.com>
Fri, 15 Sep 2017 11:10:13 +0000 (19:10 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:35 +0000 (15:38 -0500)
Add pcie1 M.2 interface support.

Tested with Murata 1CQ bt-wifi old EVB card, we still don't get
new EVB card. To disable usdhc2 port that old MEK board use SD2_nRST
as wifi wlreg_on.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/fsl-imx8mq-evk-pcie1-m2.dts [new file with mode: 0644]

index dfe507d..49efa2f 100644 (file)
@@ -26,7 +26,8 @@ dtb-$(CONFIG_ARCH_FSL_IMX8QXP) += fsl-imx8qxp-lpddr4-arm2.dtb \
 dtb-$(CONFIG_ARCH_FSL_IMX8MQ) += fsl-imx8mq-evk.dtb \
                                 fsl-imx8mq-evk-od.dtb \
                                 fsl-imx8mq-evk-4k.dtb \
-                                fsl-imx8mq-evk-lcdif-dsi.dtb
+                                fsl-imx8mq-evk-lcdif-dsi.dtb \
+                                fsl-imx8mq-evk-pcie1-m2.dtb
 
 always         := $(dtb-y)
 subdir-y       := $(dts-dirs)
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk-pcie1-m2.dts b/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk-pcie1-m2.dts
new file mode 100644 (file)
index 0000000..8172be4
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "fsl-imx8mq-evk.dts"
+
+/ {
+       modem_reset: modem-reset {
+               reset-gpios = <&gpio3 5 GPIO_ACTIVE_HIGH>;
+       };
+
+       regulators {
+               epdev_on: fixedregulator@100 {
+                       compatible = "regulator-fixed";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-name = "epdev_on";
+                       gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
+       };
+};
+
+&iomuxc {
+       imx8mq-evk {
+               pinctrl_epdev_on: epdevongrp {
+                       fsl,pins = <
+                               MX8MQ_IOMUXC_SD2_RESET_B_GPIO2_IO19     0x16
+                       >;
+               };
+       };
+};
+
+&pcie1{
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pcie1 &pinctrl_epdev_on>;
+       epdev_on-supply = <&epdev_on>;
+};
+
+&usdhc2 {
+       status = "disabled";
+};