Modify

Opened 4 years ago

Last modified 2 years ago

#14211 reopened defect

how to open uartf at ralink 5350 after 38026

Reported by: wibim <wibim.zhao@…> Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

how to open uartf at ralink 5350, after adding pinctrl driver at version 38026?

now my dts file as below:

.........

pinctrl {

state_default: pinctrl0 {

gpio {

ralink,group = "spi", "uartlite", "uartf", "mdio", "sdram";
ralink,function = "gpio uartf";

};

};

};

.........

it did not work.

compare with the version before 38026, my dts file as below:

sysc@0 {

ralink,pinmux = "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
ralink,gpiomux = "i2c", "jtag";
ralink,uartmux = "gpio uartf"; from 'gpio' to 'gpio uartf'
ralink,wdtmux = <1>;

};

is works will.

Attachments (0)

Change History (6)

comment:1 Changed 4 years ago by blogic

  • Resolution set to fixed
  • Status changed from new to closed

gpio {

ralink,group = "spi", "uartlite", "mdio", "sdram";
ralink,function = "gpio";

};
uartf {

ralink,group = "uartf";
ralink,function = "uartf";

};

comment:2 Changed 4 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

Test with HLK-RM04. Edit HLKRM04.dts file like below.

pinctrl {

state_default: pinctrl0 {

gpio {

ralink,group = "jtag", "i2c";
ralink,function = "gpio";

};
uartf {

ralink,group = "uartf";
ralink,function = "uartf";

};

};

};

pinctrl log is like this.

root@OpenWrt:/# dmesg | grep "pinctrl"
[ 0.080000] pinctrl core: initialized pinctrl subsystem
[ 0.110000] rt2880-pinmux pinctrl.1: try to register 27 pins ...
[ 0.110000] pinctrl core: registered pin 0 (io0) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 1 (io1) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 2 (io2) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 3 (io3) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 4 (io4) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 5 (io5) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 6 (io6) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 7 (io7) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 8 (io8) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 9 (io9) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 10 (io10) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 11 (io11) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 12 (io12) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 13 (io13) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 14 (io14) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 15 (io15) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 16 (io16) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 17 (io17) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 18 (io18) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 19 (io19) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 20 (io20) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 21 (io21) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 22 (io22) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 23 (io23) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 24 (io24) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 25 (io25) on rt2880-pinmux
[ 0.110000] pinctrl core: registered pin 26 (io26) on rt2880-pinmux
[ 0.110000] pinctrl core: add 3 pinmux maps
[ 0.110000] rt2880-pinmux pinctrl.1: found group selector 4 for jtag
[ 0.110000] rt2880-pinmux pinctrl.1: found group selector 0 for i2c
[ 0.110000] rt2880-pinmux pinctrl.1: found group selector 2 for uartf
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 17 (io17) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 18 (io18) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 19 (io19) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 20 (io20) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 21 (io21) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 1 (io1) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 2 (io2) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 7 (io7) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 8 (io8) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 9 (io9) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 10 (io10) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 11 (io11) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 12 (io12) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 13 (io13) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 14 (io14) for pinctrl.1

[ 0.110000] rt2880-pinmux pinctrl.1: failed to lookup the sleep state
[ 0.290000] alarmtimer alarmtimer: no of_node; not parsing pinctrl DT
[ 0.400000] serial8250 serial8250: no of_node; not parsing pinctrl DT
[ 0.400000] pinctrl core: add 1 pinmux maps
[ 0.400000] rt2880-pinmux pinctrl.1: found group selector 2 for uartf
[ 0.400000] rt2880-pinmux pinctrl.1: request pin 7 (io7) for 10000500.uart
[ 0.400000] rt2880-pinmux pinctrl.1: pin io7 already requested by pinctrl.1; cannot claim for 10000500.uart
[ 0.420000] rt2880-pinmux pinctrl.1: pin-7 (10000500.uart) status -22
[ 0.430000] rt2880-pinmux pinctrl.1: could not request pin 7 on device rt2880-pinmux

[ 0.480000] pinctrl core: add 1 pinmux maps
[ 0.480000] rt2880-pinmux pinctrl.1: found group selector 3 for uartlite
[ 0.480000] rt2880-pinmux pinctrl.1: request pin 15 (io15) for 10000c00.uartlite
[ 0.480000] rt2880-pinmux pinctrl.1: request pin 16 (io16) for 10000c00.uartlite
[ 0.520000] pinctrl core: add 1 pinmux maps
[ 0.520000] rt2880-pinmux pinctrl.1: found group selector 1 for spi
[ 0.520000] rt2880-pinmux pinctrl.1: request pin 3 (io3) for 10000b00.spi
[ 0.520000] rt2880-pinmux pinctrl.1: request pin 4 (io4) for 10000b00.spi
[ 0.520000] rt2880-pinmux pinctrl.1: request pin 5 (io5) for 10000b00.spi
[ 0.520000] rt2880-pinmux pinctrl.1: request pin 6 (io6) for 10000b00.spi
[ 8.130000] rt2880-pinmux pinctrl.1: request pin 14 (io14) for pio:14
[ 8.130000] rt2880-pinmux pinctrl.1: pin 14 is not set to gpio mux
[ 8.140000] rt2880-pinmux pinctrl.1: request() failed for pin 14
[ 8.160000] rt2880-pinmux pinctrl.1: pin-14 (pio:14) status -22
[ 8.240000] rt2880-pinmux pinctrl.1: request pin 0 (io0) for pio:0

