[PATCH v3 1/2] drm/mipi-dbi: Lock SPI bus before setting D/C GPIO

2023-07-23 Thread Otto Pflüger
Multiple displays may be connected to the same bus and share a D/C GPIO, so the display driver needs exclusive access to the bus to ensure that it can control the D/C GPIO safely. Signed-off-by: Otto Pflüger Reviewed-by: Noralf Trønnes --- drivers/gpu/drm/drm_mipi_dbi.c | 17

[PATCH v3 2/2] drm/tiny: panel-mipi-dbi: Allow sharing the D/C GPIO

2023-07-23 Thread Otto Pflüger
Displays that are connected to the same SPI bus may share the D/C GPIO. Use GPIOD_FLAGS_BIT_NONEXCLUSIVE to allow access to the same GPIO for multiple panel-mipi-dbi instances. Exclusive access to the GPIO during transfers is ensured by the locking in drm_mipi_dbi.c. Signed-off-by: Otto Pflüger

[PATCH v3 0/2] drm/mipi-dbi: Allow using same the D/C GPIO for multiple displays

2023-07-23 Thread Otto Pflüger
true Otto Pflüger (2): drm/mipi-dbi: Lock SPI bus before setting D/C GPIO drm/tiny: panel-mipi-dbi: Allow sharing the D/C GPIO drivers/gpu/drm/drm_mipi_dbi.c| 17 + drivers/gpu/drm/tiny/ili9225.c| 7 ++- drivers/gpu/drm/tiny/ili9486.c| 4

[PATCH v2 2/2] drm/tiny: panel-mipi-dbi: Allow sharing the D/C GPIO

2023-07-20 Thread Otto Pflüger
Displays that are connected to the same SPI bus may share the D/C GPIO. Use GPIOD_FLAGS_BIT_NONEXCLUSIVE to allow access to the same GPIO for multiple panel-mipi-dbi instances. Exclusive access to the GPIO during transfers is ensured by the locking in drm_mipi_dbi.c. Signed-off-by: Otto Pflüger

[PATCH v2 1/2] drm/mipi-dbi: Lock SPI bus before setting D/C GPIO

2023-07-20 Thread Otto Pflüger
Multiple displays may be connected to the same bus and share a D/C GPIO, so the display driver needs exclusive access to the bus to ensure that it can control the D/C GPIO safely. Signed-off-by: Otto Pflüger --- drivers/gpu/drm/drm_mipi_dbi.c | 17 + drivers/gpu/drm/tiny/ili9225

[PATCH v2 0/2] drm/mipi-dbi: Allow using same the D/C GPIO for multiple displays

2023-07-20 Thread Otto Pflüger
this hardware setup. --- Changes in v2: - fix uses of mipi_dbi_spi_transfer outside drm_mipi_dbi.c (errors reported by kernel test robot) - remove the is_locked argument introduced in v1 which was always set to true Otto Pflüger (2): drm/mipi-dbi: Lock SPI bus before setting D/C GPIO drm

[PATCH 0/2] drm/mipi-dbi: Allow using same the D/C GPIO for multiple displays

2023-07-19 Thread Otto Pflüger
this hardware setup. Otto Pflüger (2): drm/mipi-dbi: Lock SPI bus before setting D/C GPIO drm/tiny: panel-mipi-dbi: Allow sharing the D/C GPIO drivers/gpu/drm/drm_mipi_dbi.c| 22 +- drivers/gpu/drm/tiny/panel-mipi-dbi.c | 3 ++- include/drm/drm_mipi_dbi.h

[PATCH 2/2] drm/tiny: panel-mipi-dbi: Allow sharing the D/C GPIO

2023-07-19 Thread Otto Pflüger
Displays that are connected to the same SPI bus may share the D/C GPIO. Use GPIOD_FLAGS_BIT_NONEXCLUSIVE to allow access to the same GPIO for multiple panel-mipi-dbi instances. Exclusive access to the GPIO during transfers is ensured by the locking in drm_mipi_dbi.c. Signed-off-by: Otto Pflüger

[PATCH 1/2] drm/mipi-dbi: Lock SPI bus before setting D/C GPIO

2023-07-19 Thread Otto Pflüger
Multiple displays may be connected to the same bus and share a D/C GPIO, so the display driver needs exclusive access to the bus to ensure that it can control the D/C GPIO safely. Signed-off-by: Otto Pflüger --- drivers/gpu/drm/drm_mipi_dbi.c | 22 +- include/drm

[PATCH v2 3/3] dt-bindings: display: panel: mipi-dbi-spi: Add io-supply

2022-12-01 Thread Otto Pflüger
Add documentation for the new io-supply property, which specifies the regulator for the I/O voltage supply on platforms where the panel panel power and I/O supplies are separate. Signed-off-by: Otto Pflüger --- .../bindings/display/panel/panel-mipi-dbi-spi.yaml| 8 +++- 1 file

[PATCH v2 2/3] drm/tiny: panel-mipi-dbi: Read I/O supply from DT

