Skip to content

drivers: i2c: i2c_dw: Add capability for handling reset device. #62445

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

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

soburi
Copy link
Member

@soburi soburi commented Sep 8, 2023

Reset the device on initializing if reset-node is available in dts.
snps,desingware-i2c does not define reset-node itself.
Add more of an element that inherits reset-device.yaml to
the compatible section to allow defining the reset-node for using this feature.

For example.

compatible = "reset-device-inherit-node", "snps,designware-i2c";

Signed-off-by: TOKITA Hiroshi [email protected]

Add Raspberry Pi Pico I2C that inheriting both DesignWare I2C
device and reset device.

Signed-off-by: TOKITA Hiroshi <[email protected]>
@soburi soburi force-pushed the rpi_pico_i2c_reset branch 5 times, most recently from d4a1c9c to cfa64df Compare September 8, 2023 15:28
@soburi soburi marked this pull request as ready for review September 8, 2023 16:00
@zephyrbot zephyrbot added area: I2C area: Devicetree Binding PR modifies or adds a Device Tree binding platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico) labels Sep 8, 2023
@zephyrbot zephyrbot requested review from galak and teburd September 8, 2023 16:01
Reset the device on initializing if reset-node is available in dts.
`snps,desingware-i2c` does not define reset-node itself.
Add more of an element that inherits `reset-device.yaml` to
the `compatible` section to allow defining the reset-node
for using this feature.

For example.

```
compatible = "reset-device-inherit-node", "snps,designware-i2c";
```

Signed-off-by: TOKITA Hiroshi <[email protected]>
@soburi soburi force-pushed the rpi_pico_i2c_reset branch from cfa64df to 6cc41f7 Compare September 8, 2023 21:36
@fabiobaltieri fabiobaltieri merged commit e2f47c0 into zephyrproject-rtos:main Sep 11, 2023
@soburi soburi deleted the rpi_pico_i2c_reset branch September 11, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Devicetree Binding PR modifies or adds a Device Tree binding area: I2C platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants