xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/samsung,ld9040.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
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#
6
7title: Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus
8
9maintainers:
10  - Andrzej Hajda <a.hajda@samsung.com>
11
12allOf:
13  - $ref: panel-common.yaml#
14  - $ref: /schemas/spi/spi-peripheral-props.yaml#
15
16properties:
17  compatible:
18    const: samsung,ld9040
19
20  display-timings: true
21  port: true
22  reg: true
23  reset-gpios: true
24
25  vdd3-supply:
26    description: core voltage supply
27
28  vci-supply:
29    description: voltage supply for analog circuits
30
31  power-on-delay:
32    $ref: /schemas/types.yaml#/definitions/uint32
33    description: delay after turning regulators on [ms]
34
35  reset-delay:
36    $ref: /schemas/types.yaml#/definitions/uint32
37    description: delay after reset sequence [ms]
38
39  panel-width-mm:
40    description: physical panel width [mm]
41
42  panel-height-mm:
43    description: physical panel height [mm]
44
45  spi-cpha: true
46  spi-cpol: true
47
48required:
49  - compatible
50  - reg
51  - vdd3-supply
52  - vci-supply
53  - reset-gpios
54  - display-timings
55
56unevaluatedProperties: false
57
58examples:
59  - |
60    spi {
61        #address-cells = <1>;
62        #size-cells = <0>;
63
64        lcd@0 {
65            compatible = "samsung,ld9040";
66
67            reg = <0>;
68            vdd3-supply = <&ldo7_reg>;
69            vci-supply = <&ldo17_reg>;
70            reset-gpios = <&gpy4 5 0>;
71            spi-max-frequency = <1200000>;
72            spi-cpol;
73            spi-cpha;
74            power-on-delay = <10>;
75            reset-delay = <10>;
76            panel-width-mm = <90>;
77            panel-height-mm = <154>;
78
79            display-timings {
80                timing {
81                    clock-frequency = <23492370>;
82                    hactive = <480>;
83                    vactive = <800>;
84                    hback-porch = <16>;
85                    hfront-porch = <16>;
86                    vback-porch = <2>;
87                    vfront-porch = <28>;
88                    hsync-len = <2>;
89                    vsync-len = <1>;
90                    hsync-active = <0>;
91                    vsync-active = <0>;
92                    de-active = <0>;
93                    pixelclk-active = <0>;
94                };
95            };
96
97            port {
98                lcd_ep: endpoint {
99                    remote-endpoint = <&fimd_dpi_ep>;
100                };
101            };
102        };
103    };
104
105...
106