xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/samsung,lms397kf04.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
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
18properties:
19  compatible:
20    const: samsung,lms397kf04
21
22  reg: true
23
24  reset-gpios: true
25
26  vci-supply:
27    description: regulator that supplies the VCI analog voltage
28      usually around 3.0 V
29
30  vccio-supply:
31    description: regulator that supplies the VCCIO voltage usually
32      around 1.8 V
33
34  backlight: true
35
36  spi-cpha: true
37
38  spi-cpol: true
39
40  spi-max-frequency:
41    description: inherited as a SPI client node, the datasheet specifies
42      maximum 300 ns minimum cycle which gives around 3 MHz max frequency
43    maximum: 3000000
44
45  port: true
46
47required:
48  - compatible
49  - reg
50  - spi-cpha
51  - spi-cpol
52  - port
53
54additionalProperties: false
55
56examples:
57  - |
58    #include <dt-bindings/gpio/gpio.h>
59
60    spi {
61      compatible = "spi-gpio";
62      sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
63      miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
64      mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
65      cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
66      num-chipselects = <1>;
67      #address-cells = <1>;
68      #size-cells = <0>;
69      panel@0 {
70        compatible = "samsung,lms397kf04";
71        spi-max-frequency = <3000000>;
72        spi-cpha;
73        spi-cpol;
74        reg = <0>;
75        vci-supply = <&lcd_3v0_reg>;
76        vccio-supply = <&lcd_1v8_reg>;
77        reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
78        backlight = <&ktd259>;
79
80        port {
81          panel_in: endpoint {
82            remote-endpoint = <&display_out>;
83          };
84        };
85      };
86    };
87
88...
89