91 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/display/panel/samsung,lms397kf04.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Samsung LMS397KF04 display panel8 9description: The datasheet claims this is based around a display controller10 named DB7430 with a separate backlight controller.11 12maintainers:13 - Linus Walleij <linus.walleij@linaro.org>14 15allOf:16 - $ref: panel-common.yaml#17 - $ref: /schemas/spi/spi-peripheral-props.yaml#18 19properties:20 compatible:21 const: samsung,lms397kf0422 23 reg:24 maxItems: 125 26 reset-gpios: true27 28 vci-supply:29 description: regulator that supplies the VCI analog voltage30 usually around 3.0 V31 32 vccio-supply:33 description: regulator that supplies the VCCIO voltage usually34 around 1.8 V35 36 backlight: true37 38 spi-cpha: true39 40 spi-cpol: true41 42 spi-max-frequency:43 description: inherited as a SPI client node, the datasheet specifies44 maximum 300 ns minimum cycle which gives around 3 MHz max frequency45 maximum: 300000046 47 port: true48 49required:50 - compatible51 - reg52 - spi-cpha53 - spi-cpol54 - port55 56unevaluatedProperties: false57 58examples:59 - |60 #include <dt-bindings/gpio/gpio.h>61 62 spi {63 compatible = "spi-gpio";64 sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;65 miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;66 mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;67 cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;68 num-chipselects = <1>;69 #address-cells = <1>;70 #size-cells = <0>;71 panel@0 {72 compatible = "samsung,lms397kf04";73 spi-max-frequency = <3000000>;74 spi-cpha;75 spi-cpol;76 reg = <0>;77 vci-supply = <&lcd_3v0_reg>;78 vccio-supply = <&lcd_1v8_reg>;79 reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;80 backlight = <&ktd259>;81 82 port {83 panel_in: endpoint {84 remote-endpoint = <&display_out>;85 };86 };87 };88 };89 90...91