comment:4 Changed 3 years ago by lsoltero

still having the issue on CC r43400. Trying to get the serial port working on an AsiaRF AWM002 eval board with RT5350.

here is the dts file.

palmbus@10000000 {

uart@500 {

status = "okay";

};
i2c@900 {

status = "okay";

};
gpio0: gpio@600 {

status = "okay";

};
gpio1: gpio@660 {

status = "okay";

};

};

pinctrl {

state_default: pinctrl0 {

gpio {

ralink,group = "i2c", "jtag";
ralink,function = "gpio";

};
uartf {

ralink,group = "uartf";
ralink,function = "pcm uartf";

};

};

};

here is the output from dmesg showing the same error as above.

root@OpenWrt:/etc/config# dmesg | grep pinctrl
[ 0.090000] pinctrl core: initialized pinctrl subsystem
[ 0.100000] rt2880-pinmux pinctrl.1: try to register 28 pins ...
[ 0.100000] pinctrl core: registered pin 0 (io0) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 1 (io1) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 2 (io2) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 3 (io3) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 4 (io4) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 5 (io5) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 6 (io6) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 7 (io7) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 8 (io8) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 9 (io9) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 10 (io10) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 11 (io11) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 12 (io12) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 13 (io13) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 14 (io14) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 15 (io15) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 16 (io16) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 17 (io17) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 18 (io18) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 19 (io19) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 20 (io20) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 21 (io21) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 22 (io22) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 23 (io23) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 24 (io24) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 25 (io25) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 26 (io26) on rt2880-pinmux
[ 0.100000] pinctrl core: registered pin 27 (io27) on rt2880-pinmux
[ 0.100000] pinctrl core: add 3 pinmux maps
[ 0.100000] rt2880-pinmux pinctrl.1: found group selector 0 for i2c
[ 0.110000] rt2880-pinmux pinctrl.1: found group selector 4 for jtag
[ 0.110000] rt2880-pinmux pinctrl.1: found group selector 2 for uartf
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 1 (io1) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 2 (io2) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 17 (io17) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 18 (io18) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 19 (io19) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 20 (io20) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 21 (io21) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 7 (io7) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 8 (io8) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 9 (io9) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 10 (io10) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 11 (io11) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 12 (io12) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 13 (io13) for pinctrl.1
[ 0.110000] rt2880-pinmux pinctrl.1: request pin 14 (io14) for pinctrl.1

[ 0.110000] rt2880-pinmux pinctrl.1: failed to lookup the sleep state
[ 0.270000] alarmtimer alarmtimer: no of_node; not parsing pinctrl DT
[ 0.400000] serial8250 serial8250: no of_node; not parsing pinctrl DT
[ 0.410000] pinctrl core: add 1 pinmux maps
[ 0.410000] rt2880-pinmux pinctrl.1: found group selector 3 for uartlite
[ 0.410000] rt2880-pinmux pinctrl.1: request pin 15 (io15) for 10000c00.uartlite
[ 0.410000] rt2880-pinmux pinctrl.1: request pin 16 (io16) for 10000c00.uartlite
[ 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.550000] pinctrl core: add 1 pinmux maps
[ 0.550000] pinctrl core: add 1 pinmux maps
[ 0.550000] rt2880-pinmux pinctrl.1: found group selector 1 for spi
[ 0.550000] rt2880-pinmux pinctrl.1: found group selector 6 for spi_cs1
[ 0.550000] rt2880-pinmux pinctrl.1: request pin 3 (io3) for 10000b00.spi
[ 0.550000] rt2880-pinmux pinctrl.1: request pin 4 (io4) for 10000b00.spi
[ 0.550000] rt2880-pinmux pinctrl.1: request pin 5 (io5) for 10000b00.spi
[ 0.550000] rt2880-pinmux pinctrl.1: request pin 6 (io6) for 10000b00.spi
[ 0.550000] rt2880-pinmux pinctrl.1: request pin 27 (io27) for 10000b00.spi
[ 6.940000] rt2880-pinmux pinctrl.1: request pin 0 (io0) for pio:0
[ 6.940000] rt2880-pinmux pinctrl.1: request pin 20 (io20) for pio:20

comment:5 Changed 3 years ago by anonymous

Hi, i have same issue on VoCore, my dts is (taken from http://vonger.cn/?p=1409 )

...
	uart@500 {
		status = "okay";
	};

	pinctrl {
		state_default: pinctrl0 {
			gpio {
				ralink,group = "jtag", "led";
				ralink,function = "gpio";
			};
		};
	};
...

But is doesn't work :(
Trunk, r45590

comment:6 Changed 2 years ago by anonymous

Hi!

Any updates ?

Add Comment

Modify Ticket

Action
as reopened .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.