xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/samsung,lms397kf04.yaml (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
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#
175956d97fSEmmanuel Vadot
185956d97fSEmmanuel Vadotproperties:
195956d97fSEmmanuel Vadot  compatible:
205956d97fSEmmanuel Vadot    const: samsung,lms397kf04
215956d97fSEmmanuel Vadot
225956d97fSEmmanuel Vadot  reg: true
235956d97fSEmmanuel Vadot
245956d97fSEmmanuel Vadot  reset-gpios: true
255956d97fSEmmanuel Vadot
265956d97fSEmmanuel Vadot  vci-supply:
275956d97fSEmmanuel Vadot    description: regulator that supplies the VCI analog voltage
285956d97fSEmmanuel Vadot      usually around 3.0 V
295956d97fSEmmanuel Vadot
305956d97fSEmmanuel Vadot  vccio-supply:
315956d97fSEmmanuel Vadot    description: regulator that supplies the VCCIO voltage usually
325956d97fSEmmanuel Vadot      around 1.8 V
335956d97fSEmmanuel Vadot
345956d97fSEmmanuel Vadot  backlight: true
355956d97fSEmmanuel Vadot
36*354d7675SEmmanuel Vadot  spi-cpha: true
37*354d7675SEmmanuel Vadot
38*354d7675SEmmanuel Vadot  spi-cpol: true
39*354d7675SEmmanuel Vadot
405956d97fSEmmanuel Vadot  spi-max-frequency:
415956d97fSEmmanuel Vadot    description: inherited as a SPI client node, the datasheet specifies
425956d97fSEmmanuel Vadot      maximum 300 ns minimum cycle which gives around 3 MHz max frequency
435956d97fSEmmanuel Vadot    maximum: 3000000
445956d97fSEmmanuel Vadot
455956d97fSEmmanuel Vadot  port: true
465956d97fSEmmanuel Vadot
475956d97fSEmmanuel Vadotrequired:
485956d97fSEmmanuel Vadot  - compatible
495956d97fSEmmanuel Vadot  - reg
50*354d7675SEmmanuel Vadot  - spi-cpha
51*354d7675SEmmanuel Vadot  - spi-cpol
52*354d7675SEmmanuel Vadot  - port
535956d97fSEmmanuel Vadot
545956d97fSEmmanuel VadotadditionalProperties: false
555956d97fSEmmanuel Vadot
565956d97fSEmmanuel Vadotexamples:
575956d97fSEmmanuel Vadot  - |
585956d97fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
595956d97fSEmmanuel Vadot
605956d97fSEmmanuel Vadot    spi {
61*354d7675SEmmanuel Vadot      compatible = "spi-gpio";
62*354d7675SEmmanuel Vadot      sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
63*354d7675SEmmanuel Vadot      miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
64*354d7675SEmmanuel Vadot      mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
65*354d7675SEmmanuel Vadot      cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
66*354d7675SEmmanuel Vadot      num-chipselects = <1>;
675956d97fSEmmanuel Vadot      #address-cells = <1>;
685956d97fSEmmanuel Vadot      #size-cells = <0>;
695956d97fSEmmanuel Vadot      panel@0 {
705956d97fSEmmanuel Vadot        compatible = "samsung,lms397kf04";
715956d97fSEmmanuel Vadot        spi-max-frequency = <3000000>;
72*354d7675SEmmanuel Vadot        spi-cpha;
73*354d7675SEmmanuel Vadot        spi-cpol;
745956d97fSEmmanuel Vadot        reg = <0>;
755956d97fSEmmanuel Vadot        vci-supply = <&lcd_3v0_reg>;
765956d97fSEmmanuel Vadot        vccio-supply = <&lcd_1v8_reg>;
77*354d7675SEmmanuel Vadot        reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
785956d97fSEmmanuel Vadot        backlight = <&ktd259>;
795956d97fSEmmanuel Vadot
805956d97fSEmmanuel Vadot        port {
815956d97fSEmmanuel Vadot          panel_in: endpoint {
825956d97fSEmmanuel Vadot            remote-endpoint = <&display_out>;
835956d97fSEmmanuel Vadot          };
845956d97fSEmmanuel Vadot        };
855956d97fSEmmanuel Vadot      };
865956d97fSEmmanuel Vadot    };
875956d97fSEmmanuel Vadot
885956d97fSEmmanuel Vadot...
89