0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/panel/samsung,lms397kf04.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Samsung LMS397KF04 display panel
0008
0009 description: The datasheet claims this is based around a display controller
0010 named DB7430 with a separate backlight controller.
0011
0012 maintainers:
0013 - Linus Walleij <linus.walleij@linaro.org>
0014
0015 allOf:
0016 - $ref: panel-common.yaml#
0017
0018 properties:
0019 compatible:
0020 const: samsung,lms397kf04
0021
0022 reg: true
0023
0024 reset-gpios: true
0025
0026 vci-supply:
0027 description: regulator that supplies the VCI analog voltage
0028 usually around 3.0 V
0029
0030 vccio-supply:
0031 description: regulator that supplies the VCCIO voltage usually
0032 around 1.8 V
0033
0034 backlight: true
0035
0036 spi-cpha: true
0037
0038 spi-cpol: true
0039
0040 spi-max-frequency:
0041 description: inherited as a SPI client node, the datasheet specifies
0042 maximum 300 ns minimum cycle which gives around 3 MHz max frequency
0043 maximum: 3000000
0044
0045 port: true
0046
0047 required:
0048 - compatible
0049 - reg
0050 - spi-cpha
0051 - spi-cpol
0052 - port
0053
0054 additionalProperties: false
0055
0056 examples:
0057 - |
0058 #include <dt-bindings/gpio/gpio.h>
0059
0060 spi {
0061 compatible = "spi-gpio";
0062 sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
0063 miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
0064 mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
0065 cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
0066 num-chipselects = <1>;
0067 #address-cells = <1>;
0068 #size-cells = <0>;
0069 panel@0 {
0070 compatible = "samsung,lms397kf04";
0071 spi-max-frequency = <3000000>;
0072 spi-cpha;
0073 spi-cpol;
0074 reg = <0>;
0075 vci-supply = <&lcd_3v0_reg>;
0076 vccio-supply = <&lcd_1v8_reg>;
0077 reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
0078 backlight = <&ktd259>;
0079
0080 port {
0081 panel_in: endpoint {
0082 remote-endpoint = <&display_out>;
0083 };
0084 };
0085 };
0086 };
0087
0088 ...