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

drivers: i2c_sam0: Add i2c slave support #24047

Closed

Conversation

sslupsky
Copy link
Contributor

@sslupsky sslupsky commented Apr 2, 2020

The existing sam0 i2c driver does not support slave mode.

This commit enables slave support for sam0 devices.

The Slave support is based on Linux I2C Slave support by Wolfram Sang
and documented at
https://www.kernel.org/doc/Documentation/i2c/slave-interface

The code for this commit is largely based on code taken from PR #5224
and the stm mcu implementation. This was modified to work with the
sam0 SERCOM perhiperal and integrated into the sam0 driver.

Fix whitespace and comments

Fixes #21711

The existing sam0 i2c driver does not support slave mode.

This commit enables slave support for sam0 devices.

The Slave support is based on Linux I2C Slave support by Wolfram Sang
and documented at
https://www.kernel.org/doc/Documentation/i2c/slave-interface

The code for this commit is largely based on code taken from PR zephyrproject-rtos#5224
and the stm mcu implementation.  This was modified  to work with the
sam0 SERCOM perhiperal and integrated into the sam0 driver.

Fix whitespace and comments

Signed-off-by: Steven Slupsky <[email protected]>
@sslupsky
Copy link
Contributor Author

sslupsky commented Apr 2, 2020

Replaced this PR with #24050

@sslupsky sslupsky closed this Apr 2, 2020
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.

sam0 i2c slave
2 participants