Skip to content

Conversation

@mausys
Copy link
Contributor

@mausys mausys commented Oct 29, 2025

Add device tree nodes for the Cadence I2C controllers and corresponding MMU entries.

@mausys
Copy link
Contributor Author

mausys commented Oct 29, 2025

forgot to enable the CONFIG_I2C_CADENCE_BROKEN_HOLD_BIT first

@mausys mausys marked this pull request as ready for review October 29, 2025 14:30
michalsimek
michalsimek previously approved these changes Oct 30, 2025
Copy link
Member

@dsseng dsseng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, please find some minor comments regarding the change

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this file there's a lot of formatting-only changes. Could you please either include them as a separate commit or not include them? This would ensure clarity of the commit history and blame. Thanks

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the other file

Copy link
Member

@ibirnbaum ibirnbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would highly prefer that instead of adding static MMU mappings, you switched the driver over to using the DEVICE_MMIO facilities, so that the driver maps itself in the MMU at init-time (also using a virtual address that's not identity mapped).

You can take this PR as a reference on how DEVICE_MMIO integration works:
#78255

The GEMs are going to need a static mapping in the foreseeable future because of having more than one register space definition, but other than that, several devices that used to define static mappings have already been removed in the past in favor of having them map themselves using DEVICE_MMIO.

Add device tree nodes for the Cadence I2C controllers.

Signed-off-by: Simon Maurer <[email protected]>
@mausys
Copy link
Contributor Author

mausys commented Oct 31, 2025

This PR depends on #98599

@sonarqubecloud
Copy link

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.

5 participants