How to create UART aliases for different group of same Node hscif2 with RZG2M?

Dear Team,

We have designed custom board having RZG2M and used 2 uart connections of hscif2 for different peripherals as shown in below table.

APP1_RX AG33 HSCIF2_HTX2_B/GP6_18
APP1_TX AG34 HSCIF2_HRX2_B/GP6_17
APP2_TX AH32 HSCIF2/HRX2_C/GP6_25
APP2_RX AH34 HSCIF2/HTX2_C/GP6_26

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

Parents Reply
  • 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.

Children