Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support i3c auto hot-join and fix wrong gpio setting #134

Merged
merged 5 commits into from
Sep 20, 2024

Conversation

jc849
Copy link
Collaborator

@jc849 jc849 commented Sep 20, 2024

  1. support i3c auto hot-join
  2. fix wrong gpio setting

James Chiang added 5 commits September 18, 2024 01:33
add npcm4xx i3c reset function.

Signed-off-by: James Chiang <[email protected]>
enhance i3c hot-join request flow.

i3c hw fail to generate hot-join event when bus is not in the idle
status, and the fail would lead hw into stuck state.

(1) check dynamic address present or not before generate hot-join
    event.
(2) check entdaa progress before generate hot-join event.
(3) after wait util bus idle, check dynamic address present or not.
(4) remove disable slave mode since hot-join event could generate
    even if slave mode enabled.
(5) if ctrl keep hot-join event for a while, check dynamic address
    present or not.
(6) reset i3c controller after timeout and retry generate hot-join
    event.

Signed-off-by: James Chiang <[email protected]>
support auto hot-join request.

use software to simulate auto hot-join flow.

(1) system power up, monitor bus status in interrupt, and generate
hot-join event when received stop message.

(2) watchdog or software reset, generate hot-join event immediately.

Signed-off-by: James Chiang <[email protected]>
add error handling when master read timeout.

Signed-off-by: James Chiang <[email protected]>
…mode

fix wrong setting when setup gpio open drain mode.

only output open drain mode with pull-up setting need enable DEVALTCX bit.

Signed-off-by: James Chiang <[email protected]>
@jc849 jc849 merged commit e1c2b30 into Nuvoton-Israel:npcm-v2.6 Sep 20, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant