1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/panel/samsung,s6d27a1.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung S6D27A1 display panel
8
9description: The S6D27A1 is a 480x800 DPI display panel from Samsung Mobile
10  Displays (SMD).
11
12maintainers:
13  - Markuss Broks <markuss.broks@gmail.com>
14
15allOf:
16  - $ref: panel-common.yaml#
17  - $ref: /schemas/spi/spi-peripheral-props.yaml#
18
19properties:
20  compatible:
21    const: samsung,s6d27a1
22
23  reg: true
24
25  interrupts:
26    description: provides an optional ESD (electrostatic discharge)
27      interrupt that signals abnormalities in the display hardware.
28      This can also be raised for other reasons like erroneous
29      configuration.
30    maxItems: 1
31
32  reset-gpios: true
33
34  vci-supply:
35    description: regulator that supplies the VCI analog voltage
36      usually around 3.0 V
37
38  vccio-supply:
39    description: regulator that supplies the VCCIO voltage usually
40      around 1.8 V
41
42  backlight: true
43
44  spi-cpha: true
45
46  spi-cpol: true
47
48  spi-max-frequency:
49    maximum: 1200000
50
51  port: true
52
53required:
54  - compatible
55  - reg
56  - vci-supply
57  - vccio-supply
58  - spi-cpha
59  - spi-cpol
60  - port
61
62unevaluatedProperties: false
63
64examples:
65  - |
66    #include <dt-bindings/gpio/gpio.h>
67    #include <dt-bindings/interrupt-controller/irq.h>
68
69    spi {
70        compatible = "spi-gpio";
71        sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
72        miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
73        mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
74        cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
75        num-chipselects = <1>;
76        #address-cells = <1>;
77        #size-cells = <0>;
78        panel@0 {
79            compatible = "samsung,s6d27a1";
80            spi-max-frequency = <1200000>;
81            spi-cpha;
82            spi-cpol;
83            reg = <0>;
84            vci-supply = <&lcd_3v0_reg>;
85            vccio-supply = <&lcd_1v8_reg>;
86            reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
87            interrupt-parent = <&gpio>;
88            interrupts = <5 IRQ_TYPE_EDGE_RISING>;
89
90            port {
91                panel_in: endpoint {
92                    remote-endpoint = <&display_out>;
93                };
94            };
95        };
96    };
97
98...
99