Skip to content

[858] IMXRT_LPSPI: Support "LSBF - LSB First" flag#214

Open
simonzumbrunnen wants to merge 1 commit into
renode:masterfrom
simonzumbrunnen:858-support_lsbf_on_imxrt_lpspi
Open

[858] IMXRT_LPSPI: Support "LSBF - LSB First" flag#214
simonzumbrunnen wants to merge 1 commit into
renode:masterfrom
simonzumbrunnen:858-support_lsbf_on_imxrt_lpspi

Conversation

@simonzumbrunnen

Copy link
Copy Markdown

The default (LSBF = 0) is MSB first. Before this commit the implementation sent the least significant byte first but with the most significant bit first. This change will break downstream peripherals that expect the mentioned order but it matches what the hardware actually does. To restore the previous behaviour the "BYSW" flag would have to be implemented as well. To use peripherals that expect the previous order the LPSPI peripheral would have to be configured LSBF=1, BYSW=1. If the implementation of BYSW is a requirement for this pull request to be accepted I would be willing to add this change. If not I will most likely create a separate pull request for the "BYSW" sooner or later.

This fixes: #858

The default (LSBF = 0) is MSB first. Before this commit the implementation sent
the *least significant byte* first but with the *most significant bit* first.
This change will break downstream peripherals that expect the mentioned order.
@CLAassistant

CLAassistant commented Jun 22, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support "LSBF - LSB First" flag on IMXRT_LPSPI peripheral

2 participants