xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/jdi,lpm102a188a.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
184943d6fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
284943d6fSEmmanuel Vadot%YAML 1.2
384943d6fSEmmanuel Vadot---
484943d6fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/jdi,lpm102a188a.yaml#
584943d6fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
684943d6fSEmmanuel Vadot
784943d6fSEmmanuel Vadottitle: JDI LPM102A188A 2560x1800 10.2" DSI Panel
884943d6fSEmmanuel Vadot
984943d6fSEmmanuel Vadotmaintainers:
1084943d6fSEmmanuel Vadot  - Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
1184943d6fSEmmanuel Vadot
1284943d6fSEmmanuel Vadotdescription: |
1384943d6fSEmmanuel Vadot  This panel requires a dual-channel DSI host to operate. It supports two modes:
1484943d6fSEmmanuel Vadot  - left-right: each channel drives the left or right half of the screen
1584943d6fSEmmanuel Vadot  - even-odd: each channel drives the even or odd lines of the screen
1684943d6fSEmmanuel Vadot
1784943d6fSEmmanuel Vadot  Each of the DSI channels controls a separate DSI peripheral. The peripheral
1884943d6fSEmmanuel Vadot  driven by the first link (DSI-LINK1) is considered the primary peripheral
1984943d6fSEmmanuel Vadot  and controls the device. The 'link2' property contains a phandle to the
2084943d6fSEmmanuel Vadot  peripheral driven by the second link (DSI-LINK2).
2184943d6fSEmmanuel Vadot
2284943d6fSEmmanuel VadotallOf:
2384943d6fSEmmanuel Vadot  - $ref: panel-common.yaml#
2484943d6fSEmmanuel Vadot
2584943d6fSEmmanuel Vadotproperties:
2684943d6fSEmmanuel Vadot  compatible:
2784943d6fSEmmanuel Vadot    const: jdi,lpm102a188a
2884943d6fSEmmanuel Vadot
29*7d0873ebSEmmanuel Vadot  reg:
30*7d0873ebSEmmanuel Vadot    maxItems: 1
31*7d0873ebSEmmanuel Vadot
3284943d6fSEmmanuel Vadot  enable-gpios: true
3384943d6fSEmmanuel Vadot  reset-gpios: true
3484943d6fSEmmanuel Vadot  power-supply: true
3584943d6fSEmmanuel Vadot  backlight: true
3684943d6fSEmmanuel Vadot
3784943d6fSEmmanuel Vadot  ddi-supply:
3884943d6fSEmmanuel Vadot    description: The regulator that provides IOVCC (1.8V).
3984943d6fSEmmanuel Vadot
4084943d6fSEmmanuel Vadot  link2:
4184943d6fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
4284943d6fSEmmanuel Vadot    description: |
4384943d6fSEmmanuel Vadot      phandle to the DSI peripheral on the secondary link. Note that the
4484943d6fSEmmanuel Vadot      presence of this property marks the containing node as DSI-LINK1.
4584943d6fSEmmanuel Vadot
4684943d6fSEmmanuel Vadotrequired:
4784943d6fSEmmanuel Vadot  - compatible
4884943d6fSEmmanuel Vadot  - reg
4984943d6fSEmmanuel Vadot
5084943d6fSEmmanuel Vadotif:
5184943d6fSEmmanuel Vadot  required:
5284943d6fSEmmanuel Vadot    - link2
5384943d6fSEmmanuel Vadotthen:
5484943d6fSEmmanuel Vadot  required:
5584943d6fSEmmanuel Vadot    - power-supply
5684943d6fSEmmanuel Vadot    - ddi-supply
5784943d6fSEmmanuel Vadot    - enable-gpios
5884943d6fSEmmanuel Vadot    - reset-gpios
5984943d6fSEmmanuel Vadot
6084943d6fSEmmanuel VadotadditionalProperties: false
6184943d6fSEmmanuel Vadot
6284943d6fSEmmanuel Vadotexamples:
6384943d6fSEmmanuel Vadot  - |
6484943d6fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
6584943d6fSEmmanuel Vadot    #include <dt-bindings/gpio/tegra-gpio.h>
6684943d6fSEmmanuel Vadot
6784943d6fSEmmanuel Vadot    dsia: dsi@54300000 {
6884943d6fSEmmanuel Vadot        #address-cells = <1>;
6984943d6fSEmmanuel Vadot        #size-cells = <0>;
7084943d6fSEmmanuel Vadot        reg = <0x0 0x54300000 0x0 0x00040000>;
7184943d6fSEmmanuel Vadot
7284943d6fSEmmanuel Vadot        link2: panel@0 {
7384943d6fSEmmanuel Vadot            compatible = "jdi,lpm102a188a";
7484943d6fSEmmanuel Vadot            reg = <0>;
7584943d6fSEmmanuel Vadot        };
7684943d6fSEmmanuel Vadot    };
7784943d6fSEmmanuel Vadot
7884943d6fSEmmanuel Vadot    dsib: dsi@54400000{
7984943d6fSEmmanuel Vadot        #address-cells = <1>;
8084943d6fSEmmanuel Vadot        #size-cells = <0>;
8184943d6fSEmmanuel Vadot        reg = <0x0 0x54400000 0x0 0x00040000>;
8284943d6fSEmmanuel Vadot        nvidia,ganged-mode = <&dsia>;
8384943d6fSEmmanuel Vadot
8484943d6fSEmmanuel Vadot        link1: panel@0 {
8584943d6fSEmmanuel Vadot            compatible = "jdi,lpm102a188a";
8684943d6fSEmmanuel Vadot            reg = <0>;
8784943d6fSEmmanuel Vadot            power-supply = <&pplcd_vdd>;
8884943d6fSEmmanuel Vadot            ddi-supply = <&pp1800_lcdio>;
8984943d6fSEmmanuel Vadot            enable-gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_HIGH>;
9084943d6fSEmmanuel Vadot            reset-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
9184943d6fSEmmanuel Vadot            link2 = <&link2>;
9284943d6fSEmmanuel Vadot            backlight = <&backlight>;
9384943d6fSEmmanuel Vadot        };
9484943d6fSEmmanuel Vadot    };
9584943d6fSEmmanuel Vadot
9684943d6fSEmmanuel Vadot...
97