sw: extract owi_read_bit, fix waiting for T conversion completion

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
sw: remove eeprom debug from owi

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
sw: switch owi port while owi ddr is cleared (in)

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
sw: improve owi_init

Detect not only presence pulse by slave, but also bus release after
initialization.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
sw: fix owi_write timing

With these changes we get correct timing that OWI slave does understand.
Also always release bus after write completion.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
sw: get rid of get_t float return value

Float here makes little sense since we don't really need that precision.
Also 0.5, 0.25, 0.125 and 0.0625 are actually 1/2, 1/4, 1/8 and 1/16.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>