xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/nxp,ptn3460.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2e67e8565SEmmanuel Vadot%YAML 1.2
3e67e8565SEmmanuel Vadot---
4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/nxp,ptn3460.yaml#
5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6e67e8565SEmmanuel Vadot
7e67e8565SEmmanuel Vadottitle: NXP PTN3460 eDP to LVDS bridge
8e67e8565SEmmanuel Vadot
9e67e8565SEmmanuel Vadotmaintainers:
10e67e8565SEmmanuel Vadot  - Sean Paul <seanpaul@chromium.org>
11e67e8565SEmmanuel Vadot
12e67e8565SEmmanuel Vadotproperties:
13e67e8565SEmmanuel Vadot  compatible:
14e67e8565SEmmanuel Vadot    const: nxp,ptn3460
15e67e8565SEmmanuel Vadot
16e67e8565SEmmanuel Vadot  reg:
17e67e8565SEmmanuel Vadot    description: I2C address of the bridge
18e67e8565SEmmanuel Vadot    maxItems: 1
19e67e8565SEmmanuel Vadot
20e67e8565SEmmanuel Vadot  edid-emulation:
21*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
22e67e8565SEmmanuel Vadot    description:
23e67e8565SEmmanuel Vadot      The EDID emulation entry to use
24e67e8565SEmmanuel Vadot      Value  Resolution  Description
25e67e8565SEmmanuel Vadot        0     1024x768   NXP Generic
26e67e8565SEmmanuel Vadot        1     1920x1080  NXP Generic
27e67e8565SEmmanuel Vadot        2     1920x1080  NXP Generic
28e67e8565SEmmanuel Vadot        3     1600x900   Samsung LTM200KT
29e67e8565SEmmanuel Vadot        4     1920x1080  Samsung LTM230HT
30e67e8565SEmmanuel Vadot        5     1366x768   NXP Generic
31e67e8565SEmmanuel Vadot        6     1600x900   ChiMei M215HGE
32e67e8565SEmmanuel Vadot    enum: [0, 1, 2, 3, 4, 5, 6]
33e67e8565SEmmanuel Vadot
34e67e8565SEmmanuel Vadot  powerdown-gpios:
35e67e8565SEmmanuel Vadot    description: GPIO connected to the PD_N signal.
36e67e8565SEmmanuel Vadot    maxItems: 1
37e67e8565SEmmanuel Vadot
38e67e8565SEmmanuel Vadot  reset-gpios:
39e67e8565SEmmanuel Vadot    description: GPIO connected to the RST_N signal.
40e67e8565SEmmanuel Vadot    maxItems: 1
41e67e8565SEmmanuel Vadot
42e67e8565SEmmanuel Vadot  ports:
43e67e8565SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
44e67e8565SEmmanuel Vadot
45e67e8565SEmmanuel Vadot    properties:
46e67e8565SEmmanuel Vadot      port@0:
47e67e8565SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
48e67e8565SEmmanuel Vadot        description:
49e67e8565SEmmanuel Vadot          Video port for LVDS output
50e67e8565SEmmanuel Vadot
51e67e8565SEmmanuel Vadot      port@1:
52e67e8565SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
53e67e8565SEmmanuel Vadot        description:
54e67e8565SEmmanuel Vadot          Video port for eDP input
55e67e8565SEmmanuel Vadot
56e67e8565SEmmanuel Vadot    required:
57e67e8565SEmmanuel Vadot      - port@0
58e67e8565SEmmanuel Vadot      - port@1
59e67e8565SEmmanuel Vadot
60e67e8565SEmmanuel Vadotrequired:
61e67e8565SEmmanuel Vadot  - compatible
62e67e8565SEmmanuel Vadot  - reg
63e67e8565SEmmanuel Vadot  - edid-emulation
64e67e8565SEmmanuel Vadot  - powerdown-gpios
65e67e8565SEmmanuel Vadot  - reset-gpios
66e67e8565SEmmanuel Vadot  - ports
67e67e8565SEmmanuel Vadot
68e67e8565SEmmanuel VadotadditionalProperties: false
69e67e8565SEmmanuel Vadot
70e67e8565SEmmanuel Vadotexamples:
71e67e8565SEmmanuel Vadot  - |
72e67e8565SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
73e67e8565SEmmanuel Vadot
74*fac71e4eSEmmanuel Vadot    i2c {
75e67e8565SEmmanuel Vadot      #address-cells = <1>;
76e67e8565SEmmanuel Vadot      #size-cells = <0>;
77e67e8565SEmmanuel Vadot
78e67e8565SEmmanuel Vadot      bridge@20 {
79e67e8565SEmmanuel Vadot        compatible = "nxp,ptn3460";
80e67e8565SEmmanuel Vadot        reg = <0x20>;
81e67e8565SEmmanuel Vadot        edid-emulation = <5>;
82e67e8565SEmmanuel Vadot        powerdown-gpios = <&gpy2 5 GPIO_ACTIVE_HIGH>;
83e67e8565SEmmanuel Vadot        reset-gpios = <&gpx1 5 GPIO_ACTIVE_LOW>;
84e67e8565SEmmanuel Vadot
85e67e8565SEmmanuel Vadot        ports {
86e67e8565SEmmanuel Vadot          #address-cells = <1>;
87e67e8565SEmmanuel Vadot          #size-cells = <0>;
88e67e8565SEmmanuel Vadot
89e67e8565SEmmanuel Vadot          port@0 {
90e67e8565SEmmanuel Vadot            reg = <0>;
91e67e8565SEmmanuel Vadot            bridge_out: endpoint {
92e67e8565SEmmanuel Vadot              remote-endpoint = <&panel_in>;
93e67e8565SEmmanuel Vadot            };
94e67e8565SEmmanuel Vadot          };
95e67e8565SEmmanuel Vadot
96e67e8565SEmmanuel Vadot          port@1 {
97e67e8565SEmmanuel Vadot            reg = <1>;
98e67e8565SEmmanuel Vadot            bridge_in: endpoint {
99e67e8565SEmmanuel Vadot              remote-endpoint = <&dp_out>;
100e67e8565SEmmanuel Vadot            };
101e67e8565SEmmanuel Vadot          };
102e67e8565SEmmanuel Vadot        };
103e67e8565SEmmanuel Vadot      };
104e67e8565SEmmanuel Vadot    };
105e67e8565SEmmanuel Vadot
106e67e8565SEmmanuel Vadot...
107