Allow pin read in output mode

Signed-off-by: Alexandr V. Shutko <alex@shutko.ru>