[OpenWrt-Devel] RT5350 UART not working.

John Crispin blogic at openwrt.org
Fri Dec 12 09:38:50 EST 2014


Hi Luis,

i just added a fix to my local tree and will push during the evening.

it fixes the duplicate uartf pinmux problem. please note that when
enabling uart the uartlite used for tty0 gets moved to tty1 so you need
to fix up the cmdline

	John

On 02/12/2014 01:50, Luis Soltero wrote:
> 
> Hello All,
> 
> it seems that I am not the only one having this issue.
> 
> https://dev.openwrt.org/ticket/14211
> https://dev.openwrt.org/ticket/16831
> 
> any thoughts on how to resolve the UARTF issue on the 5350 is greatly
> appreciated.
> 
> thanks,
> 
> --luis
> 
> On 12/1/14 3:49 PM, Luis Soltero wrote:
>>
>> sorry... i sent the docs for the AWM003 not the AWM002...
>>
>>
>> On 12/1/14 3:43 PM, Luis Soltero wrote:
>>>
>>> Hello John,
>>>
>>> this is the AWM002 module...
>>> http://www.asiarf.com/Smallest-Tiny-Ralink-802-11n-Wireless-AP-Router-Module-Board-AWM002-product-view-375.html
>>>
>>>
>>> with the corresponding AsiaRF IO/Dev/Eval board.  Here is pin sharing
>>> scheme for the board. I have attached the docs
>>>
>>> RTS I2S_CLK GPIO #7 1 2 GPIO #11 PCM_FS DTR
>>>
>>> TXD I2S_WS GPIO #8 3 4 GPIO #12 PCM_CLK DCD
>>>
>>> CTS I2S_SDO GPIO #9 5 6 GPIO #13 PCM_DRX DSR
>>>
>>> RXD I2S_SDI GPIO #10 7 8 GPIO #14 PCM_DTX RI
>>>
>>> I2C_CLK GPIO #2 9 10 GPIO #1 I2C_SD
>>>
>>> RX1+ 11 12 TX1+
>>>
>>> RX1- 13 14 TX1-
>>>
>>> GND 15 16 GND
>>>
>>>
>>> --luis
>>>
>>>
>>> On 12/1/14 3:24 PM, John Crispin wrote:
>>>> ermmm ... i booted rt5350 on the weekend with uccess .. but that has
>>>> nothing to say. which boar is this ? i assume the small asiarf one ?
>>>>
>>>>
>>>>
>>>> On 01/12/2014 13:40, Luis Soltero wrote:
>>>>> anyone have any ideas on how to get the RT5350 UART working?
>>>>>
>>>>> here is the error in the log.
>>>>>
>>>>> [    0.460000] pinctrl core: add 1 pinmux maps
>>>>> [    0.460000] rt2880-pinmux pinctrl.1: found group selector 2 for
>>>>> uartf
>>>>> [    0.460000] rt2880-pinmux pinctrl.1: request pin 7 (io7) for
>>>>> 10000500.uart
>>>>> [    0.460000] rt2880-pinmux pinctrl.1: pin io7 already requested by
>>>>> pinctrl.1; cannot claim for 10000500.uart
>>>>> [    0.480000] rt2880-pinmux pinctrl.1: pin-7 (10000500.uart)
>>>>> status -22
>>>>> [    0.480000] rt2880-pinmux pinctrl.1: could not request pin 7 (io7)
>>>>> from group uartf  on device rt2880-pinmux
>>>>> [    0.510000] of_serial 10000500.uart: Error applying setting,
>>>>> reverse
>>>>> things back
>>>>> [    0.530000] 10000500.uart: ttyS1 at MMIO 0x10000500 (irq = 13,
>>>>> base_baud = 2500000) is a 16550A
>>>>>
>>>>> here is the DTS config for the uart.
>>>>>
>>>>> palmbus at 10000000 {
>>>>>                  uart at 500 {
>>>>>                      status = "okay";
>>>>>                  };
>>>>>                  i2c at 900 {
>>>>>                      status = "okay";
>>>>>                  };
>>>>>                  gpio0: gpio at 600 {
>>>>>                      status = "okay";
>>>>>                  };
>>>>>                  gpio1: gpio at 660 {
>>>>>                      status = "okay";
>>>>>                  };
>>>>>          };
>>>>>
>>>>>          pinctrl {
>>>>>                  state_default: pinctrl0 {
>>>>>                          gpio {
>>>>>                                  ralink,group = "i2c", "jtag";
>>>>>                                  ralink,function = "gpio";
>>>>>                          };
>>>>>                          uartf {
>>>>>                                  ralink,group = "uartf";
>>>>>                                  ralink,function = "uartf";
>>>>>                          };
>>>>>                  };
>>>>>          };
>>>>>
>>>>>
>>>>> Any info/hints on this are greatly appreciated.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> --luis
>>>>>
>>>>>
>>>>>
>>>> _______________________________________________
>>>> openwrt-devel mailing list
>>>> openwrt-devel at lists.openwrt.org
>>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> openwrt-devel mailing list
>>> openwrt-devel at lists.openwrt.org
>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
>>
>>
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel at lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list