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
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
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
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
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
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
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
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
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
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
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 |
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
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 |
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
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
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
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
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 |
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
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
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
_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
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
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
24 matches
Mail list logo