Hi,
El 31/01/15 a las 20:25, bruce bushby escibió:
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?
It seems this has been deprecated for a couple of years now judging by
Google results. Have you tried using stty?
On a 115200 terminal, the following makes it stop working
stty -F /dev/ttyS0 9600
And reattaching with 9600 makes it work again
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"
It means that the gate feeding the UART hardware is the 22nd bit on the
register where the gates are.
How do I set the divisor and/or configure my custom speed of 100000 for
my UART6?
I've never heard of anyone using 100000, are you sure you can't use
115200 or one of the other standard speeds?
Cheers,
Emilio
--
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 linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.