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