1 # SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
4 $id: http://devicetree.org/schemas/display/panel/panel-mipi-dbi-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MIPI DBI SPI Panel
10 - Noralf Trønnes <noralf@tronnes.org>
13 This binding is for display panels using a MIPI DBI compatible controller
16 The MIPI Alliance Standard for Display Bus Interface defines the electrical
17 and logical interfaces for display controllers historically used in mobile
18 phones. The standard defines 4 display architecture types and this binding is
19 for type 1 which has full frame memory. There are 3 interface types in the
20 standard and type C is the serial interface.
22 The standard defines the following interface signals for type C:
24 - Vdd: Power supply for display module
25 - Vddi: Logic level supply for interface signals
26 Combined into one in this binding called: power-supply
32 - SDA: Bidrectional in/out
33 - D/CX: Data/command selection, high=data, low=command
34 Called dc-gpios in this binding.
35 - RESX: Reset when low
36 Called reset-gpios in this binding.
38 The type C interface has 3 options:
40 - Option 1: 9-bit mode and D/CX as the 9th bit
41 | Command | the next command or following data |
42 |<0><D7><D6><D5><D4><D3><D2><D1><D0>|<D/CX><D7><D6><D5><D4><D3><D2><D1><D0>|
44 - Option 2: 16-bit mode and D/CX as a 9th bit
46 |<X><X><X><X><X><X><X><D/CX><D7><D6><D5><D4><D3><D2><D1><D0>|
48 - Option 3: 8-bit mode and D/CX as a separate interface line
50 |<D7><D6><D5><D4><D3><D2><D1><D0>|
52 The panel resolution is specified using the panel-timing node properties
53 hactive (width) and vactive (height). The other mandatory panel-timing
54 properties should be set to zero except clock-frequency which can be
55 optionally set to inform about the actual pixel clock frequency.
57 If the panel is wired to the controller at an offset specify this using
58 hback-porch (x-offset) and vback-porch (y-offset).
61 - $ref: panel-common.yaml#
62 - $ref: /schemas/spi/spi-peripheral-props.yaml#
69 - const: panel-mipi-dbi-spi
74 Controller is not readable (ie. Din (MISO on the SPI interface) is not
80 Controller data/command selection (D/CX) in 4-line SPI mode.
81 If not set, the controller is in 3-line SPI mode.
90 unevaluatedProperties: false
94 #include <dt-bindings/gpio/gpio.h>
101 compatible = "sainsmart18", "panel-mipi-dbi-spi";
103 spi-max-frequency = <40000000>;
105 dc-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
106 reset-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
109 backlight = <&backlight>;
119 clock-frequency = <0>;