Skip to content
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: mipi_dsi: add additional parameters to control messages #86405

Open
thenguyenyf opened this issue Feb 27, 2025 · 0 comments
Open

drivers: mipi_dsi: add additional parameters to control messages #86405

thenguyenyf opened this issue Feb 27, 2025 · 0 comments
Labels
area: MIPI-DSI RFC Request For Comments: want input from the community

Comments

@thenguyenyf
Copy link
Contributor

Introduction

The current mipi_dsi drivers using MIPI_DSI_MSG_USE_LPM flags to control whether a MIPI DSI LP message should be send by a mipi_dsi_transfer call. But the implementation of these APIs doesn't provide the input param meter to pass it for mipi_dsi_transfer:

  • mipi_dsi_generic_read
  • mipi_dsi_generic_write
  • mipi_dsi_dcs_read
  • mipi_dsi_dcs_write

This therefore prevents LP MIPI devices from using these APIs.

Problem description

Proposed change

Detailed RFC

Proposed change (Detailed)

Add additional parameters to message flag input for mipi_dsi* as in #86403 :

ssize_t mipi_dsi_generic_read(const struct device *dev, uint8_t channel, const void *params,
			      size_t nparams, void *buf, size_t len, uint16_t flags);

ssize_t mipi_dsi_generic_write(const struct device *dev, uint8_t channel, const void *buf,
			       size_t len, uint16_t flags);

ssize_t mipi_dsi_dcs_read(const struct device *dev, uint8_t channel, uint8_t cmd, void *buf,
			  size_t len, uint16_t flags);

ssize_t mipi_dsi_dcs_write(const struct device *dev, uint8_t channel, uint8_t cmd, const void *buf,
			   size_t len, uint16_t flags);

Dependencies

Concerns and Unresolved Questions

Alternatives

@thenguyenyf thenguyenyf added the RFC Request For Comments: want input from the community label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: MIPI-DSI RFC Request For Comments: want input from the community
Projects
Status: No status
Development

No branches or pull requests

2 participants