Skip to content

Commit 5e61d44

Browse files
dlechrobherring
authored andcommitted
dt-bindings: display: convert sitronix,st7586 to YAML
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> Link: https://lore.kernel.org/r/20250530-devicetree-convert-sitronix-st7586-to-yaml-v1-1-c132b512ec57@baylibre.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent 1c69ba9 commit 5e61d44

3 files changed

Lines changed: 62 additions & 23 deletions

File tree

Documentation/devicetree/bindings/display/sitronix,st7586.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/display/sitronix,st7586.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sitronix ST7586 Display Controller
8+
9+
maintainers:
10+
- David Lechner <david@lechnology.com>
11+
12+
description:
13+
Sitronix ST7586 is a driver and controller for 4-level gray
14+
scale and monochrome dot matrix LCD panels.
15+
https://topwaydisplay.com/sites/default/files/2020-04/ST7586S.pdf
16+
17+
$ref: panel/panel-common.yaml#
18+
19+
additionalProperties: false
20+
21+
properties:
22+
compatible:
23+
const: lego,ev3-lcd
24+
25+
reg:
26+
maxItems: 1
27+
28+
spi-max-frequency:
29+
maximum: 50000000
30+
31+
a0-gpios:
32+
description:
33+
The A0 signal (for serial mode, this is the pin labeled D1 on the
34+
controller, not the pin labeled A0)
35+
maxItems: 1
36+
37+
reset-gpios: true
38+
rotation: true
39+
40+
required:
41+
- compatible
42+
- reg
43+
- a0-gpios
44+
- reset-gpios
45+
46+
examples:
47+
- |
48+
#include <dt-bindings/gpio/gpio.h>
49+
50+
spi {
51+
#address-cells = <1>;
52+
#size-cells = <0>;
53+
54+
display@0 {
55+
compatible = "lego,ev3-lcd";
56+
reg = <0>;
57+
spi-max-frequency = <10000000>;
58+
a0-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
59+
reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>;
60+
};
61+
};

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7825,7 +7825,7 @@ DRM DRIVER FOR SITRONIX ST7586 PANELS
78257825
M: David Lechner <david@lechnology.com>
78267826
S: Maintained
78277827
T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
7828-
F: Documentation/devicetree/bindings/display/sitronix,st7586.txt
7828+
F: Documentation/devicetree/bindings/display/sitronix,st7586.yaml
78297829
F: drivers/gpu/drm/sitronix/st7586.c
78307830

78317831
DRM DRIVER FOR SITRONIX ST7571 PANELS

0 commit comments

Comments
 (0)