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,s6d27a1.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Samsung S6D27A1 display panel
0008 
0009 description: The S6D27A1 is a 480x800 DPI display panel from Samsung Mobile
0010   Displays (SMD). The panel must obey the rules for a SPI slave device
0011   as specified in spi/spi-controller.yaml
0012 
0013 maintainers:
0014   - Markuss Broks <markuss.broks@gmail.com>
0015 
0016 allOf:
0017   - $ref: panel-common.yaml#
0018 
0019 properties:
0020   compatible:
0021     const: samsung,s6d27a1
0022 
0023   reg: true
0024 
0025   interrupts:
0026     description: provides an optional ESD (electrostatic discharge)
0027       interrupt that signals abnormalities in the display hardware.
0028       This can also be raised for other reasons like erroneous
0029       configuration.
0030     maxItems: 1
0031 
0032   reset-gpios: true
0033 
0034   vci-supply:
0035     description: regulator that supplies the VCI analog voltage
0036       usually around 3.0 V
0037 
0038   vccio-supply:
0039     description: regulator that supplies the VCCIO voltage usually
0040       around 1.8 V
0041 
0042   backlight: true
0043 
0044   spi-cpha: true
0045 
0046   spi-cpol: true
0047 
0048   spi-max-frequency:
0049     maximum: 1200000
0050 
0051   port: true
0052 
0053 required:
0054   - compatible
0055   - reg
0056   - vci-supply
0057   - vccio-supply
0058   - spi-cpha
0059   - spi-cpol
0060   - port
0061 
0062 unevaluatedProperties: 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         panel@0 {
0079             compatible = "samsung,s6d27a1";
0080             spi-max-frequency = <1200000>;
0081             spi-cpha;
0082             spi-cpol;
0083             reg = <0>;
0084             vci-supply = <&lcd_3v0_reg>;
0085             vccio-supply = <&lcd_1v8_reg>;
0086             reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
0087             interrupt-parent = <&gpio>;
0088             interrupts = <5 IRQ_TYPE_EDGE_RISING>;
0089 
0090             port {
0091                 panel_in: endpoint {
0092                     remote-endpoint = <&display_out>;
0093                 };
0094             };
0095         };
0096     };
0097 
0098 ...