xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/himax,hx8394.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2cb7aa33aSEmmanuel Vadot%YAML 1.2
3cb7aa33aSEmmanuel Vadot---
4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/himax,hx8394.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: Himax HX8394 MIPI-DSI LCD panel controller
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Ondrej Jirman <megi@xff.cz>
11cb7aa33aSEmmanuel Vadot  - Javier Martinez Canillas <javierm@redhat.com>
12cb7aa33aSEmmanuel Vadot
13cb7aa33aSEmmanuel Vadotdescription:
14cb7aa33aSEmmanuel Vadot  Device tree bindings for panels based on the Himax HX8394 controller,
15cb7aa33aSEmmanuel Vadot  such as the HannStar HSD060BHW4 720x1440 TFT LCD panel connected with
16cb7aa33aSEmmanuel Vadot  a MIPI-DSI video interface.
17cb7aa33aSEmmanuel Vadot
18cb7aa33aSEmmanuel Vadotproperties:
19cb7aa33aSEmmanuel Vadot  compatible:
20cb7aa33aSEmmanuel Vadot    items:
21cb7aa33aSEmmanuel Vadot      - enum:
22cb7aa33aSEmmanuel Vadot          - hannstar,hsd060bhw4
23*b2d2a78aSEmmanuel Vadot          - microchip,ac40t08a-mipi-panel
248d13bc63SEmmanuel Vadot          - powkiddy,x55-panel
25cb7aa33aSEmmanuel Vadot      - const: himax,hx8394
26cb7aa33aSEmmanuel Vadot
277d0873ebSEmmanuel Vadot  reg:
287d0873ebSEmmanuel Vadot    maxItems: 1
29cb7aa33aSEmmanuel Vadot
30cb7aa33aSEmmanuel Vadot  reset-gpios: true
31cb7aa33aSEmmanuel Vadot
32cb7aa33aSEmmanuel Vadot  backlight: true
33cb7aa33aSEmmanuel Vadot
348d13bc63SEmmanuel Vadot  rotation: true
358d13bc63SEmmanuel Vadot
36cb7aa33aSEmmanuel Vadot  port: true
37cb7aa33aSEmmanuel Vadot
38cb7aa33aSEmmanuel Vadot  vcc-supply:
39cb7aa33aSEmmanuel Vadot    description: Panel power supply
40cb7aa33aSEmmanuel Vadot
41cb7aa33aSEmmanuel Vadot  iovcc-supply:
42cb7aa33aSEmmanuel Vadot    description: I/O voltage supply
43cb7aa33aSEmmanuel Vadot
44cb7aa33aSEmmanuel Vadotrequired:
45cb7aa33aSEmmanuel Vadot  - compatible
46cb7aa33aSEmmanuel Vadot  - reg
47cb7aa33aSEmmanuel Vadot  - backlight
48cb7aa33aSEmmanuel Vadot  - port
49cb7aa33aSEmmanuel Vadot  - vcc-supply
50cb7aa33aSEmmanuel Vadot  - iovcc-supply
51cb7aa33aSEmmanuel Vadot
52cb7aa33aSEmmanuel VadotadditionalProperties: false
53cb7aa33aSEmmanuel Vadot
54*b2d2a78aSEmmanuel VadotallOf:
55*b2d2a78aSEmmanuel Vadot  - $ref: panel-common.yaml#
56*b2d2a78aSEmmanuel Vadot  - if:
57*b2d2a78aSEmmanuel Vadot      not:
58*b2d2a78aSEmmanuel Vadot        properties:
59*b2d2a78aSEmmanuel Vadot          compatible:
60*b2d2a78aSEmmanuel Vadot            enum:
61*b2d2a78aSEmmanuel Vadot              - microchip,ac40t08a-mipi-panel
62*b2d2a78aSEmmanuel Vadot    then:
63*b2d2a78aSEmmanuel Vadot      required:
64*b2d2a78aSEmmanuel Vadot        - reset-gpios
65*b2d2a78aSEmmanuel Vadot
66cb7aa33aSEmmanuel Vadotexamples:
67cb7aa33aSEmmanuel Vadot  - |
68cb7aa33aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
69cb7aa33aSEmmanuel Vadot
70cb7aa33aSEmmanuel Vadot    dsi {
71cb7aa33aSEmmanuel Vadot        #address-cells = <1>;
72cb7aa33aSEmmanuel Vadot        #size-cells = <0>;
73cb7aa33aSEmmanuel Vadot        panel@0 {
74cb7aa33aSEmmanuel Vadot            compatible = "hannstar,hsd060bhw4", "himax,hx8394";
75cb7aa33aSEmmanuel Vadot            reg = <0>;
76cb7aa33aSEmmanuel Vadot            vcc-supply = <&reg_2v8_p>;
77cb7aa33aSEmmanuel Vadot            iovcc-supply = <&reg_1v8_p>;
78cb7aa33aSEmmanuel Vadot            reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
79cb7aa33aSEmmanuel Vadot            backlight = <&backlight>;
80cb7aa33aSEmmanuel Vadot
81cb7aa33aSEmmanuel Vadot            port {
82cb7aa33aSEmmanuel Vadot                mipi_in_panel: endpoint {
83cb7aa33aSEmmanuel Vadot                    remote-endpoint = <&mipi_out_panel>;
84cb7aa33aSEmmanuel Vadot                };
85cb7aa33aSEmmanuel Vadot            };
86cb7aa33aSEmmanuel Vadot        };
87cb7aa33aSEmmanuel Vadot    };
88cb7aa33aSEmmanuel Vadot
89cb7aa33aSEmmanuel Vadot...
90