Skip to content

dts: xilinx: add cadence spi controllers to zynqmp.dtsi #90960

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

singular0770
Copy link
Contributor

@singular0770 singular0770 commented Jun 2, 2025

Adds spi controller nodes for Cadence SPI controllers in zynqmp.dtsi. A driver for the Cadence SPI peripheral on AMD devices was recently merged into Zephyr, this PR adds support for those peripherals on ZynqMP devices. The driver was confirmed to be functional on a ZUBoard 1CG (XCZU1CG) with the fix in PR 88777.

@henrikbrixandersen
Copy link
Member

Shouldn't this wait until #88777 was merged, then?

@singular0770
Copy link
Contributor Author

Shouldn't this wait until #88777 was merged, then?

The driver in its initial state has already been merged. Yes, software making use of this driver won't be functional until #88777 gets merged, but seeing as the driver is already available to the build system I don't particularly see why we this change needs to wait in the meantime.

@henrikbrixandersen
Copy link
Member

Shouldn't this wait until #88777 was merged, then?

The driver in its initial state has already been merged. Yes, software making use of this driver won't be functional until #88777 gets merged, but seeing as the driver is already available to the build system I don't particularly see why we this change needs to wait in the meantime.

Merging the changes in this PR without the fix in #88777 will let users enable the SPI hardware in their board DTS, but it will not be functional - correct? If so, we need to merge them in the right order.

@singular0770
Copy link
Contributor Author

Shouldn't this wait until #88777 was merged, then?

The driver in its initial state has already been merged. Yes, software making use of this driver won't be functional until #88777 gets merged, but seeing as the driver is already available to the build system I don't particularly see why we this change needs to wait in the meantime.

Merging the changes in this PR without the fix in #88777 will let users enable the SPI hardware in their board DTS, but it will not be functional - correct? If so, we need to merge them in the right order.

It will build but not run correctly. Putting this PR in draft state as I don't see a way to add dependencies on other PRs. Will take out of draft when #88777 gets merged.

@singular0770 singular0770 marked this pull request as draft June 2, 2025 19:10
@singular0770 singular0770 marked this pull request as ready for review June 6, 2025 22:53
Copy link
Contributor

@robhancocksed robhancocksed left a comment

Choose a reason for hiding this comment

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

LGTM, we are using essentially the same definitions without issues.

@singular0770 singular0770 force-pushed the add-zynqmp-spi-controllers branch from b22d043 to 6c71312 Compare June 18, 2025 21:17
Adds spi controller nodes for Cadence SPI controllers in zynqmp.dtsi.

Signed-off-by: Michael Estes <michael.estes@byteserv.io>
@singular0770 singular0770 force-pushed the add-zynqmp-spi-controllers branch from 6c71312 to be8f49b Compare June 18, 2025 21:24
Copy link

Copy link
Member

@henrikbrixandersen henrikbrixandersen left a comment

Choose a reason for hiding this comment

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

Are there no board, where SPI should now be enabled?

@michalsimek
Copy link
Collaborator

Are there no board, where SPI should now be enabled?

We have this driver on our list to test. And we will do wiring in all of our hard SOCs in QEMU.

@singular0770
Copy link
Contributor Author

Are there no board, where SPI should now be enabled?

Right now there are only three boards upstream (1 QEMU) that use the ZynqMP RPU. As far as I can tell none have a great use case for this. I have a separate PR open to add support for the Avnet ZUBoard 1CG which does have a SPI pressure sensor, so once this gets merged I can definitely update that PR to enable the SPI bus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants