Dear Team,
We have designed custom board having RZG2M and used 2 uart connections of hscif2 for different peripherals as shown in below table.
Now i am facing issue in creating aliases for both the uart. For single uart of hscif2 i used below method.
/{
aliases {
serial4 = &hsicf2;
};
&hscif2 {
pinctrl-0 = <&hscif2_pins>; pinctrl-names = "default";
uart-has-rtscts; status = "okay";
Can anyone help me to figure out how i can assign different aliases like serial4 & serial5 for hscif2 group B & C?
Regards,
Hitixa Patel
I think you can do something like have different pin configurations.
https://android.googlesource.com/kernel/common/+/android-trusty-4.4/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
/* For a client device requiring named states */ device { pinctrl-names = "active", "idle"; pinctrl-0 = <&state_0_node_a>; pinctrl-1 = <&state_1_node_a &state_1_node_b>; };
However, I have never done it.
Thanks Chris. But still didn't get any solution for creating aliases of hsicf2 group B & C.
Are you saying you have different boards with different pins? If that is the case, you can just use Device Tree "overlays" when you boot and that will change the device tree for you.
There are also command in u-boot that you can use to change the device tree before booting.
Have single board with above shared connection.
Hi,
Are you thinking of using HSCIF2 as a multi-drop by setting TX/RX pins of group B & C at the same time?
Yes. Is it possible?
Is it possible?
Sorry, I don't know.
This can definitely be achieved outside of the RZ/G2M, so I wouldn't bet on an experiment that would damage it in the worst case scenario.
BR
Hello egret,Did you resolve your issue? Is there anything else to assist you? Would you like to verify the suggested answer if it was resolved? Kind Regards.