xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/samsung,lms397kf04.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/samsung,lms397kf04.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: Samsung LMS397KF04 display panel
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotdescription: The datasheet claims this is based around a display controller
105956d97fSEmmanuel Vadot  named DB7430 with a separate backlight controller.
115956d97fSEmmanuel Vadot
125956d97fSEmmanuel Vadotmaintainers:
135956d97fSEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
145956d97fSEmmanuel Vadot
155956d97fSEmmanuel VadotallOf:
165956d97fSEmmanuel Vadot  - $ref: panel-common.yaml#
178bab661aSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
185956d97fSEmmanuel Vadot
195956d97fSEmmanuel Vadotproperties:
205956d97fSEmmanuel Vadot  compatible:
215956d97fSEmmanuel Vadot    const: samsung,lms397kf04
225956d97fSEmmanuel Vadot
23*7d0873ebSEmmanuel Vadot  reg:
24*7d0873ebSEmmanuel Vadot    maxItems: 1
255956d97fSEmmanuel Vadot
265956d97fSEmmanuel Vadot  reset-gpios: true
275956d97fSEmmanuel Vadot
285956d97fSEmmanuel Vadot  vci-supply:
295956d97fSEmmanuel Vadot    description: regulator that supplies the VCI analog voltage
305956d97fSEmmanuel Vadot      usually around 3.0 V
315956d97fSEmmanuel Vadot
325956d97fSEmmanuel Vadot  vccio-supply:
335956d97fSEmmanuel Vadot    description: regulator that supplies the VCCIO voltage usually
345956d97fSEmmanuel Vadot      around 1.8 V
355956d97fSEmmanuel Vadot
365956d97fSEmmanuel Vadot  backlight: true
375956d97fSEmmanuel Vadot
38354d7675SEmmanuel Vadot  spi-cpha: true
39354d7675SEmmanuel Vadot
40354d7675SEmmanuel Vadot  spi-cpol: true
41354d7675SEmmanuel Vadot
425956d97fSEmmanuel Vadot  spi-max-frequency:
435956d97fSEmmanuel Vadot    description: inherited as a SPI client node, the datasheet specifies
445956d97fSEmmanuel Vadot      maximum 300 ns minimum cycle which gives around 3 MHz max frequency
455956d97fSEmmanuel Vadot    maximum: 3000000
465956d97fSEmmanuel Vadot
475956d97fSEmmanuel Vadot  port: true
485956d97fSEmmanuel Vadot
495956d97fSEmmanuel Vadotrequired:
505956d97fSEmmanuel Vadot  - compatible
515956d97fSEmmanuel Vadot  - reg
52354d7675SEmmanuel Vadot  - spi-cpha
53354d7675SEmmanuel Vadot  - spi-cpol
54354d7675SEmmanuel Vadot  - port
555956d97fSEmmanuel Vadot
568bab661aSEmmanuel VadotunevaluatedProperties: false
575956d97fSEmmanuel Vadot
585956d97fSEmmanuel Vadotexamples:
595956d97fSEmmanuel Vadot  - |
605956d97fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
615956d97fSEmmanuel Vadot
625956d97fSEmmanuel Vadot    spi {
63354d7675SEmmanuel Vadot      compatible = "spi-gpio";
64354d7675SEmmanuel Vadot      sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
65354d7675SEmmanuel Vadot      miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
66354d7675SEmmanuel Vadot      mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
67354d7675SEmmanuel Vadot      cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
68354d7675SEmmanuel Vadot      num-chipselects = <1>;
695956d97fSEmmanuel Vadot      #address-cells = <1>;
705956d97fSEmmanuel Vadot      #size-cells = <0>;
715956d97fSEmmanuel Vadot      panel@0 {
725956d97fSEmmanuel Vadot        compatible = "samsung,lms397kf04";
735956d97fSEmmanuel Vadot        spi-max-frequency = <3000000>;
74354d7675SEmmanuel Vadot        spi-cpha;
75354d7675SEmmanuel Vadot        spi-cpol;
765956d97fSEmmanuel Vadot        reg = <0>;
775956d97fSEmmanuel Vadot        vci-supply = <&lcd_3v0_reg>;
785956d97fSEmmanuel Vadot        vccio-supply = <&lcd_1v8_reg>;
79354d7675SEmmanuel Vadot        reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
805956d97fSEmmanuel Vadot        backlight = <&ktd259>;
815956d97fSEmmanuel Vadot
825956d97fSEmmanuel Vadot        port {
835956d97fSEmmanuel Vadot          panel_in: endpoint {
845956d97fSEmmanuel Vadot            remote-endpoint = <&display_out>;
855956d97fSEmmanuel Vadot          };
865956d97fSEmmanuel Vadot        };
875956d97fSEmmanuel Vadot      };
885956d97fSEmmanuel Vadot    };
895956d97fSEmmanuel Vadot
905956d97fSEmmanuel Vadot...
91