Back to home page

OSCL-LXR

 
 

    


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,lms380kf01.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Samsung LMS380KF01 display panel
0008 
0009 description: The LMS380KF01 is a 480x800 DPI display panel from Samsung Mobile
0010   Displays (SMD) utilizing the WideChips WS2401 display controller. It can be
0011   used with internal or external backlight control.
0012   The panel must obey the rules for a SPI slave device as specified in
0013   spi/spi-controller.yaml
0014 
0015 maintainers:
0016   - Linus Walleij <linus.walleij@linaro.org>
0017 
0018 allOf:
0019   - $ref: panel-common.yaml#
0020 
0021 properties:
0022   compatible:
0023     const: samsung,lms380kf01
0024 
0025   reg: true
0026 
0027   interrupts:
0028     description: provides an optional ESD (electrostatic discharge)
0029       interrupt that signals abnormalities in the display hardware.
0030       This can also be raised for other reasons like erroneous
0031       configuration.
0032     maxItems: 1
0033 
0034   reset-gpios: true
0035 
0036   vci-supply:
0037     description: regulator that supplies the VCI analog voltage
0038       usually around 3.0 V
0039 
0040   vccio-supply:
0041     description: regulator that supplies the VCCIO voltage usually
0042       around 1.8 V
0043 
0044   backlight: true
0045 
0046   spi-cpha: true
0047 
0048   spi-cpol: true
0049 
0050   spi-max-frequency:
0051     maximum: 1200000
0052 
0053   port: true
0054 
0055 required:
0056   - compatible
0057   - reg
0058   - spi-cpha
0059   - spi-cpol
0060   - port
0061 
0062 additionalProperties: false
0063 
0064 examples:
0065   - |
0066     #include <dt-bindings/gpio/gpio.h>
0067     #include <dt-bindings/interrupt-controller/irq.h>
0068 
0069     spi {
0070         compatible = "spi-gpio";
0071         sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
0072         miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
0073         mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
0074         cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
0075         num-chipselects = <1>;
0076         #address-cells = <1>;
0077         #size-cells = <0>;
0078 
0079         panel@0 {
0080             compatible = "samsung,lms380kf01";
0081             spi-max-frequency = <1200000>;
0082             spi-cpha;
0083             spi-cpol;
0084             reg = <0>;
0085             vci-supply = <&lcd_3v0_reg>;
0086             vccio-supply = <&lcd_1v8_reg>;
0087             reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
0088             interrupt-parent = <&gpio>;
0089             interrupts = <5 IRQ_TYPE_EDGE_RISING>;
0090 
0091             port {
0092                 panel_in: endpoint {
0093                     remote-endpoint = <&display_out>;
0094                 };
0095             };
0096         };
0097     };
0098 
0099 ...