xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/ti,sn65dsi83.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: SN65DSI83 and SN65DSI84 DSI to LVDS bridge chip
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Marek Vasut <marex@denx.de>
115956d97fSEmmanuel Vadot
125956d97fSEmmanuel Vadotdescription: |
135956d97fSEmmanuel Vadot  Texas Instruments SN65DSI83 1x Single-link MIPI DSI
145956d97fSEmmanuel Vadot  to 1x Single-link LVDS
155956d97fSEmmanuel Vadot  https://www.ti.com/lit/gpn/sn65dsi83
165956d97fSEmmanuel Vadot  Texas Instruments SN65DSI84 1x Single-link MIPI DSI
175956d97fSEmmanuel Vadot  to 1x Dual-link or 2x Single-link LVDS
185956d97fSEmmanuel Vadot  https://www.ti.com/lit/gpn/sn65dsi84
195956d97fSEmmanuel Vadot
205956d97fSEmmanuel Vadotproperties:
215956d97fSEmmanuel Vadot  compatible:
225956d97fSEmmanuel Vadot    enum:
235956d97fSEmmanuel Vadot      - ti,sn65dsi83
245956d97fSEmmanuel Vadot      - ti,sn65dsi84
255956d97fSEmmanuel Vadot
265956d97fSEmmanuel Vadot  reg:
275956d97fSEmmanuel Vadot    enum:
285956d97fSEmmanuel Vadot      - 0x2c
295956d97fSEmmanuel Vadot      - 0x2d
305956d97fSEmmanuel Vadot
315956d97fSEmmanuel Vadot  enable-gpios:
325956d97fSEmmanuel Vadot    maxItems: 1
335956d97fSEmmanuel Vadot    description: GPIO specifier for bridge_en pin (active high).
345956d97fSEmmanuel Vadot
35*c9ccf3a3SEmmanuel Vadot  vcc-supply:
36*c9ccf3a3SEmmanuel Vadot    description: A 1.8V power supply (see regulator/regulator.yaml).
37*c9ccf3a3SEmmanuel Vadot
385956d97fSEmmanuel Vadot  ports:
395956d97fSEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
405956d97fSEmmanuel Vadot
415956d97fSEmmanuel Vadot    properties:
425956d97fSEmmanuel Vadot      port@0:
43354d7675SEmmanuel Vadot        $ref: /schemas/graph.yaml#/$defs/port-base
44354d7675SEmmanuel Vadot        unevaluatedProperties: false
455956d97fSEmmanuel Vadot        description: Video port for MIPI DSI Channel-A input
465956d97fSEmmanuel Vadot
475956d97fSEmmanuel Vadot        properties:
485956d97fSEmmanuel Vadot          endpoint:
495956d97fSEmmanuel Vadot            $ref: /schemas/media/video-interfaces.yaml#
505956d97fSEmmanuel Vadot            unevaluatedProperties: false
515956d97fSEmmanuel Vadot
525956d97fSEmmanuel Vadot            properties:
535956d97fSEmmanuel Vadot              data-lanes:
545956d97fSEmmanuel Vadot                description: array of physical DSI data lane indexes.
555956d97fSEmmanuel Vadot                minItems: 1
565956d97fSEmmanuel Vadot                items:
575956d97fSEmmanuel Vadot                  - const: 1
585956d97fSEmmanuel Vadot                  - const: 2
595956d97fSEmmanuel Vadot                  - const: 3
605956d97fSEmmanuel Vadot                  - const: 4
615956d97fSEmmanuel Vadot
625956d97fSEmmanuel Vadot      port@1:
63354d7675SEmmanuel Vadot        $ref: /schemas/graph.yaml#/$defs/port-base
64354d7675SEmmanuel Vadot        unevaluatedProperties: false
655956d97fSEmmanuel Vadot        description: Video port for MIPI DSI Channel-B input
665956d97fSEmmanuel Vadot
675956d97fSEmmanuel Vadot        properties:
685956d97fSEmmanuel Vadot          endpoint:
695956d97fSEmmanuel Vadot            $ref: /schemas/media/video-interfaces.yaml#
705956d97fSEmmanuel Vadot            unevaluatedProperties: false
715956d97fSEmmanuel Vadot
725956d97fSEmmanuel Vadot            properties:
735956d97fSEmmanuel Vadot              data-lanes:
745956d97fSEmmanuel Vadot                description: array of physical DSI data lane indexes.
755956d97fSEmmanuel Vadot                minItems: 1
765956d97fSEmmanuel Vadot                items:
775956d97fSEmmanuel Vadot                  - const: 1
785956d97fSEmmanuel Vadot                  - const: 2
795956d97fSEmmanuel Vadot                  - const: 3
805956d97fSEmmanuel Vadot                  - const: 4
815956d97fSEmmanuel Vadot
825956d97fSEmmanuel Vadot      port@2:
835956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
845956d97fSEmmanuel Vadot        description: Video port for LVDS Channel-A output (panel or bridge).
855956d97fSEmmanuel Vadot
865956d97fSEmmanuel Vadot      port@3:
875956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
885956d97fSEmmanuel Vadot        description: Video port for LVDS Channel-B output (panel or bridge).
895956d97fSEmmanuel Vadot
905956d97fSEmmanuel Vadot    required:
915956d97fSEmmanuel Vadot      - port@0
925956d97fSEmmanuel Vadot      - port@2
935956d97fSEmmanuel Vadot
945956d97fSEmmanuel Vadotrequired:
955956d97fSEmmanuel Vadot  - compatible
965956d97fSEmmanuel Vadot  - reg
975956d97fSEmmanuel Vadot  - ports
985956d97fSEmmanuel Vadot
995956d97fSEmmanuel VadotallOf:
1005956d97fSEmmanuel Vadot  - if:
1015956d97fSEmmanuel Vadot      properties:
1025956d97fSEmmanuel Vadot        compatible:
1035956d97fSEmmanuel Vadot          contains:
1045956d97fSEmmanuel Vadot            const: ti,sn65dsi83
1055956d97fSEmmanuel Vadot    then:
1065956d97fSEmmanuel Vadot      properties:
1075956d97fSEmmanuel Vadot        ports:
1085956d97fSEmmanuel Vadot          properties:
1095956d97fSEmmanuel Vadot            port@1: false
1105956d97fSEmmanuel Vadot            port@3: false
1115956d97fSEmmanuel Vadot
1125956d97fSEmmanuel Vadot  - if:
1135956d97fSEmmanuel Vadot      properties:
1145956d97fSEmmanuel Vadot        compatible:
1155956d97fSEmmanuel Vadot          contains:
1165956d97fSEmmanuel Vadot            const: ti,sn65dsi84
1175956d97fSEmmanuel Vadot    then:
1185956d97fSEmmanuel Vadot      properties:
1195956d97fSEmmanuel Vadot        ports:
1205956d97fSEmmanuel Vadot          properties:
1215956d97fSEmmanuel Vadot            port@1: false
1225956d97fSEmmanuel Vadot
1235956d97fSEmmanuel VadotadditionalProperties: false
1245956d97fSEmmanuel Vadot
1255956d97fSEmmanuel Vadotexamples:
1265956d97fSEmmanuel Vadot  - |
1275956d97fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
1285956d97fSEmmanuel Vadot
1295956d97fSEmmanuel Vadot    i2c {
1305956d97fSEmmanuel Vadot        #address-cells = <1>;
1315956d97fSEmmanuel Vadot        #size-cells = <0>;
1325956d97fSEmmanuel Vadot
1335956d97fSEmmanuel Vadot        bridge@2d {
1345956d97fSEmmanuel Vadot            compatible = "ti,sn65dsi83";
1355956d97fSEmmanuel Vadot            reg = <0x2d>;
1365956d97fSEmmanuel Vadot
1375956d97fSEmmanuel Vadot            enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
138*c9ccf3a3SEmmanuel Vadot            vcc-supply = <&reg_sn65dsi83_1v8>;
1395956d97fSEmmanuel Vadot
1405956d97fSEmmanuel Vadot            ports {
1415956d97fSEmmanuel Vadot                #address-cells = <1>;
1425956d97fSEmmanuel Vadot                #size-cells = <0>;
1435956d97fSEmmanuel Vadot
1445956d97fSEmmanuel Vadot                port@0 {
1455956d97fSEmmanuel Vadot                    reg = <0>;
1465956d97fSEmmanuel Vadot
1475956d97fSEmmanuel Vadot                    endpoint {
1485956d97fSEmmanuel Vadot                        remote-endpoint = <&dsi0_out>;
1495956d97fSEmmanuel Vadot                        data-lanes = <1 2 3 4>;
1505956d97fSEmmanuel Vadot                    };
1515956d97fSEmmanuel Vadot                };
1525956d97fSEmmanuel Vadot
1535956d97fSEmmanuel Vadot                port@2 {
1545956d97fSEmmanuel Vadot                    reg = <2>;
1555956d97fSEmmanuel Vadot
1565956d97fSEmmanuel Vadot                    endpoint {
1575956d97fSEmmanuel Vadot                        remote-endpoint = <&panel_in_lvds>;
1585956d97fSEmmanuel Vadot                    };
1595956d97fSEmmanuel Vadot                };
1605956d97fSEmmanuel Vadot            };
1615956d97fSEmmanuel Vadot        };
1625956d97fSEmmanuel Vadot    };
163