Pinebook Pro USB-C

Robert Swindells <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
I have been doing some work on drivers for the USB-C port of the
Pinebook Pro.

Have added interrupt handling to the Rockchip GPIO driver.

Copied the OpenBSD drivers for the FUSB302B PHY and the builtin
USB-C PHY.

The FUSB302B has a mode where it "toggles" between checking for the
possible different voltage levels that would result from something
being plugged into the socket, it signals an interrupt if it detects
a change.

I can't work out how to configure the FUSB302B to stop interrupting
the CPU, the various status registers show no reason for the interrupt.

OpenBSD doesn't use GPIO interrupts, their driver just polls the
FUSB301B to see if the status has changed. Linux does use interrupts
and works fine.

The GPIO and internal PHY code is probably ready to commit, or can just
put all of it on ftp.n.o if anyone is interested in reviewing it.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.