Not really answering your question but…
You could change the pins in your config and use the other endstop input for X and see if it works. Use X-min if you’re currently using x_max and vise versa. If it works you wouldn’t have to buy a new board at least.
I got it working seems like it was bad optic switch I tried two with the same results no x home
they both looked ok red power led lights up blue led lights when triggered but no x signal
so I tried a 3rd optic switch and now its working, go figure 2 bad switches…