* [PATCH v2 2/8] dt-bindings: display: panel: mipi-dbi-spi: add shineworld lh133k compatible
[not found] <20230614123222.4167460-1-l.goehrs@pengutronix.de>
@ 2023-06-14 12:32 ` Leonard Göhrs
2023-06-15 10:35 ` Noralf Trønnes
2023-06-14 12:32 ` [PATCH v2 3/8] dt-bindings: display: panel: mipi-dbi-spi: add spi-3wire property Leonard Göhrs
1 sibling, 1 reply; 5+ messages in thread
From: Leonard Göhrs @ 2023-06-14 12:32 UTC (permalink / raw)
To: Conor Dooley, Rob Herring, Alexandre TORGUE, Krzysztof Kozlowski,
Noralf Trønnes, Neil Armstrong, Sam Ravnborg, David Airlie,
Daniel Vetter
Cc: devicetree, Conor Dooley, kernel, linux-kernel, dri-devel,
Conor Dooley, Rob Herring, Krzysztof Kozlowski,
Leonard Göhrs
The Shineworld LH133K is a 1.3" 240x240px RGB LCD with a MIPI DBI
compatible SPI interface.
The initialization procedure is quite basic with the exception of
requiring inverted colors.
A basic mipi-dbi-cmd[1] script to get the display running thus looks
like this:
$ cat shineworld,lh133k.txt
command 0x11 # exit sleep mode
delay 120
# The display seems to require display color inversion, so enable it.
command 0x21 # INVON
# Enable normal display mode (in contrast to partial display mode).
command 0x13 # NORON
command 0x29 # MIPI_DCS_SET_DISPLAY_ON
$ mipi-dbi-cmd shineworld,lh133k.bin shineworld,lh133k.txt
[1]: https://github.com/notro/panel-mipi-dbi
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
---
.../devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
index 9b701df5e9d28..c07da1a9e6288 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
@@ -67,6 +67,7 @@ properties:
items:
- enum:
- sainsmart18
+ - shineworld,lh133k
- const: panel-mipi-dbi-spi
write-only:
--
2.39.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 3/8] dt-bindings: display: panel: mipi-dbi-spi: add spi-3wire property
[not found] <20230614123222.4167460-1-l.goehrs@pengutronix.de>
2023-06-14 12:32 ` [PATCH v2 2/8] dt-bindings: display: panel: mipi-dbi-spi: add shineworld lh133k compatible Leonard Göhrs
@ 2023-06-14 12:32 ` Leonard Göhrs
2023-06-15 10:35 ` Noralf Trønnes
1 sibling, 1 reply; 5+ messages in thread
From: Leonard Göhrs @ 2023-06-14 12:32 UTC (permalink / raw)
To: Conor Dooley, Rob Herring, Alexandre TORGUE, Krzysztof Kozlowski,
Noralf Trønnes, Neil Armstrong, Sam Ravnborg, David Airlie,
Daniel Vetter
Cc: devicetree, Conor Dooley, kernel, linux-kernel, dri-devel,
Conor Dooley, Rob Herring, Krzysztof Kozlowski,
Leonard Göhrs
Some MIPI DBI panels support a three wire mode (clock, chip select,
bidirectional data) that can be used to ask the panel if it is already set
up by e.g. the bootloader and can thus skip the initialization.
This enables a flicker-free boot.
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
.../devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
index c07da1a9e6288..2f0238b770eba 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
@@ -87,6 +87,8 @@ properties:
Logic level supply for interface signals (Vddi).
No need to set if this is the same as power-supply.
+ spi-3wire: true
+
required:
- compatible
- reg
--
2.39.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/8] dt-bindings: display: panel: mipi-dbi-spi: add shineworld lh133k compatible
2023-06-14 12:32 ` [PATCH v2 2/8] dt-bindings: display: panel: mipi-dbi-spi: add shineworld lh133k compatible Leonard Göhrs
@ 2023-06-15 10:35 ` Noralf Trønnes
2023-06-15 20:20 ` Rob Herring
0 siblings, 1 reply; 5+ messages in thread
From: Noralf Trønnes @ 2023-06-15 10:35 UTC (permalink / raw)
To: Leonard Göhrs, Conor Dooley, Rob Herring, Alexandre TORGUE,
Krzysztof Kozlowski, Neil Armstrong, Sam Ravnborg, David Airlie,
Daniel Vetter
Cc: devicetree, Conor Dooley, noralf, kernel, linux-kernel, dri-devel,
Conor Dooley, Rob Herring, Krzysztof Kozlowski
On 6/14/23 14:32, Leonard Göhrs wrote:
> The Shineworld LH133K is a 1.3" 240x240px RGB LCD with a MIPI DBI
> compatible SPI interface.
> The initialization procedure is quite basic with the exception of
> requiring inverted colors.
> A basic mipi-dbi-cmd[1] script to get the display running thus looks
> like this:
>
> $ cat shineworld,lh133k.txt
> command 0x11 # exit sleep mode
> delay 120
>
> # The display seems to require display color inversion, so enable it.
> command 0x21 # INVON
>
> # Enable normal display mode (in contrast to partial display mode).
> command 0x13 # NORON
> command 0x29 # MIPI_DCS_SET_DISPLAY_ON
>
> $ mipi-dbi-cmd shineworld,lh133k.bin shineworld,lh133k.txt
>
> [1]: https://github.com/notro/panel-mipi-dbi
>
> Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> ---
Normally I would take this trough drm-misc-next but -rc6 is the cutoff
so if I do that it won't make it to 6.5. If the other patches make it to
6.5 the dtb checks will fail. I'm okay with the patches going through
another tree if that's preferred. Let me know if I should apply the
mipi-dbi-spi patches.
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
> .../devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
> index 9b701df5e9d28..c07da1a9e6288 100644
> --- a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
> +++ b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
> @@ -67,6 +67,7 @@ properties:
> items:
> - enum:
> - sainsmart18
> + - shineworld,lh133k
> - const: panel-mipi-dbi-spi
>
> write-only:
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 3/8] dt-bindings: display: panel: mipi-dbi-spi: add spi-3wire property
2023-06-14 12:32 ` [PATCH v2 3/8] dt-bindings: display: panel: mipi-dbi-spi: add spi-3wire property Leonard Göhrs
@ 2023-06-15 10:35 ` Noralf Trønnes
0 siblings, 0 replies; 5+ messages in thread
From: Noralf Trønnes @ 2023-06-15 10:35 UTC (permalink / raw)
To: Leonard Göhrs, Conor Dooley, Rob Herring, Alexandre TORGUE,
Krzysztof Kozlowski, Neil Armstrong, Sam Ravnborg, David Airlie,
Daniel Vetter
Cc: devicetree, Conor Dooley, noralf, kernel, linux-kernel, dri-devel,
Conor Dooley, Rob Herring, Krzysztof Kozlowski
On 6/14/23 14:32, Leonard Göhrs wrote:
> Some MIPI DBI panels support a three wire mode (clock, chip select,
> bidirectional data) that can be used to ask the panel if it is already set
> up by e.g. the bootloader and can thus skip the initialization.
> This enables a flicker-free boot.
>
> Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> Reviewed-by: Rob Herring <robh@kernel.org>
> ---
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
> .../devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
> index c07da1a9e6288..2f0238b770eba 100644
> --- a/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
> +++ b/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
> @@ -87,6 +87,8 @@ properties:
> Logic level supply for interface signals (Vddi).
> No need to set if this is the same as power-supply.
>
> + spi-3wire: true
> +
> required:
> - compatible
> - reg
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/8] dt-bindings: display: panel: mipi-dbi-spi: add shineworld lh133k compatible
2023-06-15 10:35 ` Noralf Trønnes
@ 2023-06-15 20:20 ` Rob Herring
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2023-06-15 20:20 UTC (permalink / raw)
To: Noralf Trønnes
Cc: Conor Dooley, Neil Armstrong, Conor Dooley, kernel,
Krzysztof Kozlowski, devicetree, Alexandre TORGUE, Conor Dooley,
linux-kernel, Krzysztof Kozlowski, dri-devel, Leonard Göhrs,
Sam Ravnborg
On Thu, Jun 15, 2023 at 12:35:25PM +0200, Noralf Trønnes wrote:
>
>
> On 6/14/23 14:32, Leonard Göhrs wrote:
> > The Shineworld LH133K is a 1.3" 240x240px RGB LCD with a MIPI DBI
> > compatible SPI interface.
> > The initialization procedure is quite basic with the exception of
> > requiring inverted colors.
> > A basic mipi-dbi-cmd[1] script to get the display running thus looks
> > like this:
> >
> > $ cat shineworld,lh133k.txt
> > command 0x11 # exit sleep mode
> > delay 120
> >
> > # The display seems to require display color inversion, so enable it.
> > command 0x21 # INVON
> >
> > # Enable normal display mode (in contrast to partial display mode).
> > command 0x13 # NORON
> > command 0x29 # MIPI_DCS_SET_DISPLAY_ON
> >
> > $ mipi-dbi-cmd shineworld,lh133k.bin shineworld,lh133k.txt
> >
> > [1]: https://github.com/notro/panel-mipi-dbi
> >
> > Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
> > Acked-by: Conor Dooley <conor.dooley@microchip.com>
> > ---
>
> Normally I would take this trough drm-misc-next but -rc6 is the cutoff
> so if I do that it won't make it to 6.5. If the other patches make it to
> 6.5 the dtb checks will fail. I'm okay with the patches going through
> another tree if that's preferred. Let me know if I should apply the
> mipi-dbi-spi patches.
I've applied patches 1, 2, and 3. The netdev folks should pick up the
other bindings.
Rob
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-15 20:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230614123222.4167460-1-l.goehrs@pengutronix.de>
2023-06-14 12:32 ` [PATCH v2 2/8] dt-bindings: display: panel: mipi-dbi-spi: add shineworld lh133k compatible Leonard Göhrs
2023-06-15 10:35 ` Noralf Trønnes
2023-06-15 20:20 ` Rob Herring
2023-06-14 12:32 ` [PATCH v2 3/8] dt-bindings: display: panel: mipi-dbi-spi: add spi-3wire property Leonard Göhrs
2023-06-15 10:35 ` Noralf Trønnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox