xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/samsung,ld9040.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
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
9description: |
10  The panel must obey the rules for a SPI slave device as specified in
11  spi/spi-controller.yaml
12
13maintainers:
14  - Andrzej Hajda <a.hajda@samsung.com>
15
16allOf:
17  - $ref: panel-common.yaml#
18
19properties:
20  compatible:
21    const: samsung,ld9040
22
23  display-timings: true
24  port: true
25  reg: true
26  reset-gpios: true
27
28  vdd3-supply:
29    description: core voltage supply
30
31  vci-supply:
32    description: voltage supply for analog circuits
33
34  power-on-delay:
35    $ref: /schemas/types.yaml#/definitions/uint32
36    description: delay after turning regulators on [ms]
37
38  reset-delay:
39    $ref: /schemas/types.yaml#/definitions/uint32
40    description: delay after reset sequence [ms]
41
42  panel-width-mm:
43    description: physical panel width [mm]
44
45  panel-height-mm:
46    description: physical panel height [mm]
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            #address-cells = <1>;
67            #size-cells = <0>;
68
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>;
80
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            };
98
99            port {
100                lcd_ep: endpoint {
101                    remote-endpoint = <&fimd_dpi_ep>;
102                };
103            };
104        };
105    };
106
107...
108