Hi

I'm hoping a list member could offer some advice setting a UART with a
custom speed.

I was hoping to calculate the required divisor and use setserial to set my
speed (100000), however both Python's pySerial and the "setserial" command
cause the following error:

[root@A20-SOM ~]# setserial /dev/ttyS1 spd_cust
[  697.027655] dw-apb-uart 1c29800.serial: setserial sets custom speed on
ttyS1. This is deprecated.
[root@A20-SOM ~]#


Deprecated in favor of?


I had a look in the dts:

    uart6: serial@01c29800 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0x01c29800 0x400>;
                        interrupts = <0 19 4>;
                        reg-shift = <2>;
                        reg-io-width = <4>;
                        clocks = <&apb1_gates 22>;
                        status = "disabled";
                };


...however I don't understand the relationship between "22"  and
 "&apb1_gates"


How do I set the divisor and/or configure my custom speed of 100000 for my
UART6?



Thanks
Bruce

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to