gpio: serial: max310x: Support open-drain configuration for GPIOs