Devicetree
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org
Cc: lars.rask@axis.com, Cyril Hrubis <metan@ucw.cz>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Javier Martinez Canillas <javierm@redhat.com>,
	Marcus Folkesson <marcus.folkesson@gmail.com>,
	Iker Pedrosa <ikerpedrosam@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH v1 1/2] dt-bindings: display: sitronix,st75256: Add DT schema
Date: Sun,  6 Dec 2026 14:13:14 +0100	[thread overview]
Message-ID: <20261206131330.1754178-2-chrubis@suse.cz> (raw)
In-Reply-To: <20261206131330.1754178-1-chrubis@suse.cz>

From: Cyril Hrubis <metan@ucw.cz>

Add a binding for the Sitronix ST75256, a controller for monochrome and
4-level grayscale dot matrix LCD panels with up to 256 segment and 162
common lines, connected over 4-line SPI with a separate data/command
line.

The panel is described the same way as for the Sitronix ST75156 and
ST7571 controllers, the resolution with panel-timing and the physical
size with width-mm and height-mm. The LCD operating voltage (contrast)
is panel specific and required, the gray levels for the grayscale mode
are optional.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
---
 .../bindings/display/sitronix,st75256.yaml    | 113 ++++++++++++++++++
 1 file changed, 113 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/sitronix,st75256.yaml

diff --git a/Documentation/devicetree/bindings/display/sitronix,st75256.yaml b/Documentation/devicetree/bindings/display/sitronix,st75256.yaml
new file mode 100644
index 000000000000..a4486507f774
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/sitronix,st75256.yaml
@@ -0,0 +1,113 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/sitronix,st75256.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sitronix ST75256 Display Controller
+
+maintainers:
+  - Cyril Hrubis <metan@ucw.cz>
+
+description:
+  Sitronix ST75256 is a driver and controller for 4-level grayscale and
+  monochrome dot matrix LCD panels with up to 256 segment and 162 common
+  lines. The panel is connected over a 4-line SPI interface with a separate
+  data/command line. The panel is described in portrait orientation, i.e.
+  the width is along the common lines and the height along the segment lines.
+
+allOf:
+  - $ref: panel/panel-common.yaml#
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+properties:
+  compatible:
+    const: sitronix,st75256
+
+  reg:
+    maxItems: 1
+
+  spi-max-frequency:
+    maximum: 12500000
+
+  reset-gpios:
+    maxItems: 1
+
+  dc-gpios:
+    maxItems: 1
+    description: Data/command selection (A0) line.
+
+  backlight: true
+  width-mm: true
+  height-mm: true
+
+  panel-timing:
+    description:
+      Only hactive and vactive are used and describe the panel resolution.
+      The hactive has to be a multiple of 8 up to 160, the vactive up to
+      256. The remaining timings are not applicable and should be zero.
+
+  sitronix,vop:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    minimum: 0x55
+    maximum: 0x168
+    description:
+      LCD operating voltage (contrast) setting, V0 = 3.6V + vop * 0.04V. The
+      optimal value depends on the panel. It is added to the panel specific
+      offset programmed into the controller OTP by the panel manufacturer.
+
+  sitronix,gray-levels:
+    $ref: /schemas/types.yaml#/definitions/uint32-array
+    items:
+      - description: Light gray level
+        maximum: 0x1f
+      - description: Dark gray level
+        maximum: 0x1f
+    description:
+      Gray levels used in the 4-level grayscale mode. If not present, values
+      calibrated for the JLX256128 and JLX256160 panels are used.
+
+required:
+  - compatible
+  - reg
+  - reset-gpios
+  - dc-gpios
+  - width-mm
+  - height-mm
+  - panel-timing
+  - sitronix,vop
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        display@0 {
+            compatible = "sitronix,st75256";
+            reg = <0>;
+            spi-max-frequency = <12500000>;
+            reset-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+            dc-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
+            backlight = <&backlight>;
+            width-mm = <40>;
+            height-mm = <64>;
+            sitronix,vop = <284>;
+
+            panel-timing {
+                hactive = <160>;
+                vactive = <256>;
+                hback-porch = <0>;
+                hfront-porch = <0>;
+                hsync-len = <0>;
+                vback-porch = <0>;
+                vfront-porch = <0>;
+                vsync-len = <0>;
+                clock-frequency = <0>;
+            };
+        };
+    };
-- 
2.51.0


  reply	other threads:[~2026-12-06 13:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-06 13:13 [PATCH v1 0/2] Add support for Sitronix ST75256 LCD panels Cyril Hrubis
2026-12-06 13:13 ` Cyril Hrubis [this message]
2026-12-06 13:29   ` [PATCH v1 1/2] dt-bindings: display: sitronix,st75256: Add DT schema sashiko-bot
2026-12-06 13:13 ` [PATCH v1 2/2] drm/sitronix: Add driver for Sitronix ST75256 LCD panels Cyril Hrubis
2026-12-06 13:35   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261206131330.1754178-2-chrubis@suse.cz \
    --to=chrubis@suse.cz \
    --cc=airlied@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ikerpedrosam@gmail.com \
    --cc=javierm@redhat.com \
    --cc=krzk+dt@kernel.org \
    --cc=lars.rask@axis.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marcus.folkesson@gmail.com \
    --cc=metan@ucw.cz \
    --cc=mripard@kernel.org \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox