MLK-10462 ARM: dts: imx7d-sdb: enable uart5 and uart6 nodes
authorFugang Duan <b38611@freescale.com>
Tue, 18 Aug 2015 01:36:46 +0000 (09:36 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:29 +0000 (14:47 -0500)
Enable uart5 for GPS, uart6 for BCM4339 BT module.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 4e43a07e6a80c5366e744455f5dc9f9c5a2bde57)

arch/arm/boot/dts/imx7d-sdb.dts

index 0a92797..5646fff 100644 (file)
        status = "okay";
 };
 
+&uart5 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart5>;
+       assigned-clocks = <&clks IMX7D_UART5_ROOT_SRC>;
+       assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
+       fsl,uart-has-rtscts;
+       /* for DTE mode, add below change */
+       /* fsl,dte-mode; */
+       /* pinctrl-0 = <&pinctrl_uart5dte>; */
+       status = "okay";
+};
+
+&uart6 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart6>;
+       assigned-clocks = <&clks IMX7D_UART6_ROOT_SRC>;
+       assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
+       fsl,uart-has-rtscts;
+       status = "okay";
+};
+
 &usbotg1 {
        vbus-supply = <&reg_usb_otg1_vbus>;
        srp-disable;
                pinctrl_hog: hoggrp {
                        fsl,pins = <
                                MX7D_PAD_UART3_CTS_B__GPIO4_IO7         0x14
-                               MX7D_PAD_ECSPI2_SS0__GPIO4_IO23         0x34  /* bt reg on */
+                               MX7D_PAD_ECSPI2_SS0__GPIO4_IO23         0x80000000  /* bt reg on */
                        >;
                };
 
                        >;
                };
 
+               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
+                       >;
+               };
+
                pinctrl_uart6: uart6grp {
                        fsl,pins = <
                                MX7D_PAD_ECSPI1_MOSI__UART6_DCE_TX      0x79