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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

551 次查看
sujay1
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 项奖励
0 回复数