xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/samsung,lms380kf01.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/samsung,lms380kf01.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: Samsung LMS380KF01 display panel
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotdescription: The LMS380KF01 is a 480x800 DPI display panel from Samsung Mobile
10354d7675SEmmanuel Vadot  Displays (SMD) utilizing the WideChips WS2401 display controller. It can be
11354d7675SEmmanuel Vadot  used with internal or external backlight control.
12354d7675SEmmanuel Vadot
13354d7675SEmmanuel Vadotmaintainers:
14354d7675SEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
15354d7675SEmmanuel Vadot
16354d7675SEmmanuel VadotallOf:
17354d7675SEmmanuel Vadot  - $ref: panel-common.yaml#
188bab661aSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
19354d7675SEmmanuel Vadot
20354d7675SEmmanuel Vadotproperties:
21354d7675SEmmanuel Vadot  compatible:
22354d7675SEmmanuel Vadot    const: samsung,lms380kf01
23354d7675SEmmanuel Vadot
24*7d0873ebSEmmanuel Vadot  reg:
25*7d0873ebSEmmanuel Vadot    maxItems: 1
26354d7675SEmmanuel Vadot
27354d7675SEmmanuel Vadot  interrupts:
28354d7675SEmmanuel Vadot    description: provides an optional ESD (electrostatic discharge)
29354d7675SEmmanuel Vadot      interrupt that signals abnormalities in the display hardware.
30354d7675SEmmanuel Vadot      This can also be raised for other reasons like erroneous
31354d7675SEmmanuel Vadot      configuration.
32354d7675SEmmanuel Vadot    maxItems: 1
33354d7675SEmmanuel Vadot
34354d7675SEmmanuel Vadot  reset-gpios: true
35354d7675SEmmanuel Vadot
36354d7675SEmmanuel Vadot  vci-supply:
37354d7675SEmmanuel Vadot    description: regulator that supplies the VCI analog voltage
38354d7675SEmmanuel Vadot      usually around 3.0 V
39354d7675SEmmanuel Vadot
40354d7675SEmmanuel Vadot  vccio-supply:
41354d7675SEmmanuel Vadot    description: regulator that supplies the VCCIO voltage usually
42354d7675SEmmanuel Vadot      around 1.8 V
43354d7675SEmmanuel Vadot
44354d7675SEmmanuel Vadot  backlight: true
45354d7675SEmmanuel Vadot
46354d7675SEmmanuel Vadot  spi-cpha: true
47354d7675SEmmanuel Vadot
48354d7675SEmmanuel Vadot  spi-cpol: true
49354d7675SEmmanuel Vadot
50354d7675SEmmanuel Vadot  spi-max-frequency:
51354d7675SEmmanuel Vadot    maximum: 1200000
52354d7675SEmmanuel Vadot
53354d7675SEmmanuel Vadot  port: true
54354d7675SEmmanuel Vadot
55354d7675SEmmanuel Vadotrequired:
56354d7675SEmmanuel Vadot  - compatible
57354d7675SEmmanuel Vadot  - reg
58354d7675SEmmanuel Vadot  - spi-cpha
59354d7675SEmmanuel Vadot  - spi-cpol
60354d7675SEmmanuel Vadot  - port
61354d7675SEmmanuel Vadot
628bab661aSEmmanuel VadotunevaluatedProperties: false
63354d7675SEmmanuel Vadot
64354d7675SEmmanuel Vadotexamples:
65354d7675SEmmanuel Vadot  - |
66354d7675SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
67354d7675SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
68354d7675SEmmanuel Vadot
69354d7675SEmmanuel Vadot    spi {
70354d7675SEmmanuel Vadot        compatible = "spi-gpio";
71354d7675SEmmanuel Vadot        sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
72354d7675SEmmanuel Vadot        miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
73354d7675SEmmanuel Vadot        mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
74354d7675SEmmanuel Vadot        cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
75354d7675SEmmanuel Vadot        num-chipselects = <1>;
76354d7675SEmmanuel Vadot        #address-cells = <1>;
77354d7675SEmmanuel Vadot        #size-cells = <0>;
78354d7675SEmmanuel Vadot
79354d7675SEmmanuel Vadot        panel@0 {
80354d7675SEmmanuel Vadot            compatible = "samsung,lms380kf01";
81354d7675SEmmanuel Vadot            spi-max-frequency = <1200000>;
82354d7675SEmmanuel Vadot            spi-cpha;
83354d7675SEmmanuel Vadot            spi-cpol;
84354d7675SEmmanuel Vadot            reg = <0>;
85354d7675SEmmanuel Vadot            vci-supply = <&lcd_3v0_reg>;
86354d7675SEmmanuel Vadot            vccio-supply = <&lcd_1v8_reg>;
87354d7675SEmmanuel Vadot            reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
88354d7675SEmmanuel Vadot            interrupt-parent = <&gpio>;
89354d7675SEmmanuel Vadot            interrupts = <5 IRQ_TYPE_EDGE_RISING>;
90354d7675SEmmanuel Vadot
91354d7675SEmmanuel Vadot            port {
92354d7675SEmmanuel Vadot                panel_in: endpoint {
93354d7675SEmmanuel Vadot                    remote-endpoint = <&display_out>;
94354d7675SEmmanuel Vadot                };
95354d7675SEmmanuel Vadot            };
96354d7675SEmmanuel Vadot        };
97354d7675SEmmanuel Vadot    };
98354d7675SEmmanuel Vadot
99354d7675SEmmanuel Vadot...
100