AnsweredAssumed Answered

Define UART in Device Tree

Question asked by Till Klocke on Dec 3, 2014
Latest reply on Dec 11, 2014 by Till Klocke

Hello together,


Currently I am using a board based on the Phytec PhyFlex PFLA02 with a imx6DL. We have already most of the things we need working. But I currently try to get UART1 working and I am stuck. I modified the device tree so we use correct pins for this uart. But when I try to communicate with the device we have behind this UART, I receive no answer. We analysed this with an oscilloscope and we can see that I am able to send the bytes I want to send and that our device is responding accordingly. But when I try to read from the serial port I receive not a single byte. So I guess my device tree configuration is wrong somehow.

I hope someone here can point me in the right direction what I am missing. Here is the pinctrl config for UART 1:

pinctrl_uart1: uart1grp {
                        fsl,pins = <
                                MX6QDL_PAD_SD3_DAT6__UART1_TX_DATA      0x1b0b1
                                MX6QDL_PAD_SD3_DAT7__UART1_RX_DATA      0x1b0b1


and here is the &uart1 config:

&uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1>;
        status = "okay";


I hope that this is only a simple mistake.

And I have another question to deepen my understanding of the device tree: What does the 0x1b0b1 mean?


Thanks in advance