* [PATCH v3 0/5] drm/sitronix/st7571-i2c: Add support for the ST7567 Controller
@ 2025-07-15 11:03 Javier Martinez Canillas
2025-07-15 11:03 ` [PATCH v3 4/5] dt-bindings: display: Add Sitronix ST7567 LCD Controller Javier Martinez Canillas
2025-07-16 10:16 ` [PATCH v3 0/5] drm/sitronix/st7571-i2c: Add support for the ST7567 Controller Javier Martinez Canillas
0 siblings, 2 replies; 3+ messages in thread
From: Javier Martinez Canillas @ 2025-07-15 11:03 UTC (permalink / raw)
To: linux-kernel
Cc: ipedrosa, Javier Martinez Canillas, Conor Dooley, David Airlie,
Krzysztof Kozlowski, Maarten Lankhorst, Marcus Folkesson,
Maxime Ripard, Rob Herring, Simona Vetter, Thomas Zimmermann,
devicetree, dri-devel
This patch-series adds support for the Sitronix ST7567 Controller, which is a
monochrome Dot Matrix LCD Controller that has SPI, I2C and parallel interfaces.
The st7571-i2c driver only has support for I2C so displays using other transport
interfaces are currently not supported.
The DRM_FORMAT_R1 pixel format and data commands are the same than what is used
by the ST7571 controller, so only is needed a different callback that implements
the expected initialization sequence for the ST7567 chip and a different callback
to parse the sub-set of DT properties needed by the ST7567.
Patches #1 and #2 are some trivial cleanups for the driver.
Patch #3 is a preparatory change that adds the level of indirection for the DT
parsing logic.
Patch #4 adds a Device Tree binding schema for the ST7567 Controller.
Patch #5 finally extends the st7571-i2c driver to also support the ST7567 device.
Changes in v3:
- Fix reset typo in commit message (Marcus Folkesson).
- Explicitly set ST7571_SET_REVERSE(0) instead of relying on defaults.
Changes in v2:
- Use a different parse DT function (Thomas Zimmermann).
Javier Martinez Canillas (5):
drm/sitronix/st7571-i2c: Fix encoder callbacks function names
drm/sitronix/st7571-i2c: Log probe deferral cause for GPIO get failure
drm/sitronix/st7571-i2c: Add an indirection level to parse DT
dt-bindings: display: Add Sitronix ST7567 LCD Controller
drm/sitronix/st7571-i2c: Add support for the ST7567 Controller
.../bindings/display/sitronix,st7567.yaml | 63 ++++++++++++
MAINTAINERS | 1 +
drivers/gpu/drm/sitronix/st7571-i2c.c | 95 +++++++++++++++++--
3 files changed, 151 insertions(+), 8 deletions(-)
create mode 100644 Documentation/devicetree/bindings/display/sitronix,st7567.yaml
--
2.49.0
base-commit: d5ca45b508916144d1e8be1102bedab405c1f6fb
branch: drm-st7567-v3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v3 4/5] dt-bindings: display: Add Sitronix ST7567 LCD Controller
2025-07-15 11:03 [PATCH v3 0/5] drm/sitronix/st7571-i2c: Add support for the ST7567 Controller Javier Martinez Canillas
@ 2025-07-15 11:03 ` Javier Martinez Canillas
2025-07-16 10:16 ` [PATCH v3 0/5] drm/sitronix/st7571-i2c: Add support for the ST7567 Controller Javier Martinez Canillas
1 sibling, 0 replies; 3+ messages in thread
From: Javier Martinez Canillas @ 2025-07-15 11:03 UTC (permalink / raw)
To: linux-kernel
Cc: ipedrosa, Javier Martinez Canillas, Rob Herring (Arm),
Marcus Folkesson, Conor Dooley, David Airlie, Krzysztof Kozlowski,
Maarten Lankhorst, Maxime Ripard, Simona Vetter,
Thomas Zimmermann, devicetree, dri-devel
Sitronix ST7567 is a monochrome Dot Matrix LCD Controller.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
(no changes since v1)
.../bindings/display/sitronix,st7567.yaml | 63 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 64 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/sitronix,st7567.yaml
diff --git a/Documentation/devicetree/bindings/display/sitronix,st7567.yaml b/Documentation/devicetree/bindings/display/sitronix,st7567.yaml
new file mode 100644
index 000000000000..e8a5b8ad18fe
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/sitronix,st7567.yaml
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/sitronix,st7567.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sitronix ST7567 Display Controller
+
+maintainers:
+ - Javier Martinez Canillas <javierm@redhat.com>
+
+description:
+ Sitronix ST7567 is a driver and controller for monochrome
+ dot matrix LCD panels.
+
+allOf:
+ - $ref: panel/panel-common.yaml#
+
+properties:
+ compatible:
+ const: sitronix,st7567
+
+ reg:
+ maxItems: 1
+
+ width-mm: true
+ height-mm: true
+ panel-timing: true
+
+required:
+ - compatible
+ - reg
+ - width-mm
+ - height-mm
+ - panel-timing
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ display@3f {
+ compatible = "sitronix,st7567";
+ reg = <0x3f>;
+ width-mm = <37>;
+ height-mm = <27>;
+
+ panel-timing {
+ hactive = <128>;
+ vactive = <64>;
+ hback-porch = <0>;
+ vback-porch = <0>;
+ clock-frequency = <0>;
+ hfront-porch = <0>;
+ hsync-len = <0>;
+ vfront-porch = <0>;
+ vsync-len = <0>;
+ };
+ };
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index ee2ef9d9db2a..d97e091b1742 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7835,6 +7835,7 @@ F: drivers/gpu/drm/sitronix/st7586.c
DRM DRIVER FOR SITRONIX ST7571 PANELS
M: Marcus Folkesson <marcus.folkesson@gmail.com>
S: Maintained
+F: Documentation/devicetree/bindings/display/sitronix,st7567.yaml
F: Documentation/devicetree/bindings/display/sitronix,st7571.yaml
F: drivers/gpu/drm/sitronix/st7571-i2c.c
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3 0/5] drm/sitronix/st7571-i2c: Add support for the ST7567 Controller
2025-07-15 11:03 [PATCH v3 0/5] drm/sitronix/st7571-i2c: Add support for the ST7567 Controller Javier Martinez Canillas
2025-07-15 11:03 ` [PATCH v3 4/5] dt-bindings: display: Add Sitronix ST7567 LCD Controller Javier Martinez Canillas
@ 2025-07-16 10:16 ` Javier Martinez Canillas
1 sibling, 0 replies; 3+ messages in thread
From: Javier Martinez Canillas @ 2025-07-16 10:16 UTC (permalink / raw)
To: linux-kernel
Cc: ipedrosa, Conor Dooley, David Airlie, Krzysztof Kozlowski,
Maarten Lankhorst, Marcus Folkesson, Maxime Ripard, Rob Herring,
Simona Vetter, Thomas Zimmermann, devicetree, dri-devel
Javier Martinez Canillas <javierm@redhat.com> writes:
> This patch-series adds support for the Sitronix ST7567 Controller, which is a
> monochrome Dot Matrix LCD Controller that has SPI, I2C and parallel interfaces.
>
> The st7571-i2c driver only has support for I2C so displays using other transport
> interfaces are currently not supported.
>
> The DRM_FORMAT_R1 pixel format and data commands are the same than what is used
> by the ST7571 controller, so only is needed a different callback that implements
> the expected initialization sequence for the ST7567 chip and a different callback
> to parse the sub-set of DT properties needed by the ST7567.
>
> Patches #1 and #2 are some trivial cleanups for the driver.
>
> Patch #3 is a preparatory change that adds the level of indirection for the DT
> parsing logic.
>
> Patch #4 adds a Device Tree binding schema for the ST7567 Controller.
>
> Patch #5 finally extends the st7571-i2c driver to also support the ST7567 device.
>
> Changes in v3:
> - Fix reset typo in commit message (Marcus Folkesson).
> - Explicitly set ST7571_SET_REVERSE(0) instead of relying on defaults.
>
> Changes in v2:
> - Use a different parse DT function (Thomas Zimmermann).
>
> Javier Martinez Canillas (5):
> drm/sitronix/st7571-i2c: Fix encoder callbacks function names
> drm/sitronix/st7571-i2c: Log probe deferral cause for GPIO get failure
> drm/sitronix/st7571-i2c: Add an indirection level to parse DT
> dt-bindings: display: Add Sitronix ST7567 LCD Controller
> drm/sitronix/st7571-i2c: Add support for the ST7567 Controller
>
Pushed to drm-misc (drm-misc-next). Thanks!
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-16 10:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15 11:03 [PATCH v3 0/5] drm/sitronix/st7571-i2c: Add support for the ST7567 Controller Javier Martinez Canillas
2025-07-15 11:03 ` [PATCH v3 4/5] dt-bindings: display: Add Sitronix ST7567 LCD Controller Javier Martinez Canillas
2025-07-16 10:16 ` [PATCH v3 0/5] drm/sitronix/st7571-i2c: Add support for the ST7567 Controller Javier Martinez Canillas
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).