zephyr icon indicating copy to clipboard operation
zephyr copied to clipboard

Zephyr usbc subsystem

Open sambhurst opened this issue 3 years ago • 32 comments

These pull requests are part of a larger effort to port the Google ChromeOS USB-C Stack to Zephyr. See issue https://github.com/zephyrproject-rtos/zephyr/issues/38371.

Currently the State Machine Framework https://github.com/zephyrproject-rtos/zephyr/pull/38088 and Type-C Port Controller Driver https://github.com/zephyrproject-rtos/zephyr/pull/41856 has merged. This PR implements the USBC-C Subsystem from which Type-C / Power delivery application can be created. Once this PR merges, Power Delivery Sink only applications can be created.

sambhurst avatar May 12 '22 18:05 sambhurst

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_stm32 https://github.com/zephyrproject-rtos/hal_stm32/commit/51b373cd3455b8c2b9babbf6ff41918116a442ac https://github.com/zephyrproject-rtos/hal_stm32/commit/c87358a3e9b99e0f8f18816f1a74777fe80d1ab6 (main) zephyrproject-rtos/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

zephyrbot avatar May 16 '22 20:05 zephyrbot

@jfischer-no could you please review?

carlescufi avatar Jun 28 '22 14:06 carlescufi

@jfischer-no Thanks for the review, the code is much better for it.

sambhurst avatar Jul 11 '22 21:07 sambhurst

@erwango could you take another look when you have time. Thanks

sambhurst avatar Jul 18 '22 13:07 sambhurst

@mbolivar-nordic could you take another look when you have time. Thanks

sambhurst avatar Jul 18 '22 13:07 sambhurst

@mbolivar-nordic could you take another look when you have time? Thanks

sambhurst avatar Jul 26 '22 04:07 sambhurst

@erwango could you take another look when you have time? Thanks

sambhurst avatar Aug 01 '22 17:08 sambhurst

@mbolivar-nordic could you take another look when you have time? Thanks

sambhurst avatar Aug 03 '22 17:08 sambhurst

@mbolivar-nordic could you take another look when you have time? Thanks

sambhurst avatar Aug 09 '22 20:08 sambhurst

@nashif and @carlescufi this PR is adding a new subsystem and @mbolivar-nordic has requested that I CC you.

sambhurst avatar Aug 15 '22 22:08 sambhurst

@nashif and @carlescufi this PR is adding a new subsystem and @mbolivar-nordic has requested that I CC you.

@sambhurst sorry if I was unclear -- when I wrote:

(cc @nashif @carlescufi )

that was actually me cc'ing them, not asking you to CC them

mbolivar-nordic avatar Aug 16 '22 06:08 mbolivar-nordic

I don't see any documentation for the usbc_vbus_api group in Sphinx. Am I missing it? Please dismiss my review if so. Otherwise, please add it.

@sambhurst are you going to address this comment? I see a new push since I asked this question, but it is still unaddressed.

mbolivar-nordic avatar Aug 18 '22 23:08 mbolivar-nordic

I don't see any documentation for the usbc_vbus_api group in Sphinx. Am I missing it? Please dismiss my review if so. Otherwise, please add it.

@sambhurst are you going to address this comment? I see a new push since I asked this question, but it is still unaddressed.

@mbolivar-nordic Yes I added the documentation in my last push.

sambhurst avatar Aug 19 '22 10:08 sambhurst

sambhurst avatar Aug 19 '22 17:08 sambhurst

@galak I was not aware of the Linux USB-C bindings but it seems I'm duplicating the Sink and VBUS portion.

sambhurst avatar Aug 19 '22 17:08 sambhurst

@galak and @mbolivar-nordic are there any other changes you'd like me to make. Thanks

sambhurst avatar Aug 24 '22 02:08 sambhurst

@galak I was not aware of the Linux USB-C bindings but it seems I'm duplicating the Sink and VBUS portion.

Can you move to using the linux bindings as this is one of our design goals

galak avatar Aug 24 '22 13:08 galak

@galak I was not aware of the Linux USB-C bindings but it seems I'm duplicating the Sink and VBUS portion.

Can you move to using the linux bindings as this is one of our design goals

@galak I've included the linux bindings for the USB-C Connector.

sambhurst avatar Aug 24 '22 21:08 sambhurst

@galak Please take another look when you have time. Thanks

sambhurst avatar Aug 28 '22 19:08 sambhurst

Is there any expectation of the USBC APIs working with userspace?

@galak Currently there are no expectations for the USBC APIs to work with userspace, although this feature could be added at a later date.

sambhurst avatar Aug 30 '22 15:08 sambhurst

Any plans to update MAINTAINERS.yml for this?

Who will be maintaining this code?

@galak I have added myself as the maintainer of the code and I'm sure there will be many contributors.

sambhurst avatar Aug 30 '22 15:08 sambhurst

@carlescufi should the PR update doc/develop/api/overview.rst?

@galak I've updated the overview.rst file.

sambhurst avatar Aug 30 '22 15:08 sambhurst

@galak Currently there are no expectations for the USBC APIs to work with userspace, although this feature could be added at a later date.

So my comment earlier about adding __subsystem was wrong, please remove that since there is no expectation for userspace support.

galak avatar Aug 30 '22 15:08 galak

So my comment earlier about adding __subsystem was wrong, please remove that since there is no expectation for userspace support.

@galak I've removed __subsystem

sambhurst avatar Aug 30 '22 23:08 sambhurst

General: think about places that using usb-c might be a little easier to read than usbc (dir names, file names, etc).

@galak I went through the PR and updated the names from usbc to usb_c

sambhurst avatar Aug 31 '22 22:08 sambhurst

@galak and @jfischer-no are there any other requested changed?

sambhurst avatar Sep 03 '22 00:09 sambhurst

@galak and @jfischer-no are there any other requested changed?

sambhurst avatar Sep 03 '22 00:09 sambhurst

@galak and @jfischer-no are there any other requested changed?

sambhurst avatar Sep 03 '22 00:09 sambhurst

CC @desowin

carlescufi avatar Sep 07 '22 09:09 carlescufi

@galak ping

sambhurst avatar Sep 09 '22 11:09 sambhurst