summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorLeonard Crestez <leonard.crestez@nxp.com>2018-03-05 16:24:23 +0200
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:24:03 +0800
commit82ff7d045fd3cf180f4717381cccc070131e8065 (patch)
treeebd2ff1a7578ca7ab6c5a8e0293736bea8c1744e /arch/arm
parentd0b5ca98730eb2bd96800de5107c1e54cca56dd9 (diff)
MLK-12035 dts: imx7d-sdb-revb: add i.MX7d sdb revb support
Base on i.MX7d sdb revb board change list, below modules has changed: - enet2 and epdc enable pin - usb_otg2 pwr enable pin - ov5647_mipi pwr pin - tsc2046 touch pendown pin - uart5 tx/rx pins - sensor INT pin - pcie power is controlled by por_b, not gpio_spi pin6 - hdmi audio change to SAI3 from SAI1 The patch add the changes for revb, and keep the original functions for reva board. Remove redundancy sim and enet dts files to avoid excessive dts file for reva and revb. After the patch, there have below diff: - default dts file: imx7d-sdb.dts for revb board, imx7d-sdb-reva.dts for reva board - remove enet, sim extended dts files, so these modules are enabled in default dts file for reva and revb board. The change of expanded dts due to pin confliction: - Keep the original expanded name of dts file for revb board, add suffix "-reva" in dts file name for reva board. - Like: hdmi/codec audio: hdmi audio and wm8960 codec are enabled in default dts file for revb board, no extended dts files to separate them. Keep original extended dts files for reva board: imx7d-sdb-reva-hdmi-audio.dts imx7d-sdb-reva-wm8960.dts epdc: imx7d-sdb-epdc.dts is for revb board, imx7d-sdb-reva-epdc.dts is for reva board. gpmi-weim: imx7d-sdb-gpmi-weim.dtsi for revb, imx7d-sdb-reva-gpmi-weim.dtsi for reva. m4: imx7d-sdb-m4.dts for revb, imx7d-sdb-reva-m4.dts for reva. qspi: imx7d-sdb-qspi.dts for revb, imx7d-sdb-reva-qspi.dts for reva. touchscreen: imx7d-sdb-touch.dts for revb, imx7d-sdb-reva-touch.dts for reva. Cherry picked from commit: 2be1a236696d, and disable sai3 since there have many Transmit underrun on kernel 4.1. Signed-off-by: Fugang Duan <B38611@freescale.com> Acked-by: Robby Cai <robby.cai@nxp.com> Acked-by: Gao Pan <pandy.gao@nxp.com> Acked-by: Peter Chen <peter.chen@freescale.com> Acked-by: Chen Bough <Haibo.Chen@freescale.com> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/Makefile11
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-epdc.dts31
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-epdc.dtsi35
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-gpmi-weim.dts18
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-gpmi-weim.dtsi23
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-m4.dts53
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-m4.dtsi58
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-qspi.dts37
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-qspi.dtsi44
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-reva-epdc.dts9
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-reva-gpmi-weim.dts9
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-reva-hdmi-audio.dts (renamed from arch/arm/boot/dts/imx7d-sdb-hdmi-audio.dts)0
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-reva-m4.dts9
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-reva-qspi.dts9
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-reva-touch.dts9
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-reva-wm8960.dts (renamed from arch/arm/boot/dts/imx7d-sdb-wm8960.dts)0
-rw-r--r--arch/arm/boot/dts/imx7d-sdb-reva.dts85
-rw-r--r--arch/arm/boot/dts/imx7d-sdb.dts77
18 files changed, 350 insertions, 167 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index e8e3a9266fc7..8bf04a68a65b 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -544,13 +544,18 @@ dtb-$(CONFIG_SOC_IMX7D) += \
imx7d-pico.dtb \
imx7d-sbc-imx7.dtb \
imx7d-sdb.dtb \
- imx7d-sdb-wm8960.dtb \
- imx7d-sdb-hdmi-audio.dtb \
imx7d-sdb-epdc.dtb \
imx7d-sdb-gpmi-weim.dtb \
- imx7d-sdb-qspi.dtb \
imx7d-sdb-m4.dtb \
imx7d-sdb-sht11.dtb \
+ imx7d-sdb-qspi.dtb \
+ imx7d-sdb-reva.dtb \
+ imx7d-sdb-reva-epdc.dtb \
+ imx7d-sdb-reva-gpmi-weim.dtb \
+ imx7d-sdb-reva-hdmi-audio.dtb \
+ imx7d-sdb-reva-m4.dtb \
+ imx7d-sdb-reva-qspi.dtb \
+ imx7d-sdb-reva-wm8960.dtb \
imx7s-colibri-eval-v3.dtb \
imx7s-warp.dtb \
imx7d-12x12-lpddr3-arm2.dtb \
diff --git a/arch/arm/boot/dts/imx7d-sdb-epdc.dts b/arch/arm/boot/dts/imx7d-sdb-epdc.dts
index 9eb5d8381252..e263ad446373 100644
--- a/arch/arm/boot/dts/imx7d-sdb-epdc.dts
+++ b/arch/arm/boot/dts/imx7d-sdb-epdc.dts
@@ -5,34 +5,5 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-
#include "imx7d-sdb.dts"
-
-&epdc {
- status = "okay";
-};
-
-&fec1 {
- status = "disabled";
-};
-
-&fec2 {
- status = "disabled";
-};
-
-&flexcan2 {
- status = "disabled";
-};
-
-&max17135 {
- status = "okay";
-};
-
-&sii902x {
- status = "disabled";
-};
-
-&sim1 {
- status = "disabled";
-};
-
+#include "imx7d-sdb-epdc.dtsi"
diff --git a/arch/arm/boot/dts/imx7d-sdb-epdc.dtsi b/arch/arm/boot/dts/imx7d-sdb-epdc.dtsi
new file mode 100644
index 000000000000..cbc7ca1af076
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-epdc.dtsi
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+&epdc {
+ status = "okay";
+};
+
+&fec1 {
+ status = "disabled";
+};
+
+&fec2 {
+ status = "disabled";
+};
+
+&flexcan2 {
+ status = "disabled";
+};
+
+&max17135 {
+ status = "okay";
+};
+
+&sii902x {
+ status = "disabled";
+};
+
+&sim1 {
+ status = "disabled";
+};
diff --git a/arch/arm/boot/dts/imx7d-sdb-gpmi-weim.dts b/arch/arm/boot/dts/imx7d-sdb-gpmi-weim.dts
index 2014f0a976ba..346e38cca609 100644
--- a/arch/arm/boot/dts/imx7d-sdb-gpmi-weim.dts
+++ b/arch/arm/boot/dts/imx7d-sdb-gpmi-weim.dts
@@ -5,21 +5,5 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-
#include "imx7d-sdb.dts"
-
-&gpmi{
- status = "okay";
-};
-
-&sai1{
- status = "disabled";
-};
-
-&usdhc3{
- status = "disabled";
-};
-
-&uart5{
- status = "disabled";
-};
+#include "imx7d-sdb-gpmi-weim.dtsi"
diff --git a/arch/arm/boot/dts/imx7d-sdb-gpmi-weim.dtsi b/arch/arm/boot/dts/imx7d-sdb-gpmi-weim.dtsi
new file mode 100644
index 000000000000..3a1208f44242
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-gpmi-weim.dtsi
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+&gpmi{
+ status = "okay";
+};
+
+&sai1{
+ status = "disabled";
+};
+
+&usdhc3{
+ status = "disabled";
+};
+
+&uart5{
+ status = "disabled";
+};
diff --git a/arch/arm/boot/dts/imx7d-sdb-m4.dts b/arch/arm/boot/dts/imx7d-sdb-m4.dts
index 85fb1b981aaa..7aa803559ef5 100644
--- a/arch/arm/boot/dts/imx7d-sdb-m4.dts
+++ b/arch/arm/boot/dts/imx7d-sdb-m4.dts
@@ -5,56 +5,5 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-
#include "imx7d-sdb.dts"
-
-/ {
- memory {
- linux,usable-memory = <0x80000000 0x1ff00000>,
- <0xa0000000 0x1ff00000>;
- };
-};
-
-&adc1 {
- status = "disabled";
-};
-
-&adc2 {
- status = "disabled";
-};
-
-&flexcan1 {
- status = "disabled";
-};
-
-&flexcan2 {
- status = "disabled";
-};
-
-&i2c2 {
- status = "disabled";
-};
-
-&gpt3 {
- status = "disabled";
-};
-
-&gpt4 {
- status = "disabled";
-};
-
-&ocram {
- reg = <0x00901000 0xf000>;
-};
-
-&rpmsg{
- status = "okay";
-};
-
-&uart2 {
- status = "disabled";
-};
-
-&wdog3{
- status = "disabled";
-};
+#include "imx7d-sdb-m4.dtsi"
diff --git a/arch/arm/boot/dts/imx7d-sdb-m4.dtsi b/arch/arm/boot/dts/imx7d-sdb-m4.dtsi
new file mode 100644
index 000000000000..1f71eeb27bdf
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-m4.dtsi
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/ {
+ memory {
+ linux,usable-memory = <0x80000000 0x1ff00000>,
+ <0xa0000000 0x1ff00000>;
+ };
+};
+
+&adc1 {
+ status = "disabled";
+};
+
+&adc2 {
+ status = "disabled";
+};
+
+&flexcan1 {
+ status = "disabled";
+};
+
+&flexcan2 {
+ status = "disabled";
+};
+
+&i2c2 {
+ status = "disabled";
+};
+
+&gpt3 {
+ status = "disabled";
+};
+
+&gpt4 {
+ status = "disabled";
+};
+
+&ocram {
+ reg = <0x00901000 0xf000>;
+};
+
+&rpmsg{
+ status = "okay";
+};
+
+&uart2 {
+ status = "disabled";
+};
+
+&wdog3{
+ status = "disabled";
+};
diff --git a/arch/arm/boot/dts/imx7d-sdb-qspi.dts b/arch/arm/boot/dts/imx7d-sdb-qspi.dts
index 83b040170f2f..a46990554d28 100644
--- a/arch/arm/boot/dts/imx7d-sdb-qspi.dts
+++ b/arch/arm/boot/dts/imx7d-sdb-qspi.dts
@@ -5,40 +5,5 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-
#include "imx7d-sdb.dts"
-
-/* disable epdc, conflict with qspi */
-&epdc {
- status = "disabled";
-};
-
-&iomuxc {
- qspi1 {
- pinctrl_qspi1_1: qspi1grp_1 {
- fsl,pins = <
- MX7D_PAD_EPDC_DATA00__QSPI_A_DATA0 0x51
- MX7D_PAD_EPDC_DATA01__QSPI_A_DATA1 0x51
- MX7D_PAD_EPDC_DATA02__QSPI_A_DATA2 0x51
- MX7D_PAD_EPDC_DATA03__QSPI_A_DATA3 0x51
- MX7D_PAD_EPDC_DATA05__QSPI_A_SCLK 0x51
- MX7D_PAD_EPDC_DATA06__QSPI_A_SS0_B 0x51
- >;
- };
- };
-};
-
-&qspi1 {
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_qspi1_1>;
- status = "okay";
- ddrsmp=<0>;
-
- flash0: mx25l51245g@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "macronix,mx25l51245g";
- spi-max-frequency = <29000000>;
- reg = <0>;
- };
-};
+#include "imx7d-sdb-qspi.dtsi"
diff --git a/arch/arm/boot/dts/imx7d-sdb-qspi.dtsi b/arch/arm/boot/dts/imx7d-sdb-qspi.dtsi
new file mode 100644
index 000000000000..1ba3e66c974a
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-qspi.dtsi
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/* disable epdc, conflict with qspi */
+&epdc {
+ status = "disabled";
+};
+
+&iomuxc {
+ qspi1 {
+ pinctrl_qspi1_1: qspi1grp_1 {
+ fsl,pins = <
+ MX7D_PAD_EPDC_DATA00__QSPI_A_DATA0 0x51
+ MX7D_PAD_EPDC_DATA01__QSPI_A_DATA1 0x51
+ MX7D_PAD_EPDC_DATA02__QSPI_A_DATA2 0x51
+ MX7D_PAD_EPDC_DATA03__QSPI_A_DATA3 0x51
+ MX7D_PAD_EPDC_DATA05__QSPI_A_SCLK 0x51
+ MX7D_PAD_EPDC_DATA06__QSPI_A_SS0_B 0x51
+ >;
+ };
+ };
+};
+
+&qspi1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_qspi1_1>;
+ status = "okay";
+ ddrsmp=<0>;
+
+ flash0: mx25l51245g@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "macronix,mx25l51245g";
+ spi-max-frequency = <29000000>;
+ /* take off one dummy cycle */
+ spi-nor,ddr-quad-read-dummy = <5>;
+ reg = <0>;
+ };
+};
diff --git a/arch/arm/boot/dts/imx7d-sdb-reva-epdc.dts b/arch/arm/boot/dts/imx7d-sdb-reva-epdc.dts
new file mode 100644
index 000000000000..341a8ad0b696
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-reva-epdc.dts
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include "imx7d-sdb-reva.dts"
+#include "imx7d-sdb-epdc.dtsi"
diff --git a/arch/arm/boot/dts/imx7d-sdb-reva-gpmi-weim.dts b/arch/arm/boot/dts/imx7d-sdb-reva-gpmi-weim.dts
new file mode 100644
index 000000000000..4d221f8d7dd7
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-reva-gpmi-weim.dts
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include "imx7d-sdb-reva.dts"
+#include "imx7d-sdb-gpmi-weim.dtsi"
diff --git a/arch/arm/boot/dts/imx7d-sdb-hdmi-audio.dts b/arch/arm/boot/dts/imx7d-sdb-reva-hdmi-audio.dts
index 221fdd0750d1..221fdd0750d1 100644
--- a/arch/arm/boot/dts/imx7d-sdb-hdmi-audio.dts
+++ b/arch/arm/boot/dts/imx7d-sdb-reva-hdmi-audio.dts
diff --git a/arch/arm/boot/dts/imx7d-sdb-reva-m4.dts b/arch/arm/boot/dts/imx7d-sdb-reva-m4.dts
new file mode 100644
index 000000000000..78148f0d0a04
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-reva-m4.dts
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include "imx7d-sdb-reva.dts"
+#include "imx7d-sdb-m4.dtsi"
diff --git a/arch/arm/boot/dts/imx7d-sdb-reva-qspi.dts b/arch/arm/boot/dts/imx7d-sdb-reva-qspi.dts
new file mode 100644
index 000000000000..7b523cac9575
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-reva-qspi.dts
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include "imx7d-sdb-reva.dts"
+#include "imx7d-sdb-qspi.dtsi"
diff --git a/arch/arm/boot/dts/imx7d-sdb-reva-touch.dts b/arch/arm/boot/dts/imx7d-sdb-reva-touch.dts
new file mode 100644
index 000000000000..7c338d536cf5
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-reva-touch.dts
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include "imx7d-sdb-reva.dts"
+#include "imx7d-sdb-touch.dtsi"
diff --git a/arch/arm/boot/dts/imx7d-sdb-wm8960.dts b/arch/arm/boot/dts/imx7d-sdb-reva-wm8960.dts
index d9f38298f154..d9f38298f154 100644
--- a/arch/arm/boot/dts/imx7d-sdb-wm8960.dts
+++ b/arch/arm/boot/dts/imx7d-sdb-reva-wm8960.dts
diff --git a/arch/arm/boot/dts/imx7d-sdb-reva.dts b/arch/arm/boot/dts/imx7d-sdb-reva.dts
new file mode 100644
index 000000000000..6c47137c3927
--- /dev/null
+++ b/arch/arm/boot/dts/imx7d-sdb-reva.dts
@@ -0,0 +1,85 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx7d-sdb.dts"
+
+/ {
+ reg_usb_otg2_vbus: regulator-usb-otg2-vbus {
+ gpio = <&gpio4 7 GPIO_ACTIVE_HIGH>;
+ };
+
+ reg_pcie: regulator-pcie {
+ compatible = "regulator-fixed";
+ regulator-name = "MPCIE_3V3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpio = <&extended_io 6 GPIO_ACTIVE_HIGH>;
+ regulator-always-on;
+ enable-active-high;
+ };
+
+ sound-hdmi {
+ cpu-dai = <&sai1>;
+ };
+};
+
+&epdc {
+ pinctrl-0 = <&pinctrl_epdc0>;
+ en-gpios = <&extended_io 5 GPIO_ACTIVE_LOW>;
+};
+
+&fec2 {
+ pinctrl-0 = <&pinctrl_enet2>;
+ pinctrl-assert-gpios = <>;
+};
+
+&i2c4 {
+ ov5647_mipi: ov5647_mipi@36 {
+ pwn-gpios = <&extended_io 7 GPIO_ACTIVE_HIGH>;
+ };
+};
+
+&iomuxc {
+ imx7d-sdb {
+ pinctrl_tsc2046_pendown: tsc2046_pendown {
+ fsl,pins = <
+ MX7D_PAD_EPDC_DATA13__GPIO2_IO13 0x59
+ >;
+ };
+
+ pinctrl_uart5: uart5grp {
+ fsl,pins = <
+ MX7D_PAD_SAI1_TX_BCLK__UART5_DCE_TX 0x79
+ MX7D_PAD_SAI1_RX_DATA__UART5_DCE_RX 0x79
+ MX7D_PAD_SAI1_TX_SYNC__UART5_DCE_CTS 0x79
+ MX7D_PAD_SAI1_TX_DATA__UART5_DCE_RTS 0x79
+ >;
+ };
+
+ pinctrl_uart5dte: uart5dtegrp {
+ fsl,pins = <
+ MX7D_PAD_SAI1_TX_BCLK__UART5_DTE_RX 0x79
+ MX7D_PAD_SAI1_RX_DATA__UART5_DTE_TX 0x79
+ MX7D_PAD_SAI1_TX_SYNC__UART5_DTE_RTS 0x79
+ MX7D_PAD_SAI1_TX_DATA__UART5_DTE_CTS 0x79
+ >;
+ };
+ };
+};
+
+&iomuxc {
+ pinctrl-0 = <&pinctrl_hog_1 &pinctrl_usbotg2_pwr_1>;
+};
+
+&iomuxc_lpsr {
+ pinctrl-0 = <&pinctrl_hog_2>;
+};
+
+&uart5 {
+ fsl,uart-has-rtscts;
+};
diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts
index 9fa9d093163d..3dac0013129e 100644
--- a/arch/arm/boot/dts/imx7d-sdb.dts
+++ b/arch/arm/boot/dts/imx7d-sdb.dts
@@ -88,7 +88,7 @@
regulator-name = "usb_otg2_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
- gpio = <&gpio4 7 GPIO_ACTIVE_HIGH>;
+ gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
@@ -137,16 +137,6 @@
gpio = <&gpio2 14 GPIO_ACTIVE_LOW>;
};
- reg_pcie: regulator-pcie {
- compatible = "regulator-fixed";
- regulator-name = "MPCIE_3V3";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- gpio = <&extended_io 6 GPIO_ACTIVE_HIGH>;
- regulator-always-on;
- enable-active-high;
- };
-
reg_sd1_vmmc: regulator-sd1-vmmc {
compatible = "regulator-fixed";
regulator-name = "VDD_SD1";
@@ -219,7 +209,7 @@
compatible = "fsl,imx7d-sdb-sii902x",
"fsl,imx-audio-sii902x";
model = "sii902x-audio";
- cpu-dai = <&sai1>;
+ cpu-dai = <&sai3>;
hdmi-controler = <&sii902x>;
};
};
@@ -281,11 +271,11 @@
&epdc {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_epdc0>;
+ pinctrl-0 = <&pinctrl_epdc0 &pinctrl_enet2_epdc0_en>;
V3P3-supply = <&V3P3_reg>;
VCOM-supply = <&VCOM_reg>;
DISPLAY-supply = <&DISPLAY_reg>;
- en-gpios = <&extended_io 5 0>;
+ en-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
status = "disabled";
};
@@ -324,7 +314,8 @@
&fec2 {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_enet2>;
+ pinctrl-0 = <&pinctrl_enet2 &pinctrl_enet2_epdc0_en>;
+ pinctrl-assert-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
assigned-clocks = <&clks IMX7D_ENET2_TIME_ROOT_SRC>,
<&clks IMX7D_ENET2_TIME_ROOT_CLK>;
assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>;
@@ -586,7 +577,7 @@
clocks = <&clks IMX7D_CLK_DUMMY>;
clock-names = "csi_mclk";
csi_id = <0>;
- pwn-gpios = <&extended_io 7 GPIO_ACTIVE_HIGH>;
+ pwn-gpios = <&extended_io 6 GPIO_ACTIVE_HIGH>;
mclk = <24000000>;
mclk_source = <0>;
port {
@@ -619,6 +610,16 @@
status = "okay";
};
+&sai3 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_sai3>;
+ assigned-clocks = <&clks IMX7D_SAI3_ROOT_SRC>,
+ <&clks IMX7D_SAI3_ROOT_CLK>;
+ assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
+ assigned-clock-rates = <0>, <36864000>;
+ status = "disabled";
+};
+
&sdma {
status = "okay";
};
@@ -632,7 +633,7 @@
&iomuxc_lpsr {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_hog_2>;
+ pinctrl-0 = <&pinctrl_hog_2 &pinctrl_usbotg2_pwr_2>;
imx7d-sdb {
pinctrl_hog_2: hoggrp-2 {
@@ -646,6 +647,12 @@
MX7D_PAD_LPSR_GPIO1_IO01__PWM1_OUT 0x110b0
>;
};
+
+ pinctrl_usbotg2_pwr_2: usbotg2-2 {
+ fsl,pins = <
+ MX7D_PAD_LPSR_GPIO1_IO07__GPIO1_IO7 0x14
+ >;
+ };
};
};
@@ -671,7 +678,6 @@
pinctrl-0 = <&pinctrl_uart5>;
assigned-clocks = <&clks IMX7D_UART5_ROOT_SRC>;
assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
- uart-has-rtscts;
/* for DTE mode, add below change */
/* fsl,dte-mode; */
/* pinctrl-0 = <&pinctrl_uart5dte>; */
@@ -758,7 +764,7 @@
&iomuxc {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_hog>;
+ pinctrl-0 = <&pinctrl_hog_1>;
imx7d-sdb {
pinctrl_brcm_reg: brcmreggrp {
@@ -767,6 +773,12 @@
>;
};
+ pinctrl_hog_1: hoggrp-1 {
+ fsl,pins = <
+ MX7D_PAD_ECSPI2_SS0__GPIO4_IO23 0x80000000 /* bt reg on */
+ >;
+ };
+
pinctrl_ecspi3: ecspi3grp {
fsl,pins = <
MX7D_PAD_SAI2_TX_SYNC__ECSPI3_MISO 0x2
@@ -826,11 +838,9 @@
};
- pinctrl_hog: hoggrp {
+ pinctrl_enet2_epdc0_en: enet2_epdc0_grp {
fsl,pins = <
- MX7D_PAD_UART3_CTS_B__GPIO4_IO7 0x14
- MX7D_PAD_ECSPI2_SS0__GPIO4_IO23 0x80000000 /* bt reg on */
- MX7D_PAD_EPDC_DATA14__GPIO2_IO14 0x59 /* CAN_STBY */
+ MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x59
>;
};
@@ -862,8 +872,6 @@
MX7D_PAD_EPDC_GDOE__EPDC_GDOE 0x2
MX7D_PAD_EPDC_GDRL__EPDC_GDRL 0x2
MX7D_PAD_EPDC_GDSP__EPDC_GDSP 0x2
- MX7D_PAD_EPDC_BDR0__EPDC_BDR0 0x2
- MX7D_PAD_EPDC_BDR1__EPDC_BDR1 0x2
>;
};
@@ -980,6 +988,15 @@
>;
};
+ pinctrl_sai3: sai3grp {
+ fsl,pins = <
+ MX7D_PAD_LPSR_GPIO1_IO03__SAI3_MCLK 0x1f
+ MX7D_PAD_UART3_TX_DATA__SAI3_TX_BCLK 0x1f
+ MX7D_PAD_UART3_CTS_B__SAI3_TX_SYNC 0x1f
+ MX7D_PAD_UART3_RTS_B__SAI3_TX_DATA0 0x30
+ >;
+ };
+
pinctrl_spi4: spi4grp {
fsl,pins = <
MX7D_PAD_GPIO1_IO09__GPIO1_IO9 0x59
@@ -1022,8 +1039,6 @@
fsl,pins = <
MX7D_PAD_SAI1_TX_BCLK__UART5_DCE_TX 0x79
MX7D_PAD_SAI1_RX_DATA__UART5_DCE_RX 0x79
- MX7D_PAD_SAI1_TX_SYNC__UART5_DCE_CTS 0x79
- MX7D_PAD_SAI1_TX_DATA__UART5_DCE_RTS 0x79
>;
};
@@ -1031,8 +1046,6 @@
fsl,pins = <
MX7D_PAD_SAI1_TX_BCLK__UART5_DTE_RX 0x79
MX7D_PAD_SAI1_RX_DATA__UART5_DTE_TX 0x79
- MX7D_PAD_SAI1_TX_SYNC__UART5_DTE_RTS 0x79
- MX7D_PAD_SAI1_TX_DATA__UART5_DTE_CTS 0x79
>;
};
@@ -1054,6 +1067,12 @@
>;
};
+ pinctrl_usbotg2_pwr_1: usbotg2-1 {
+ fsl,pins = <
+ MX7D_PAD_UART3_CTS_B__GPIO4_IO7 0x14
+ >;
+ };
+
pinctrl_usdhc1: usdhc1grp {
fsl,pins = <
MX7D_PAD_SD1_CMD__SD1_CMD 0x59