xref: /linux/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml (revision 06f054b1fee83415fe35204845708988fc16ef22)
16c525b72SLinus Walleij# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
26c525b72SLinus Walleij%YAML 1.2
36c525b72SLinus Walleij---
46c525b72SLinus Walleij$id: http://devicetree.org/schemas/display/panel/samsung,lms397kf04.yaml#
56c525b72SLinus Walleij$schema: http://devicetree.org/meta-schemas/core.yaml#
66c525b72SLinus Walleij
76c525b72SLinus Walleijtitle: Samsung LMS397KF04 display panel
86c525b72SLinus Walleij
96c525b72SLinus Walleijdescription: The datasheet claims this is based around a display controller
106c525b72SLinus Walleij  named DB7430 with a separate backlight controller.
116c525b72SLinus Walleij
126c525b72SLinus Walleijmaintainers:
136c525b72SLinus Walleij  - Linus Walleij <linus.walleij@linaro.org>
146c525b72SLinus Walleij
156c525b72SLinus WalleijallOf:
166c525b72SLinus Walleij  - $ref: panel-common.yaml#
175b4248bfSKrzysztof Kozlowski  - $ref: /schemas/spi/spi-peripheral-props.yaml#
186c525b72SLinus Walleij
196c525b72SLinus Walleijproperties:
206c525b72SLinus Walleij  compatible:
216c525b72SLinus Walleij    const: samsung,lms397kf04
226c525b72SLinus Walleij
23*6b2358ffSKrzysztof Kozlowski  reg:
24*6b2358ffSKrzysztof Kozlowski    maxItems: 1
256c525b72SLinus Walleij
266c525b72SLinus Walleij  reset-gpios: true
276c525b72SLinus Walleij
286c525b72SLinus Walleij  vci-supply:
296c525b72SLinus Walleij    description: regulator that supplies the VCI analog voltage
306c525b72SLinus Walleij      usually around 3.0 V
316c525b72SLinus Walleij
326c525b72SLinus Walleij  vccio-supply:
336c525b72SLinus Walleij    description: regulator that supplies the VCCIO voltage usually
346c525b72SLinus Walleij      around 1.8 V
356c525b72SLinus Walleij
366c525b72SLinus Walleij  backlight: true
376c525b72SLinus Walleij
38710fa9aaSLinus Walleij  spi-cpha: true
39710fa9aaSLinus Walleij
40710fa9aaSLinus Walleij  spi-cpol: true
41710fa9aaSLinus Walleij
426c525b72SLinus Walleij  spi-max-frequency:
436c525b72SLinus Walleij    description: inherited as a SPI client node, the datasheet specifies
446c525b72SLinus Walleij      maximum 300 ns minimum cycle which gives around 3 MHz max frequency
456c525b72SLinus Walleij    maximum: 3000000
466c525b72SLinus Walleij
476c525b72SLinus Walleij  port: true
486c525b72SLinus Walleij
496c525b72SLinus Walleijrequired:
506c525b72SLinus Walleij  - compatible
516c525b72SLinus Walleij  - reg
52710fa9aaSLinus Walleij  - spi-cpha
53710fa9aaSLinus Walleij  - spi-cpol
54710fa9aaSLinus Walleij  - port
556c525b72SLinus Walleij
565b4248bfSKrzysztof KozlowskiunevaluatedProperties: false
576c525b72SLinus Walleij
586c525b72SLinus Walleijexamples:
596c525b72SLinus Walleij  - |
606c525b72SLinus Walleij    #include <dt-bindings/gpio/gpio.h>
616c525b72SLinus Walleij
626c525b72SLinus Walleij    spi {
63710fa9aaSLinus Walleij      compatible = "spi-gpio";
64710fa9aaSLinus Walleij      sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
65710fa9aaSLinus Walleij      miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
66710fa9aaSLinus Walleij      mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
67710fa9aaSLinus Walleij      cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
68710fa9aaSLinus Walleij      num-chipselects = <1>;
696c525b72SLinus Walleij      #address-cells = <1>;
706c525b72SLinus Walleij      #size-cells = <0>;
716c525b72SLinus Walleij      panel@0 {
726c525b72SLinus Walleij        compatible = "samsung,lms397kf04";
736c525b72SLinus Walleij        spi-max-frequency = <3000000>;
74710fa9aaSLinus Walleij        spi-cpha;
75710fa9aaSLinus Walleij        spi-cpol;
766c525b72SLinus Walleij        reg = <0>;
776c525b72SLinus Walleij        vci-supply = <&lcd_3v0_reg>;
786c525b72SLinus Walleij        vccio-supply = <&lcd_1v8_reg>;
79710fa9aaSLinus Walleij        reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
806c525b72SLinus Walleij        backlight = <&ktd259>;
816c525b72SLinus Walleij
826c525b72SLinus Walleij        port {
836c525b72SLinus Walleij          panel_in: endpoint {
846c525b72SLinus Walleij            remote-endpoint = <&display_out>;
856c525b72SLinus Walleij          };
866c525b72SLinus Walleij        };
876c525b72SLinus Walleij      };
886c525b72SLinus Walleij    };
896c525b72SLinus Walleij
906c525b72SLinus Walleij...
91