More information may be needed. Sounds like the X-Axis is working, Have you checked to see that the Y-Axis end-stop in not defective, and correctly wired and positioned for the switch to work.

Was the Marlin 1.1.2 firmware pre-configured, or did you configure it your self. If you configured Marlin 1.1.2 you could post it your configuration.h file for verification.