1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 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 panel 8 9description: The datasheet claims this is based around a display controller 10 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,lms397kf04 22 23 reg: true 24 25 reset-gpios: true 26 27 vci-supply: 28 description: regulator that supplies the VCI analog voltage 29 usually around 3.0 V 30 31 vccio-supply: 32 description: regulator that supplies the VCCIO voltage usually 33 around 1.8 V 34 35 backlight: true 36 37 spi-cpha: true 38 39 spi-cpol: true 40 41 spi-max-frequency: 42 description: inherited as a SPI client node, the datasheet specifies 43 maximum 300 ns minimum cycle which gives around 3 MHz max frequency 44 maximum: 3000000 45 46 port: true 47 48required: 49 - compatible 50 - reg 51 - spi-cpha 52 - spi-cpol 53 - port 54 55unevaluatedProperties: false 56 57examples: 58 - | 59 #include <dt-bindings/gpio/gpio.h> 60 61 spi { 62 compatible = "spi-gpio"; 63 sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 64 miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 65 mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; 66 cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; 67 num-chipselects = <1>; 68 #address-cells = <1>; 69 #size-cells = <0>; 70 panel@0 { 71 compatible = "samsung,lms397kf04"; 72 spi-max-frequency = <3000000>; 73 spi-cpha; 74 spi-cpol; 75 reg = <0>; 76 vci-supply = <&lcd_3v0_reg>; 77 vccio-supply = <&lcd_1v8_reg>; 78 reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>; 79 backlight = <&ktd259>; 80 81 port { 82 panel_in: endpoint { 83 remote-endpoint = <&display_out>; 84 }; 85 }; 86 }; 87 }; 88 89... 90