Merge tag 'dt-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / display / panel / samsung,lms380kf01.yaml
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
7 title: Samsung LMS380KF01 display panel
8
9 description: 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   The panel must obey the rules for a SPI slave device as specified in
13   spi/spi-controller.yaml
14
15 maintainers:
16   - Linus Walleij <linus.walleij@linaro.org>
17
18 allOf:
19   - $ref: panel-common.yaml#
20
21 properties:
22   compatible:
23     const: samsung,lms380kf01
24
25   reg: true
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
55 required:
56   - compatible
57   - reg
58   - spi-cpha
59   - spi-cpol
60   - port
61
62 additionalProperties: false
63
64 examples:
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 ...