xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/focaltech,gpt3.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*cb7aa33aSEmmanuel Vadot%YAML 1.2
3*cb7aa33aSEmmanuel Vadot---
4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/focaltech,gpt3.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: Focaltech GPT3 3.0" (640x480 pixels) IPS LCD panel
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotmaintainers:
10*cb7aa33aSEmmanuel Vadot  - Christophe Branchereau <cbranchereau@gmail.com>
11*cb7aa33aSEmmanuel Vadot
12*cb7aa33aSEmmanuel VadotallOf:
13*cb7aa33aSEmmanuel Vadot  - $ref: panel-common.yaml#
14*cb7aa33aSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
15*cb7aa33aSEmmanuel Vadot
16*cb7aa33aSEmmanuel Vadotproperties:
17*cb7aa33aSEmmanuel Vadot  compatible:
18*cb7aa33aSEmmanuel Vadot    const: focaltech,gpt3
19*cb7aa33aSEmmanuel Vadot
20*cb7aa33aSEmmanuel Vadot  reg:
21*cb7aa33aSEmmanuel Vadot    maxItems: 1
22*cb7aa33aSEmmanuel Vadot
23*cb7aa33aSEmmanuel Vadotrequired:
24*cb7aa33aSEmmanuel Vadot  - compatible
25*cb7aa33aSEmmanuel Vadot  - reg
26*cb7aa33aSEmmanuel Vadot  - power-supply
27*cb7aa33aSEmmanuel Vadot  - reset-gpios
28*cb7aa33aSEmmanuel Vadot
29*cb7aa33aSEmmanuel VadotunevaluatedProperties: false
30*cb7aa33aSEmmanuel Vadot
31*cb7aa33aSEmmanuel Vadotexamples:
32*cb7aa33aSEmmanuel Vadot  - |
33*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
34*cb7aa33aSEmmanuel Vadot
35*cb7aa33aSEmmanuel Vadot    spi {
36*cb7aa33aSEmmanuel Vadot        #address-cells = <1>;
37*cb7aa33aSEmmanuel Vadot        #size-cells = <0>;
38*cb7aa33aSEmmanuel Vadot
39*cb7aa33aSEmmanuel Vadot        panel@0 {
40*cb7aa33aSEmmanuel Vadot            compatible = "focaltech,gpt3";
41*cb7aa33aSEmmanuel Vadot            reg = <0>;
42*cb7aa33aSEmmanuel Vadot
43*cb7aa33aSEmmanuel Vadot            spi-max-frequency = <3125000>;
44*cb7aa33aSEmmanuel Vadot
45*cb7aa33aSEmmanuel Vadot            reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
46*cb7aa33aSEmmanuel Vadot
47*cb7aa33aSEmmanuel Vadot            backlight = <&backlight>;
48*cb7aa33aSEmmanuel Vadot            power-supply = <&vcc>;
49*cb7aa33aSEmmanuel Vadot
50*cb7aa33aSEmmanuel Vadot            port {
51*cb7aa33aSEmmanuel Vadot                panel_input: endpoint {
52*cb7aa33aSEmmanuel Vadot                    remote-endpoint = <&panel_output>;
53*cb7aa33aSEmmanuel Vadot                };
54*cb7aa33aSEmmanuel Vadot            };
55*cb7aa33aSEmmanuel Vadot        };
56*cb7aa33aSEmmanuel Vadot    };
57