xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/cdns,mhdp8546.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: "http://devicetree.org/schemas/display/bridge/cdns,mhdp8546.yaml#"
56be33864SEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#"
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: Cadence MHDP8546 bridge
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Swapnil Jakhade <sjakhade@cadence.com>
116be33864SEmmanuel Vadot  - Yuti Amonkar <yamonkar@cadence.com>
126be33864SEmmanuel Vadot
136be33864SEmmanuel Vadotproperties:
146be33864SEmmanuel Vadot  compatible:
156be33864SEmmanuel Vadot    enum:
166be33864SEmmanuel Vadot      - cdns,mhdp8546
176be33864SEmmanuel Vadot      - ti,j721e-mhdp8546
186be33864SEmmanuel Vadot
196be33864SEmmanuel Vadot  reg:
206be33864SEmmanuel Vadot    minItems: 1
216be33864SEmmanuel Vadot    maxItems: 2
226be33864SEmmanuel Vadot    items:
236be33864SEmmanuel Vadot      - description:
246be33864SEmmanuel Vadot          Register block of mhdptx apb registers up to PHY mapped area (AUX_CONFIG_P).
256be33864SEmmanuel Vadot          The AUX and PMA registers are not part of this range, they are instead
266be33864SEmmanuel Vadot          included in the associated PHY.
276be33864SEmmanuel Vadot      - description:
286be33864SEmmanuel Vadot          Register block for DSS_EDP0_INTG_CFG_VP registers in case of TI J7 SoCs.
296be33864SEmmanuel Vadot
306be33864SEmmanuel Vadot  reg-names:
316be33864SEmmanuel Vadot    minItems: 1
326be33864SEmmanuel Vadot    maxItems: 2
336be33864SEmmanuel Vadot    items:
346be33864SEmmanuel Vadot      - const: mhdptx
356be33864SEmmanuel Vadot      - const: j721e-intg
366be33864SEmmanuel Vadot
376be33864SEmmanuel Vadot  clocks:
386be33864SEmmanuel Vadot    maxItems: 1
396be33864SEmmanuel Vadot    description:
406be33864SEmmanuel Vadot      DP bridge clock, used by the IP to know how to translate a number of
416be33864SEmmanuel Vadot      clock cycles into a time (which is used to comply with DP standard timings
426be33864SEmmanuel Vadot      and delays).
436be33864SEmmanuel Vadot
446be33864SEmmanuel Vadot  phys:
456be33864SEmmanuel Vadot    maxItems: 1
466be33864SEmmanuel Vadot    description:
476be33864SEmmanuel Vadot      phandle to the DisplayPort PHY.
486be33864SEmmanuel Vadot
496be33864SEmmanuel Vadot  phy-names:
506be33864SEmmanuel Vadot    items:
516be33864SEmmanuel Vadot      - const: dpphy
526be33864SEmmanuel Vadot
536be33864SEmmanuel Vadot  power-domains:
546be33864SEmmanuel Vadot    maxItems: 1
556be33864SEmmanuel Vadot
566be33864SEmmanuel Vadot  interrupts:
576be33864SEmmanuel Vadot    maxItems: 1
586be33864SEmmanuel Vadot
596be33864SEmmanuel Vadot  ports:
60*5def4c47SEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
616be33864SEmmanuel Vadot
626be33864SEmmanuel Vadot    properties:
636be33864SEmmanuel Vadot      port@0:
64*5def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
656be33864SEmmanuel Vadot        description:
666be33864SEmmanuel Vadot          First input port representing the DP bridge input.
676be33864SEmmanuel Vadot
686be33864SEmmanuel Vadot      port@1:
69*5def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
706be33864SEmmanuel Vadot        description:
716be33864SEmmanuel Vadot          Second input port representing the DP bridge input.
726be33864SEmmanuel Vadot
736be33864SEmmanuel Vadot      port@2:
74*5def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
756be33864SEmmanuel Vadot        description:
766be33864SEmmanuel Vadot          Third input port representing the DP bridge input.
776be33864SEmmanuel Vadot
786be33864SEmmanuel Vadot      port@3:
79*5def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
806be33864SEmmanuel Vadot        description:
816be33864SEmmanuel Vadot          Fourth input port representing the DP bridge input.
826be33864SEmmanuel Vadot
836be33864SEmmanuel Vadot      port@4:
84*5def4c47SEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
856be33864SEmmanuel Vadot        description:
866be33864SEmmanuel Vadot          Output port representing the DP bridge output.
876be33864SEmmanuel Vadot
886be33864SEmmanuel Vadot    required:
896be33864SEmmanuel Vadot      - port@0
906be33864SEmmanuel Vadot      - port@4
916be33864SEmmanuel Vadot
926be33864SEmmanuel VadotallOf:
936be33864SEmmanuel Vadot  - if:
946be33864SEmmanuel Vadot      properties:
956be33864SEmmanuel Vadot        compatible:
966be33864SEmmanuel Vadot          contains:
976be33864SEmmanuel Vadot            const: ti,j721e-mhdp8546
986be33864SEmmanuel Vadot    then:
996be33864SEmmanuel Vadot      properties:
1006be33864SEmmanuel Vadot        reg:
1016be33864SEmmanuel Vadot          minItems: 2
1026be33864SEmmanuel Vadot        reg-names:
1036be33864SEmmanuel Vadot          minItems: 2
1046be33864SEmmanuel Vadot    else:
1056be33864SEmmanuel Vadot      properties:
1066be33864SEmmanuel Vadot        reg:
1076be33864SEmmanuel Vadot          maxItems: 1
1086be33864SEmmanuel Vadot        reg-names:
1096be33864SEmmanuel Vadot          maxItems: 1
1106be33864SEmmanuel Vadot
1116be33864SEmmanuel Vadotrequired:
1126be33864SEmmanuel Vadot  - compatible
1136be33864SEmmanuel Vadot  - clocks
1146be33864SEmmanuel Vadot  - reg
1156be33864SEmmanuel Vadot  - reg-names
1166be33864SEmmanuel Vadot  - phys
1176be33864SEmmanuel Vadot  - phy-names
1186be33864SEmmanuel Vadot  - interrupts
1196be33864SEmmanuel Vadot  - ports
1206be33864SEmmanuel Vadot
1216be33864SEmmanuel VadotadditionalProperties: false
1226be33864SEmmanuel Vadot
1236be33864SEmmanuel Vadotexamples:
1246be33864SEmmanuel Vadot  - |
1256be33864SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
1266be33864SEmmanuel Vadot    bus {
1276be33864SEmmanuel Vadot        #address-cells = <2>;
1286be33864SEmmanuel Vadot        #size-cells = <2>;
1296be33864SEmmanuel Vadot
1306be33864SEmmanuel Vadot        mhdp: dp-bridge@f0fb000000 {
1316be33864SEmmanuel Vadot            compatible = "cdns,mhdp8546";
1326be33864SEmmanuel Vadot            reg = <0xf0 0xfb000000 0x0 0x1000000>;
1336be33864SEmmanuel Vadot            reg-names = "mhdptx";
1346be33864SEmmanuel Vadot            clocks = <&mhdp_clock>;
1356be33864SEmmanuel Vadot            phys = <&dp_phy>;
1366be33864SEmmanuel Vadot            phy-names = "dpphy";
1376be33864SEmmanuel Vadot            interrupts = <GIC_SPI 614 IRQ_TYPE_LEVEL_HIGH>;
1386be33864SEmmanuel Vadot
1396be33864SEmmanuel Vadot            ports {
1406be33864SEmmanuel Vadot                #address-cells = <1>;
1416be33864SEmmanuel Vadot                #size-cells = <0>;
1426be33864SEmmanuel Vadot
1436be33864SEmmanuel Vadot                port@0 {
1446be33864SEmmanuel Vadot                    reg = <0>;
1456be33864SEmmanuel Vadot                    dp_bridge_input: endpoint {
1466be33864SEmmanuel Vadot                        remote-endpoint = <&xxx_dpi_output>;
1476be33864SEmmanuel Vadot                    };
1486be33864SEmmanuel Vadot                };
1496be33864SEmmanuel Vadot
1506be33864SEmmanuel Vadot                port@4 {
1516be33864SEmmanuel Vadot                    reg = <4>;
1526be33864SEmmanuel Vadot                    dp_bridge_output: endpoint {
1536be33864SEmmanuel Vadot                        remote-endpoint = <&xxx_dp_connector_input>;
1546be33864SEmmanuel Vadot                    };
1556be33864SEmmanuel Vadot                };
1566be33864SEmmanuel Vadot            };
1576be33864SEmmanuel Vadot        };
1586be33864SEmmanuel Vadot    };
1596be33864SEmmanuel Vadot...
160