xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/boe,th101mb31ig002-28a.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
101950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
201950c46SEmmanuel Vadot%YAML 1.2
301950c46SEmmanuel Vadot---
401950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/boe,th101mb31ig002-28a.yaml#
501950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
601950c46SEmmanuel Vadot
701950c46SEmmanuel Vadottitle: BOE TH101MB31IG002-28A WXGA DSI Display Panel
801950c46SEmmanuel Vadot
901950c46SEmmanuel Vadotmaintainers:
1001950c46SEmmanuel Vadot  - Manuel Traut <manut@mecka.net>
1101950c46SEmmanuel Vadot
1201950c46SEmmanuel Vadotproperties:
1301950c46SEmmanuel Vadot  compatible:
1401950c46SEmmanuel Vadot    enum:
1501950c46SEmmanuel Vadot        # BOE TH101MB31IG002-28A 10.1" WXGA TFT LCD panel
1601950c46SEmmanuel Vadot      - boe,th101mb31ig002-28a
17*b2d2a78aSEmmanuel Vadot        # The Starry-er88577 is a 10.1" WXGA TFT-LCD panel
18*b2d2a78aSEmmanuel Vadot      - starry,er88577
1901950c46SEmmanuel Vadot
207d0873ebSEmmanuel Vadot  reg:
217d0873ebSEmmanuel Vadot    maxItems: 1
227d0873ebSEmmanuel Vadot
2301950c46SEmmanuel Vadot  backlight: true
2401950c46SEmmanuel Vadot  enable-gpios: true
25*b2d2a78aSEmmanuel Vadot  reset-gpios: true
2601950c46SEmmanuel Vadot  power-supply: true
2701950c46SEmmanuel Vadot  port: true
2801950c46SEmmanuel Vadot  rotation: true
2901950c46SEmmanuel Vadot
3001950c46SEmmanuel Vadotrequired:
3101950c46SEmmanuel Vadot  - compatible
3201950c46SEmmanuel Vadot  - reg
3301950c46SEmmanuel Vadot  - enable-gpios
3401950c46SEmmanuel Vadot  - power-supply
3501950c46SEmmanuel Vadot
36*b2d2a78aSEmmanuel VadotallOf:
37*b2d2a78aSEmmanuel Vadot  - $ref: panel-common.yaml#
38*b2d2a78aSEmmanuel Vadot  - if:
39*b2d2a78aSEmmanuel Vadot      properties:
40*b2d2a78aSEmmanuel Vadot        compatible:
41*b2d2a78aSEmmanuel Vadot          # The Starry-er88577 is a 10.1" WXGA TFT-LCD panel
42*b2d2a78aSEmmanuel Vadot          const: starry,er88577
43*b2d2a78aSEmmanuel Vadot    then:
44*b2d2a78aSEmmanuel Vadot      properties:
45*b2d2a78aSEmmanuel Vadot        reset-gpios: false
46*b2d2a78aSEmmanuel Vadot    else:
47*b2d2a78aSEmmanuel Vadot      required:
48*b2d2a78aSEmmanuel Vadot        - reset-gpios
49*b2d2a78aSEmmanuel Vadot
5001950c46SEmmanuel VadotadditionalProperties: false
5101950c46SEmmanuel Vadot
5201950c46SEmmanuel Vadotexamples:
5301950c46SEmmanuel Vadot  - |
5401950c46SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
5501950c46SEmmanuel Vadot
5601950c46SEmmanuel Vadot    dsi {
5701950c46SEmmanuel Vadot        #address-cells = <1>;
5801950c46SEmmanuel Vadot        #size-cells = <0>;
5901950c46SEmmanuel Vadot        panel@0 {
6001950c46SEmmanuel Vadot            compatible = "boe,th101mb31ig002-28a";
6101950c46SEmmanuel Vadot            reg = <0>;
6201950c46SEmmanuel Vadot            backlight = <&backlight_lcd0>;
6301950c46SEmmanuel Vadot            enable-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
64*b2d2a78aSEmmanuel Vadot            reset-gpios = <&gpio 55 GPIO_ACTIVE_LOW>;
6501950c46SEmmanuel Vadot            rotation = <90>;
6601950c46SEmmanuel Vadot            power-supply = <&vcc_3v3>;
6701950c46SEmmanuel Vadot            port {
6801950c46SEmmanuel Vadot                panel_in_dsi: endpoint {
6901950c46SEmmanuel Vadot                    remote-endpoint = <&dsi_out_con>;
7001950c46SEmmanuel Vadot                };
7101950c46SEmmanuel Vadot            };
7201950c46SEmmanuel Vadot        };
7301950c46SEmmanuel Vadot    };
7401950c46SEmmanuel Vadot
7501950c46SEmmanuel Vadot...
76