1f82ff130SLinus Walleij# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2f82ff130SLinus Walleij%YAML 1.2 3f82ff130SLinus Walleij--- 4f82ff130SLinus Walleij$id: http://devicetree.org/schemas/display/panel/samsung,lms380kf01.yaml# 5f82ff130SLinus Walleij$schema: http://devicetree.org/meta-schemas/core.yaml# 6f82ff130SLinus Walleij 7f82ff130SLinus Walleijtitle: Samsung LMS380KF01 display panel 8f82ff130SLinus Walleij 9f82ff130SLinus Walleijdescription: The LMS380KF01 is a 480x800 DPI display panel from Samsung Mobile 10f82ff130SLinus Walleij Displays (SMD) utilizing the WideChips WS2401 display controller. It can be 11f82ff130SLinus Walleij used with internal or external backlight control. 12f82ff130SLinus Walleij 13f82ff130SLinus Walleijmaintainers: 14f82ff130SLinus Walleij - Linus Walleij <linus.walleij@linaro.org> 15f82ff130SLinus Walleij 16f82ff130SLinus WalleijallOf: 17f82ff130SLinus Walleij - $ref: panel-common.yaml# 185b4248bfSKrzysztof Kozlowski - $ref: /schemas/spi/spi-peripheral-props.yaml# 19f82ff130SLinus Walleij 20f82ff130SLinus Walleijproperties: 21f82ff130SLinus Walleij compatible: 22f82ff130SLinus Walleij const: samsung,lms380kf01 23f82ff130SLinus Walleij 24*6b2358ffSKrzysztof Kozlowski reg: 25*6b2358ffSKrzysztof Kozlowski maxItems: 1 26f82ff130SLinus Walleij 27f82ff130SLinus Walleij interrupts: 28f82ff130SLinus Walleij description: provides an optional ESD (electrostatic discharge) 29f82ff130SLinus Walleij interrupt that signals abnormalities in the display hardware. 30f82ff130SLinus Walleij This can also be raised for other reasons like erroneous 31f82ff130SLinus Walleij configuration. 32f82ff130SLinus Walleij maxItems: 1 33f82ff130SLinus Walleij 34f82ff130SLinus Walleij reset-gpios: true 35f82ff130SLinus Walleij 36f82ff130SLinus Walleij vci-supply: 37f82ff130SLinus Walleij description: regulator that supplies the VCI analog voltage 38f82ff130SLinus Walleij usually around 3.0 V 39f82ff130SLinus Walleij 40f82ff130SLinus Walleij vccio-supply: 41f82ff130SLinus Walleij description: regulator that supplies the VCCIO voltage usually 42f82ff130SLinus Walleij around 1.8 V 43f82ff130SLinus Walleij 44f82ff130SLinus Walleij backlight: true 45f82ff130SLinus Walleij 46f82ff130SLinus Walleij spi-cpha: true 47f82ff130SLinus Walleij 48f82ff130SLinus Walleij spi-cpol: true 49f82ff130SLinus Walleij 50f82ff130SLinus Walleij spi-max-frequency: 51f82ff130SLinus Walleij maximum: 1200000 52f82ff130SLinus Walleij 53f82ff130SLinus Walleij port: true 54f82ff130SLinus Walleij 55f82ff130SLinus Walleijrequired: 56f82ff130SLinus Walleij - compatible 57f82ff130SLinus Walleij - reg 58f82ff130SLinus Walleij - spi-cpha 59f82ff130SLinus Walleij - spi-cpol 60f82ff130SLinus Walleij - port 61f82ff130SLinus Walleij 625b4248bfSKrzysztof KozlowskiunevaluatedProperties: false 63f82ff130SLinus Walleij 64f82ff130SLinus Walleijexamples: 65f82ff130SLinus Walleij - | 66f82ff130SLinus Walleij #include <dt-bindings/gpio/gpio.h> 67f82ff130SLinus Walleij #include <dt-bindings/interrupt-controller/irq.h> 68f82ff130SLinus Walleij 69f82ff130SLinus Walleij spi { 70f82ff130SLinus Walleij compatible = "spi-gpio"; 71f82ff130SLinus Walleij sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 72f82ff130SLinus Walleij miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 73f82ff130SLinus Walleij mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; 74f82ff130SLinus Walleij cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; 75f82ff130SLinus Walleij num-chipselects = <1>; 76f82ff130SLinus Walleij #address-cells = <1>; 77f82ff130SLinus Walleij #size-cells = <0>; 78f82ff130SLinus Walleij 79f82ff130SLinus Walleij panel@0 { 80f82ff130SLinus Walleij compatible = "samsung,lms380kf01"; 81f82ff130SLinus Walleij spi-max-frequency = <1200000>; 82f82ff130SLinus Walleij spi-cpha; 83f82ff130SLinus Walleij spi-cpol; 84f82ff130SLinus Walleij reg = <0>; 85f82ff130SLinus Walleij vci-supply = <&lcd_3v0_reg>; 86f82ff130SLinus Walleij vccio-supply = <&lcd_1v8_reg>; 87f82ff130SLinus Walleij reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>; 88f82ff130SLinus Walleij interrupt-parent = <&gpio>; 89f82ff130SLinus Walleij interrupts = <5 IRQ_TYPE_EDGE_RISING>; 90f82ff130SLinus Walleij 91f82ff130SLinus Walleij port { 92f82ff130SLinus Walleij panel_in: endpoint { 93f82ff130SLinus Walleij remote-endpoint = <&display_out>; 94f82ff130SLinus Walleij }; 95f82ff130SLinus Walleij }; 96f82ff130SLinus Walleij }; 97f82ff130SLinus Walleij }; 98f82ff130SLinus Walleij 99f82ff130SLinus Walleij... 100