2022-12-01 Thread Otto Pflüger
To support platforms with a separate I/O voltage supply, set the new io_regulator property along with the regulator property of the DBI device. Read the I/O supply from a new "io-supply" device tree property. Signed-off-by: Otto Pflüger --- drivers/gpu/drm/tiny/panel-mipi-dbi.c |

[PATCH v2 1/3] drm/mipi-dbi: Support separate I/O regulator

2022-12-01 Thread Otto Pflüger
can be set by the panel driver along with the regulator property. Signed-off-by: Otto Pflüger --- drivers/gpu/drm/drm_mipi_dbi.c | 14 ++ include/drm/drm_mipi_dbi.h | 7 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_mipi_dbi.c b

[PATCH v2 0/3] drm/tiny: panel-mipi-dbi: Support separate I/O voltage supply

2022-12-01 Thread Otto Pflüger
panel-mipi-dbi-spi.yaml because it is already in panel-common.yaml Otto Pflüger (3): drm/mipi-dbi: Support separate I/O regulator drm/tiny: panel-mipi-dbi: Read I/O supply from DT dt-bindings: display: panel: mipi-dbi-spi: Add io-supply .../bindings/display/panel/panel-mipi-dbi-spi.yaml |

[PATCH 0/4] drm/tiny: panel-mipi-dbi: Support separate I/O voltage supply

2022-11-27 Thread Otto Pflüger
the device tree. Add support for a second power supply defined in a new "io-supply" device tree property to make the driver properly configure the voltage regulators on platforms where separate supplies are used. (Resent from a new email address with proper formatting) Otto Pflüger

[PATCH 4/4] dt-bindings: display: panel: mipi-dbi-spi: Add io-supply

2022-11-27 Thread Otto Pflüger
Add documentation for the new io-supply property, which specifies the regulator for the I/O voltage supply on platforms where the panel panel power and I/O supplies are separate. Signed-off-by: Otto Pflüger --- .../bindings/display/panel/panel-mipi-dbi-spi.yaml| 8 +++- 1 file

[PATCH 3/4] dt-bindings: display: panel: mipi-dbi-spi: Add missing power-supply

2022-11-27 Thread Otto Pflüger
The power-supply property is only mentioned in the description and not listed in the properties section of the binding. Add it there. Signed-off-by: Otto Pflüger --- .../devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[PATCH 1/4] drm/mipi-dbi: Support separate I/O regulator

2022-11-27 Thread Otto Pflüger
can be set by the panel driver along with the regulator property. Signed-off-by: Otto Pflüger --- drivers/gpu/drm/drm_mipi_dbi.c | 14 ++ include/drm/drm_mipi_dbi.h | 7 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_mipi_dbi.c b

[PATCH 2/4] drm/tiny: panel-mipi-dbi: Read I/O supply from DT

2022-11-27 Thread Otto Pflüger
To support platforms with a separate I/O voltage supply, set the new io_regulator property along with the regulator property of the DBI device. Read the I/O supply from a new "io-supply" device tree property. Signed-off-by: Otto Pflüger --- drivers/gpu/drm/tiny/panel-mipi-dbi.c |

[PATCH 4/4] dt-bindings: display: panel: mipi-dbi-spi: Add io-supply

2022-11-26 Thread Otto Pflüger
Add the new io-supply property, which specifies the regulator for the I/O voltage supply on platforms where the panel panel power and I/O supplies are separate. Signed-off-by: Otto Pflüger --- .../bindings/display/panel/panel-mipi-dbi-spi.yaml| 8 +++- 1 file changed, 7 insertions

[PATCH 1/4] drm/mipi-dbi: Support separate I/O regulator

2022-11-26 Thread Otto Pflüger
can be set by the panel driver along with the regulator property. Signed-off-by: Otto Pflüger --- drivers/gpu/drm/drm_mipi_dbi.c | 14 ++ include/drm/drm_mipi_dbi.h | 7 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_mipi_dbi.c b

[PATCH 3/4] dt-bindings: display: panel: mipi-dbi-spi: Add missing property

2022-11-26 Thread Otto Pflüger
The power-supply property is currently only mentioned in the description, but not listed in the properties section as it should be. Add it there. Signed-off-by: Otto Pflüger --- .../devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[PATCH 2/4] drm/tiny: Read separate I/O regulator from DT

2022-11-26 Thread Otto Pflüger
_regulator property of the DBI device so that the drm_mipi_dbi driver can enable it. Signed-off-by: Otto Pflüger --- drivers/gpu/drm/tiny/panel-mipi-dbi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/tiny/panel-mipi-dbi.c b/drivers/gpu/drm/tiny/panel-mipi-dbi.c index 03

[PATCH 3/4] dt-bindings: display: panel: mipi-dbi-spi: Add missing property

2022-11-26 Thread Otto Pflüger
The power-supply property is currently only mentioned in the description and not documented in the properties section as it should be. Add it there. Signed-off-by: Otto Pflüger --- .../devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 3/4] dt-bindings: display: panel: mipi-dbi-spi: Add missing power-supply

2022-11-26 Thread Otto Pflüger
The power-supply property is currently only mentioned in the description, but not listed in the properties section as it should be. Add it there. Signed-off-by: Otto Pflüger --- .../devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git