xref: /linux/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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,lms397kf04.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung LMS397KF04 display panel
8
9description: The datasheet claims this is based around a display controller
10  named DB7430 with a separate backlight controller.
11
12maintainers:
13  - Linus Walleij <linus.walleij@linaro.org>
14
15allOf:
16  - $ref: panel-common.yaml#
17  - $ref: /schemas/spi/spi-peripheral-props.yaml#
18
19properties:
20  compatible:
21    const: samsung,lms397kf04
22
23  reg:
24    maxItems: 1
25
26  reset-gpios: true
27
28  vci-supply:
29    description: regulator that supplies the VCI analog voltage
30      usually around 3.0 V
31
32  vccio-supply:
33    description: regulator that supplies the VCCIO voltage usually
34      around 1.8 V
35
36  backlight: true
37
38  spi-cpha: true
39
40  spi-cpol: true
41
42  spi-max-frequency:
43    description: inherited as a SPI client node, the datasheet specifies
44      maximum 300 ns minimum cycle which gives around 3 MHz max frequency
45    maximum: 3000000
46
47  port: true
48
49required:
50  - compatible
51  - reg
52  - spi-cpha
53  - spi-cpol
54  - port
55
56unevaluatedProperties: false
57
58examples:
59  - |
60    #include <dt-bindings/gpio/gpio.h>
61
62    spi {
63      compatible = "spi-gpio";
64      sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
65      miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
66      mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
67      cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
68      num-chipselects = <1>;
69      #address-cells = <1>;
70      #size-cells = <0>;
71      panel@0 {
72        compatible = "samsung,lms397kf04";
73        spi-max-frequency = <3000000>;
74        spi-cpha;
75        spi-cpol;
76        reg = <0>;
77        vci-supply = <&lcd_3v0_reg>;
78        vccio-supply = <&lcd_1v8_reg>;
79        reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
80        backlight = <&ktd259>;
81
82        port {
83          panel_in: endpoint {
84            remote-endpoint = <&display_out>;
85          };
86        };
87      };
88    };
89
90...
91