xref: /linux/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml (revision d53b8e36925256097a08d7cb749198d85cbf9b2b)
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,lms380kf01.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung LMS380KF01 display panel
8
9description: The LMS380KF01 is a 480x800 DPI display panel from Samsung Mobile
10  Displays (SMD) utilizing the WideChips WS2401 display controller. It can be
11  used with internal or external backlight control.
12
13maintainers:
14  - Linus Walleij <linus.walleij@linaro.org>
15
16allOf:
17  - $ref: panel-common.yaml#
18  - $ref: /schemas/spi/spi-peripheral-props.yaml#
19
20properties:
21  compatible:
22    const: samsung,lms380kf01
23
24  reg:
25    maxItems: 1
26
27  interrupts:
28    description: provides an optional ESD (electrostatic discharge)
29      interrupt that signals abnormalities in the display hardware.
30      This can also be raised for other reasons like erroneous
31      configuration.
32    maxItems: 1
33
34  reset-gpios: true
35
36  vci-supply:
37    description: regulator that supplies the VCI analog voltage
38      usually around 3.0 V
39
40  vccio-supply:
41    description: regulator that supplies the VCCIO voltage usually
42      around 1.8 V
43
44  backlight: true
45
46  spi-cpha: true
47
48  spi-cpol: true
49
50  spi-max-frequency:
51    maximum: 1200000
52
53  port: true
54
55required:
56  - compatible
57  - reg
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
79        panel@0 {
80            compatible = "samsung,lms380kf01";
81            spi-max-frequency = <1200000>;
82            spi-cpha;
83            spi-cpol;
84            reg = <0>;
85            vci-supply = <&lcd_3v0_reg>;
86            vccio-supply = <&lcd_1v8_reg>;
87            reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
88            interrupt-parent = <&gpio>;
89            interrupts = <5 IRQ_TYPE_EDGE_RISING>;
90
91            port {
92                panel_in: endpoint {
93                    remote-endpoint = <&display_out>;
94                };
95            };
96        };
97    };
98
99...
100