]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: display: sitronix,st7571: add example for SPI
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Mon, 15 Dec 2025 09:46:49 +0000 (10:46 +0100)
committerJavier Martinez Canillas <javierm@redhat.com>
Mon, 15 Dec 2025 12:49:40 +0000 (13:49 +0100)
Add example for using st7571 with SPI.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://patch.msgid.link/20251215-st7571-split-v3-7-d5f3205c3138@gmail.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Documentation/devicetree/bindings/display/sitronix,st7571.yaml

index b83721eb4b7f8d258b4e845f107b056696b8d4a8..1931a47c42171fc8d69b6ff09ca6673fcd8b8f5b 100644 (file)
@@ -76,3 +76,28 @@ examples:
         };
       };
     };
+
+    spi {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      display@0 {
+        compatible = "sitronix,st7571";
+        reg = <0>;
+        reset-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+        width-mm = <37>;
+        height-mm = <27>;
+
+        panel-timing {
+          hactive = <128>;
+          vactive = <96>;
+          hback-porch = <0>;
+          vback-porch = <0>;
+          clock-frequency = <0>;
+          hfront-porch = <0>;
+          hsync-len = <0>;
+          vfront-porch = <0>;
+          vsync-len = <0>;
+        };
+      };
+    };