WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / display / panel / samsung,ld9040.yaml
blob060ee27a4749ef49134ee718f809fa7b2e8bc842
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/display/panel/samsung,ld9040.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus
9 description: |
10   The panel must obey the rules for a SPI slave device as specified in
11   spi/spi-controller.yaml
13 maintainers:
14   - Andrzej Hajda <a.hajda@samsung.com>
16 allOf:
17   - $ref: panel-common.yaml#
19 properties:
20   compatible:
21     const: samsung,ld9040
23   display-timings: true
24   port: true
25   reg: true
26   reset-gpios: true
28   vdd3-supply:
29     description: core voltage supply
31   vci-supply:
32     description: voltage supply for analog circuits
34   power-on-delay:
35     $ref: /schemas/types.yaml#/definitions/uint32
36     description: delay after turning regulators on [ms]
38   reset-delay:
39     $ref: /schemas/types.yaml#/definitions/uint32
40     description: delay after reset sequence [ms]
42   panel-width-mm:
43     description: physical panel width [mm]
45   panel-height-mm:
46     description: physical panel height [mm]
48 required:
49   - compatible
50   - reg
51   - vdd3-supply
52   - vci-supply
53   - reset-gpios
54   - display-timings
56 unevaluatedProperties: false
58 examples:
59   - |
60     spi {
61         #address-cells = <1>;
62         #size-cells = <0>;
64         lcd@0 {
65             compatible = "samsung,ld9040";
66             #address-cells = <1>;
67             #size-cells = <0>;
69             reg = <0>;
70             vdd3-supply = <&ldo7_reg>;
71             vci-supply = <&ldo17_reg>;
72             reset-gpios = <&gpy4 5 0>;
73             spi-max-frequency = <1200000>;
74             spi-cpol;
75             spi-cpha;
76             power-on-delay = <10>;
77             reset-delay = <10>;
78             panel-width-mm = <90>;
79             panel-height-mm = <154>;
81             display-timings {
82                 timing {
83                     clock-frequency = <23492370>;
84                     hactive = <480>;
85                     vactive = <800>;
86                     hback-porch = <16>;
87                     hfront-porch = <16>;
88                     vback-porch = <2>;
89                     vfront-porch = <28>;
90                     hsync-len = <2>;
91                     vsync-len = <1>;
92                     hsync-active = <0>;
93                     vsync-active = <0>;
94                     de-active = <0>;
95                     pixelclk-active = <0>;
96                 };
97             };
99             port {
100                 lcd_ep: endpoint {
101                     remote-endpoint = <&fimd_dpi_ep>;
102                 };
103             };
104         };
105     };