Hi Team,
We are testing RZFive based custom board with vlp3.0.4 BSP
After configuring SCIF4 and SCIF3 as shown below the UART are getting registered but data transfer is not happening is there any additional changes required to test this interfaces.
&scif3 { pinctrl-0 = <&scif3_pins>; pinctrl-names = "default"; status = "okay";};&scif4 { pinctrl-0 = <&scif4_pins>; pinctrl-names = "default"; status = "okay";};
scif3_pins: scif3 { pinmux = <RZG2L_PORT_PINMUX(24, 2, 1)>, /* TxD */ <RZG2L_PORT_PINMUX(24, 3, 1)>; /* RxD */ }; scif4_pins: scif4 { pinmux = <RZG2L_PORT_PINMUX(24, 5, 5)>, /* TxD */ <RZG2L_PORT_PINMUX(24, 4, 5)>; /* RxD */ };
In general, that is all you need to do.I did not check your pin settings.Also make sure in your Device Tree that another peripheral is also configured to use the same pins.
Hi Chris,
The configuration is not working the UART is configured and gets registered as /dev/ttySC2 and /dev/ttySC3 but when sending/ recieving data through UART is not working.
Hi vinay,
That pin mux settings are wrong. That's why your UART cannot work.
Are you sure that your customer board are connecting UART to pins P24_2, P24_3, and P24_5, P24_4?RZ/Five should not have these pins.
Hi Hung,
As you can see in the below image, the SCIF3 and SCIF4 pin mux functions are taken from the P24 bank.
Thanks & regards,Rohith M Ravi
community.renesas.com/.../109092
Hi MicBis
We are using the vlp3.0.4 BSP only for testing and we tested the pins as GPIOs using sysfs and we are able to toggle it properly but when configured as UART functionality the data send and receive is not working
Also read PFC, PM registers to confirm if the ALT config is set properly using devmem2 the register values shows alt config is set properly for the pads but still facing issue.
Is there any additional changes required to enable UART functionality?
Any update on the issue?
Hook up a scope and check if the pins move.
Checked both SCIF2 and SCIF3 TX pad under scope
SCIF2 pin stays low and when echo is given goes high and is pulsing
but SCIF3 pin stays in floating condition and is not moving when sending or receiving data
if it was me, i would change the pin to a GPIO and make sure you can move it up and down to make sure nothing was wrong with the board.
Hi Chris
As mentioned previously both RX and TX pins are toggling when tested as GPIOs but when set to UART functionality data transfer is not happening.
Checked PFC, PM registers using devmem2 to confirm the registers are set to UART functionality.
Could you run the latest v3.0.5 for RZ/Five?
pinctrl: pinctrl-rzg2l: add support from P19 to P28 for RZ/Five · renesas-rz/rz_linux-cip@0e06b0b (github.com)
P19-P28 only supports from cip36 (BSP-3.0.5)
Hi,
We are using 3.0.4 BSP for testing and this commit is already present in the source confirmed it
Could you use GPIO function for these pins instead of SCIF?