If Y and A are two sides of a gantry, then you have to have separate home switches on each side. X, Y and Z or X, A and Z can be on the same terminal, but A or X respectively need to be on a separate terminal in order to square the gantry when homing. If you don't want to square the gantry, then just use a single switch on one side of the gantry and tick "Home slave with master" on general config. You don't really need a limit on both sides of the gantry anyway. On side should be a limit/home and the other a home on a separate pin.