-
Notifications
You must be signed in to change notification settings - Fork 7.6k
drivers: spi: cdns: fix missing fifo config #88777
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: spi: cdns: fix missing fifo config #88777
Conversation
This adds the missing fifo config from the dts which was missed in the initial revision. This also adds the spi rtio fallback api. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2274ae6
to
be626b9
Compare
The PM Device callbacks is rather unimplemented. There currently is no device agnostic clock management api (yet), and the pinctrl isn't fully implemented in this driver. Remove it all. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
be626b9
to
500de16
Compare
7ceb0fc
to
2a970cd
Compare
Remove the auto setting of the external spi clock if its not there, also fix the calculation of calucation the spi divisor value. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2a970cd
to
ee0547c
Compare
Sorry for the butter churning here after the approvals have already happened, but hopefully that should be the last commit to be stacked in to this PR |
Hi @XenuIsWatching with your latest changes I see child(flash) attached under spi , spi-nor flash initialization is working fine and its could able to read Flash ID. But as mentioned in #88777 still I see all test cases in tests/drivers/flash/common/ failing, from the failure log, its looks like driver is could able to handle small transfers and failing at large transfers START - test_read_unaligned_address
Cannot read flash TESTSUITE flash_driver failed. ------ TESTSUITE SUMMARY START ------ SUITE FAIL - 0.00% [flash_driver]: pass = 0, fail = 7, skip = 0, total = 7 duration = 1.540 seconds
------ TESTSUITE SUMMARY END ------ may I know how you are testing. |
Duee to a Non-Disclosure Agreement (NDA), I am limited in the information I can share. |
@XenuIsWatching |
This IP has Hardware chip selects. If you are using those, you can not be using the cs gpio definitions, otherwise it will be calling the gpio api to toggle the cs pin. |
Realized this upon revisiting this morning. Driver appears to work as is on the Ultrascale+ with R109, even with writing to some bits marked as reserved in UG1085 with |
This adds the missing fifo config from the dts which was missed in the initial revision. This also adds the spi rtio fallback api, and fixes an issue with calculating the spi clock divisor