I believe you can wire all your limit switches in series (if you're using mechanical) and just use one input for limits. Then use one home switch for each axis.