完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我们正在尝试在 DTE 模式下配置 UART1,因为我们的产品将主要与调制解调器和其他 DCE 硬件接口。
在设备树中将 UART1 配置为 DCE 模式时,数据从正确的引脚发送,并在直接连接 RX 和 TX 后正确接收。 但是当 UART1 配置为 DTE 模式时,数据从 RX 引脚发送出去。到目前为止,一切都很好。DTE 模式似乎有效。 但是当试图通过“cat /dev/ttymxc0”的帮助在控制台读取UART1的内容时,没有显示任何数据。在 DCE 模式下执行相同的命令时,显示发送的数据。 我们的设备树粘贴在下面。注释部分适用于 DCE 模式下的 UART1。ATM 没有使用硬件握手。还附上了系统最新的bootlog。我还尝试将 UART3 配置为 DTE 模式,这没有问题。发送的数据被接收并显示在控制台中。 我是否遗漏了 UART1 的配置? // SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright 2019 NXP * Copyright 2019-2021 Variscite Ltd. */ #include "imx8mm-var-som-embcustom.dtsi" / { model = "Variscite VAR-SOM-MX8M-MINI on a.Box FSD rev2021"; chosen { bootargs = "console=ttymxc3,115200 earlycon=ec_imx6q,0x30a60000,115200"; bootargs-append = "console=ttymxc3,115200 earlycon=ec_imx6q,0x30a60000,115200 androidboot.console=ttymxc3 androidboot.primary_display=imx-drm androidboot.board=varsommx8mmini androidboot.bt_uart=/dev/ttymxc1 androidboot.bt_sdio=/sys/bus/mmc/devices/mmc0:0001/mmc0:0001:1/device androidboot.bt_firmware=BCM43430A1.hcd androidboot.bt_sdio_id=0xa9a6 androidboot.wificountrycode=CN"; stdout-path = &uart4; }; backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm1 0 1000000 0>; brightness-levels = < 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100>; default-brightness-level = <80>; status = "okay"; }; gpio-keys { compatible = "gpio-keys"; status = "okay"; wakeup { label = "Wakeup"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; linux,code = <143>; wakeup-source; }; }; }; &i2c3 { /* Capacitive touch controller */ /* ft5x06_ts: ft5x06_ts@38 { compatible = "edt,edt-ft5206"; reg = <0x38>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_captouch>; interrupt-parent = <&gpio5>; interrupts = <4 IRQ_TYPE_EDGE_FALLING>; touchscreen-size-x = <800>; touchscreen-size-y = <480>; touchscreen-inverted-x; touchscreen-inverted-y; wakeup-source; status = "okay"; }; */ /* DS1337 RTC module */ rtc@68 { compatible = "dallas,ds1337"; reg = <0x68>; status = "okay"; }; }; /* &mipi_csi_1 { #address-cells = <1>; #size-cells = <0>; status = "okay"; port { mipi1_sensor_ep: endpoint@1 { remote-endpoint = <&ov5640_mipi1_ep>; data-lanes = <2>; csis-hs-settle = <13>; csis-clk-settle = <2>; csis-wclk; }; csi1_mipi_ep: endpoint@2 { remote-endpoint = <&csi1_ep>; }; }; }; &csi1_bridge { fsl,mipi-mode; status = "okay"; port { csi1_ep: endpoint { remote-endpoint = <&csi1_mipi_ep>; }; }; }; */ &pwm1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm1>; status = "okay"; }; &pwm2 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm2>; }; /* Full Serial UART, LSA Modems e.g. */ &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; fsl,dte-mode; /* fsl,uart-has-rtscts; */ status = "okay"; }; /* IBIS UART */ &uart3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart3>; status = "okay"; }; /* Console via FTDI Converter */ &uart4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart4>; /delete-property/ dmas; /delete-property/ dma-names; status = "okay"; }; &usbotg1 { dr_mode = "peripheral"; picophy,pre-emp-curr-control = <3>; picophy,dc-vol-level-adjust = <7>; srp-disable; hnp-disable; adp-disable; /* extcon = <0>, <&extcon_usb1>; */ status = "okay"; }; &usbotg2 { dr_mode = "host"; /* vbus-supply = <®_usb_otg2_vbus>; */ picophy,pre-emp-curr-control = <3>; picophy,dc-vol-level-adjust = <7>; disable-over-current; status = "okay"; }; /* SD */ /* &usdhc2 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; bus-width = <4>; vmmc-supply = <®_usdhc2_vmmc>; status = "okay"; }; */ &gpio1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio1>; status = "okay"; }; &gpio2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio2>; status = "okay"; }; &gpio4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio4>; status = "okay"; }; &gpio5 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio5>; status = "okay"; }; /* &snvs_pwrkey { status = "okay"; }; &snvs_rtc { status = "disabled"; }; */ &iomuxc { pinctrl_pwm1: pwm1grp { fsl,pins = < MX8MM_IOMUXC_SPDIF_EXT_CLK_PWM1_OUT 0x06 >; }; pinctrl_pwm2: pwm2grp { fsl,pins = < MX8MM_IOMUXC_SPDIF_RX_PWM2_OUT 0x06 >; }; pinctrl_uart1: uart1grp { fsl,pins = < MX8MM_IOMUXC_UART1_RXD_UART1_DTE_TX 0x140 MX8MM_IOMUXC_UART1_TXD_UART1_DTE_RX 0x140 MX8MM_IOMUXC_SAI2_RXD0_UART1_DTE_CTS_B 0x140 MX8MM_IOMUXC_SAI2_TXFS_UART1_DTE_RTS_B 0x140 >; }; /* pinctrl_uart1: uart1grp { */ /* fsl,pins = < */ /* MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 */ /* MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 */ /* MX8MM_IOMUXC_SAI2_RXD0_UART1_DCE_RTS_B 0x140 */ /* MX8MM_IOMUXC_SAI2_TXFS_UART1_DCE_CTS_B 0x140 */ /* >; */ /* }; */ pinctrl_uart3: uart3grp { fsl,pins = < MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140 MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140 >; }; pinctrl_uart4: uart4grp { fsl,pins = < MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX 0x140 MX8MM_IOMUXC_UART4_TXD_UART4_DCE_TX 0x140 >; }; pinctrl_gpio1: gpio1grp { fsl,pins = < MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x16 /*DISP_BL_W_SHDN*/ MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x16 /*DISP_BL_G_SHDN*/ MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x16 /*SOM_Alive*/ MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x16 /*var_DC_EN*/ MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x16 /*DO1_EN*/ MX8MM_IOMUXC_GPIO1_IO11_GPIO1_IO11 0x16 /*LED 0*/ MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x16 /*I_IGN*/ MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x16 /*24V_1A_2_EN*/ MX8MM_IOMUXC_GPIO1_IO14_GPIO1_IO14 0x16 /*Wake pin from watchdog*/ >; }; pinctrl_gpio2: gpio2grp { fsl,pins = < MX8MM_IOMUXC_SD2_CLK_GPIO2_IO13 0x16 /*I_Signal_2*/ MX8MM_IOMUXC_SD2_DATA0_GPIO2_IO15 0x16 /*I_Signal_4*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I2C2_SDA_GPIO5_IO17 0x16 /*LAN9513_RST*/ MX8MM_IOMUXC_I2C4_SCL_GPIO5_IO20 0x16 /*DISP_BL_R_SHDN*/ MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21 0x16 /*CAN_STBY*/ >; }; }; |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1935个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
36430 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
5000 浏览 1 评论
6115 浏览 1 评论
6821 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
4253 浏览 0 评论
655浏览 2评论
求助,S32G上Core M启动后如何让Core A在Flash指定位置加载uboot?
646浏览 2评论
ESP32-WROVER-IE + LAN8720以太网,GPIO0电压只有1.6v,无法正常进入spi flash boot模式如何解决?
647浏览 2评论
求分享适用于PN7160 Android的NFC工厂测试应用程序
737浏览 2评论
850浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 17:56 , Processed in 1.289828 second(s), Total 43, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号