* [PATCH] dt-bindings: display: convert sitronix,st7586 to YAML
@ 2025-05-30 23:05 David Lechner
2025-06-05 23:44 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: David Lechner @ 2025-05-30 23:05 UTC (permalink / raw)
To: David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
David Lechner
Cc: dri-devel, devicetree, linux-kernel, David Lechner
Convert the sitronix,st7586 binding documentation from .txt to .yaml.
Also added a link to the datasheet while we are touching this.
Signed-off-by: David Lechner <dlechner@baylibre.com>
---
.../bindings/display/sitronix,st7586.txt | 22 --------
.../bindings/display/sitronix,st7586.yaml | 61 ++++++++++++++++++++++
MAINTAINERS | 2 +-
3 files changed, 62 insertions(+), 23 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/sitronix,st7586.txt b/Documentation/devicetree/bindings/display/sitronix,st7586.txt
deleted file mode 100644
index 1d0dad1210d380849370738dbfb6a7b0e07773e8..0000000000000000000000000000000000000000
--- a/Documentation/devicetree/bindings/display/sitronix,st7586.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Sitronix ST7586 display panel
-
-Required properties:
-- compatible: "lego,ev3-lcd".
-- a0-gpios: The A0 signal (since this binding is for serial mode, this is
- the pin labeled D1 on the controller, not the pin labeled A0)
-- reset-gpios: Reset pin
-
-The node for this driver must be a child node of a SPI controller, hence
-all mandatory properties described in ../spi/spi-bus.txt must be specified.
-
-Optional properties:
-- rotation: panel rotation in degrees counter clockwise (0,90,180,270)
-
-Example:
- display@0{
- compatible = "lego,ev3-lcd";
- reg = <0>;
- spi-max-frequency = <10000000>;
- a0-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
- reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>;
- };
diff --git a/Documentation/devicetree/bindings/display/sitronix,st7586.yaml b/Documentation/devicetree/bindings/display/sitronix,st7586.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..566aaf1aeac81657d3a425f1c585894a3a6f82d3
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/sitronix,st7586.yaml
@@ -0,0 +1,61 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/sitronix,st7586.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sitronix ST7586 Display Controller
+
+maintainers:
+ - David Lechner <david@lechnology.com>
+
+description:
+ Sitronix ST7586 is a driver and controller for 4-level gray
+ scale and monochrome dot matrix LCD panels.
+ https://topwaydisplay.com/sites/default/files/2020-04/ST7586S.pdf
+
+$ref: panel/panel-common.yaml#
+
+additionalProperties: false
+
+properties:
+ compatible:
+ const: lego,ev3-lcd
+
+ reg:
+ maxItems: 1
+
+ spi-max-frequency:
+ maximum: 50000000
+
+ a0-gpios:
+ description:
+ The A0 signal (for serial mode, this is the pin labeled D1 on the
+ controller, not the pin labeled A0)
+ maxItems: 1
+
+ reset-gpios: true
+ rotation: true
+
+required:
+ - compatible
+ - reg
+ - a0-gpios
+ - reset-gpios
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ display@0 {
+ compatible = "lego,ev3-lcd";
+ reg = <0>;
+ spi-max-frequency = <10000000>;
+ a0-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
+ reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>;
+ };
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 0d59a5910e632350a4d72a761c6c5ce1d3a1bc34..58e9591f46c7b3f7621c5a4b66f469ae2a9f9cd9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7815,7 +7815,7 @@ DRM DRIVER FOR SITRONIX ST7586 PANELS
M: David Lechner <david@lechnology.com>
S: Maintained
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
-F: Documentation/devicetree/bindings/display/sitronix,st7586.txt
+F: Documentation/devicetree/bindings/display/sitronix,st7586.yaml
F: drivers/gpu/drm/sitronix/st7586.c
DRM DRIVER FOR SITRONIX ST7571 PANELS
---
base-commit: 2a628f951ed54c30a232230b5b58349d2a8dbb11
change-id: 20250530-devicetree-convert-sitronix-st7586-to-yaml-db5d82b63ffa
Best regards,
--
David Lechner <dlechner@baylibre.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: display: convert sitronix,st7586 to YAML
2025-05-30 23:05 [PATCH] dt-bindings: display: convert sitronix,st7586 to YAML David Lechner
@ 2025-06-05 23:44 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2025-06-05 23:44 UTC (permalink / raw)
To: David Lechner
Cc: David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Krzysztof Kozlowski, Conor Dooley,
David Lechner, dri-devel, devicetree, linux-kernel
On Fri, May 30, 2025 at 06:05:42PM -0500, David Lechner wrote:
> Convert the sitronix,st7586 binding documentation from .txt to .yaml.
>
> Also added a link to the datasheet while we are touching this.
>
> Signed-off-by: David Lechner <dlechner@baylibre.com>
> ---
> .../bindings/display/sitronix,st7586.txt | 22 --------
> .../bindings/display/sitronix,st7586.yaml | 61 ++++++++++++++++++++++
> MAINTAINERS | 2 +-
> 3 files changed, 62 insertions(+), 23 deletions(-)
Applied, thanks.
Rob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-05 23:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-30 23:05 [PATCH] dt-bindings: display: convert sitronix,st7586 to YAML David Lechner
2025-06-05 23:44 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).