I've figured this out. The problem is in the inspector: it does not allow you to enter velocity <= 0.
I will log a bug on github.
You can set the motor velocity to positive or negative values in gdscript (not really clear from the docs)
hinge_joint.set_param(HingeJoint.PARAM_MOTOR_TARGET_VELOCITY,velocity)
Update: I have modified the godot source to fix the inspector problem, now allowing negative values.
See Issue #19203 and associate PR (pull request) on godot github