-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: stm32 spi supports TI or Motorola standard protocols #38911
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
Conversation
If supported by the SPI instance and soc, this property will configure the frame-format to be compliant with the TI mode. By default, if supported, the frame-format is Motorola mode. Signed-off-by: Francois Ramu <[email protected]>
Depending of the soc and SPI peripheral, the Frame-Format of the SPI can be configured to support TI or Motorola protocol. This is configured through a new DTS property. Signed-off-by: Francois Ramu <[email protected]>
avisconti
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(I assume the answer to my question is "yes")
| false: SPI Motorola mode (default) | ||
| true: SPI TI mode | ||
| pinctrl-0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default is "false" for booleans, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that adding the DT frame-format property to a SPI node fixes the MOSI signal issue for my test case.
In addition the patches are looking good to me.
Thanks @FRASTM.
|
@cfriedt, I think we've been too fast on this. It wasn't approved (nor reviewed) by any of the maintainers. Would you mind to revert ? |
This changes introduces a new property to the DTS of the stm32 spi to configure the Frame Format.
Some STM32 devices, have a SPI interface which is compatible with the TI protocol. The FRF bit of the SPIx_CR2 register can be used to configure the SPI to be compliant with this protocol.
By default the frame format is motorola Mode.
To configure the TI mode, the dts should include the property as follows:
Fixes #38683
Signed-off-by: Francois Ramu [email protected]