Dts modification for uc3 node to be configured as hdlc and uart in ls1021a-twr

cancel
Showing results for 
Search instead for 
Did you mean: 

Dts modification for uc3 node to be configured as hdlc and uart in ls1021a-twr

29 Views
Contributor V

I'm using a custom board based on ls1021a-twr and want to configure uc3 and uc1 pins as hdlc and uart, (I should be able to switch mode as needed),

As I can see in the dts file the nodes are

&uqe {
serial: ucc@2000 {
device_type = "serial";
compatible = "ucc_uart";
port-number = <0>;
rx-clock-name = "brg1";
tx-clock-name = "brg1";
};

ucc_hdlc: ucc@2200 {
compatible = "fsl,ucc_hdlc";
rx-clock-name = "brg2";
tx-clock-name = "brg2";
fsl,rx-sync-clock = "none";
fsl,tx-sync-clock = "none";
fsl,tx-timeslot = <0xfffffffe>;
fsl,rx-timeslot = <0xfffffffe>;
fsl,tdm-framer-type = "e1";
fsl,tdm-mode = "normal";
fsl,tdm-id = <1>;
fsl,siram-entry-id = <2>;
fsl,inter-loopback;
};
};

Both of them seem to have dedicated functions, How can I configure these ports to support hdlc and uart and be able to switch modes as required?

0 Kudos
0 Replies