xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/cdns,mhdp8546.yaml (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1*6be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*6be33864SEmmanuel Vadot%YAML 1.2
3*6be33864SEmmanuel Vadot---
4*6be33864SEmmanuel Vadot$id: "http://devicetree.org/schemas/display/bridge/cdns,mhdp8546.yaml#"
5*6be33864SEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6*6be33864SEmmanuel Vadot
7*6be33864SEmmanuel Vadottitle: Cadence MHDP8546 bridge
8*6be33864SEmmanuel Vadot
9*6be33864SEmmanuel Vadotmaintainers:
10*6be33864SEmmanuel Vadot  - Swapnil Jakhade <sjakhade@cadence.com>
11*6be33864SEmmanuel Vadot  - Yuti Amonkar <yamonkar@cadence.com>
12*6be33864SEmmanuel Vadot
13*6be33864SEmmanuel Vadotproperties:
14*6be33864SEmmanuel Vadot  compatible:
15*6be33864SEmmanuel Vadot    enum:
16*6be33864SEmmanuel Vadot      - cdns,mhdp8546
17*6be33864SEmmanuel Vadot      - ti,j721e-mhdp8546
18*6be33864SEmmanuel Vadot
19*6be33864SEmmanuel Vadot  reg:
20*6be33864SEmmanuel Vadot    minItems: 1
21*6be33864SEmmanuel Vadot    maxItems: 2
22*6be33864SEmmanuel Vadot    items:
23*6be33864SEmmanuel Vadot      - description:
24*6be33864SEmmanuel Vadot          Register block of mhdptx apb registers up to PHY mapped area (AUX_CONFIG_P).
25*6be33864SEmmanuel Vadot          The AUX and PMA registers are not part of this range, they are instead
26*6be33864SEmmanuel Vadot          included in the associated PHY.
27*6be33864SEmmanuel Vadot      - description:
28*6be33864SEmmanuel Vadot          Register block for DSS_EDP0_INTG_CFG_VP registers in case of TI J7 SoCs.
29*6be33864SEmmanuel Vadot
30*6be33864SEmmanuel Vadot  reg-names:
31*6be33864SEmmanuel Vadot    minItems: 1
32*6be33864SEmmanuel Vadot    maxItems: 2
33*6be33864SEmmanuel Vadot    items:
34*6be33864SEmmanuel Vadot      - const: mhdptx
35*6be33864SEmmanuel Vadot      - const: j721e-intg
36*6be33864SEmmanuel Vadot
37*6be33864SEmmanuel Vadot  clocks:
38*6be33864SEmmanuel Vadot    maxItems: 1
39*6be33864SEmmanuel Vadot    description:
40*6be33864SEmmanuel Vadot      DP bridge clock, used by the IP to know how to translate a number of
41*6be33864SEmmanuel Vadot      clock cycles into a time (which is used to comply with DP standard timings
42*6be33864SEmmanuel Vadot      and delays).
43*6be33864SEmmanuel Vadot
44*6be33864SEmmanuel Vadot  phys:
45*6be33864SEmmanuel Vadot    maxItems: 1
46*6be33864SEmmanuel Vadot    description:
47*6be33864SEmmanuel Vadot      phandle to the DisplayPort PHY.
48*6be33864SEmmanuel Vadot
49*6be33864SEmmanuel Vadot  phy-names:
50*6be33864SEmmanuel Vadot    items:
51*6be33864SEmmanuel Vadot      - const: dpphy
52*6be33864SEmmanuel Vadot
53*6be33864SEmmanuel Vadot  power-domains:
54*6be33864SEmmanuel Vadot    maxItems: 1
55*6be33864SEmmanuel Vadot
56*6be33864SEmmanuel Vadot  interrupts:
57*6be33864SEmmanuel Vadot    maxItems: 1
58*6be33864SEmmanuel Vadot
59*6be33864SEmmanuel Vadot  ports:
60*6be33864SEmmanuel Vadot    type: object
61*6be33864SEmmanuel Vadot    description:
62*6be33864SEmmanuel Vadot      Ports as described in Documentation/devicetree/bindings/graph.txt.
63*6be33864SEmmanuel Vadot
64*6be33864SEmmanuel Vadot    properties:
65*6be33864SEmmanuel Vadot      '#address-cells':
66*6be33864SEmmanuel Vadot        const: 1
67*6be33864SEmmanuel Vadot
68*6be33864SEmmanuel Vadot      '#size-cells':
69*6be33864SEmmanuel Vadot        const: 0
70*6be33864SEmmanuel Vadot
71*6be33864SEmmanuel Vadot      port@0:
72*6be33864SEmmanuel Vadot        type: object
73*6be33864SEmmanuel Vadot        description:
74*6be33864SEmmanuel Vadot          First input port representing the DP bridge input.
75*6be33864SEmmanuel Vadot
76*6be33864SEmmanuel Vadot      port@1:
77*6be33864SEmmanuel Vadot        type: object
78*6be33864SEmmanuel Vadot        description:
79*6be33864SEmmanuel Vadot          Second input port representing the DP bridge input.
80*6be33864SEmmanuel Vadot
81*6be33864SEmmanuel Vadot      port@2:
82*6be33864SEmmanuel Vadot        type: object
83*6be33864SEmmanuel Vadot        description:
84*6be33864SEmmanuel Vadot          Third input port representing the DP bridge input.
85*6be33864SEmmanuel Vadot
86*6be33864SEmmanuel Vadot      port@3:
87*6be33864SEmmanuel Vadot        type: object
88*6be33864SEmmanuel Vadot        description:
89*6be33864SEmmanuel Vadot          Fourth input port representing the DP bridge input.
90*6be33864SEmmanuel Vadot
91*6be33864SEmmanuel Vadot      port@4:
92*6be33864SEmmanuel Vadot        type: object
93*6be33864SEmmanuel Vadot        description:
94*6be33864SEmmanuel Vadot          Output port representing the DP bridge output.
95*6be33864SEmmanuel Vadot
96*6be33864SEmmanuel Vadot    required:
97*6be33864SEmmanuel Vadot      - port@0
98*6be33864SEmmanuel Vadot      - port@4
99*6be33864SEmmanuel Vadot      - '#address-cells'
100*6be33864SEmmanuel Vadot      - '#size-cells'
101*6be33864SEmmanuel Vadot
102*6be33864SEmmanuel VadotallOf:
103*6be33864SEmmanuel Vadot  - if:
104*6be33864SEmmanuel Vadot      properties:
105*6be33864SEmmanuel Vadot        compatible:
106*6be33864SEmmanuel Vadot          contains:
107*6be33864SEmmanuel Vadot            const: ti,j721e-mhdp8546
108*6be33864SEmmanuel Vadot    then:
109*6be33864SEmmanuel Vadot      properties:
110*6be33864SEmmanuel Vadot        reg:
111*6be33864SEmmanuel Vadot          minItems: 2
112*6be33864SEmmanuel Vadot        reg-names:
113*6be33864SEmmanuel Vadot          minItems: 2
114*6be33864SEmmanuel Vadot    else:
115*6be33864SEmmanuel Vadot      properties:
116*6be33864SEmmanuel Vadot        reg:
117*6be33864SEmmanuel Vadot          maxItems: 1
118*6be33864SEmmanuel Vadot        reg-names:
119*6be33864SEmmanuel Vadot          maxItems: 1
120*6be33864SEmmanuel Vadot
121*6be33864SEmmanuel Vadotrequired:
122*6be33864SEmmanuel Vadot  - compatible
123*6be33864SEmmanuel Vadot  - clocks
124*6be33864SEmmanuel Vadot  - reg
125*6be33864SEmmanuel Vadot  - reg-names
126*6be33864SEmmanuel Vadot  - phys
127*6be33864SEmmanuel Vadot  - phy-names
128*6be33864SEmmanuel Vadot  - interrupts
129*6be33864SEmmanuel Vadot  - ports
130*6be33864SEmmanuel Vadot
131*6be33864SEmmanuel VadotadditionalProperties: false
132*6be33864SEmmanuel Vadot
133*6be33864SEmmanuel Vadotexamples:
134*6be33864SEmmanuel Vadot  - |
135*6be33864SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
136*6be33864SEmmanuel Vadot    bus {
137*6be33864SEmmanuel Vadot        #address-cells = <2>;
138*6be33864SEmmanuel Vadot        #size-cells = <2>;
139*6be33864SEmmanuel Vadot
140*6be33864SEmmanuel Vadot        mhdp: dp-bridge@f0fb000000 {
141*6be33864SEmmanuel Vadot            compatible = "cdns,mhdp8546";
142*6be33864SEmmanuel Vadot            reg = <0xf0 0xfb000000 0x0 0x1000000>;
143*6be33864SEmmanuel Vadot            reg-names = "mhdptx";
144*6be33864SEmmanuel Vadot            clocks = <&mhdp_clock>;
145*6be33864SEmmanuel Vadot            phys = <&dp_phy>;
146*6be33864SEmmanuel Vadot            phy-names = "dpphy";
147*6be33864SEmmanuel Vadot            interrupts = <GIC_SPI 614 IRQ_TYPE_LEVEL_HIGH>;
148*6be33864SEmmanuel Vadot
149*6be33864SEmmanuel Vadot            ports {
150*6be33864SEmmanuel Vadot                #address-cells = <1>;
151*6be33864SEmmanuel Vadot                #size-cells = <0>;
152*6be33864SEmmanuel Vadot
153*6be33864SEmmanuel Vadot                port@0 {
154*6be33864SEmmanuel Vadot                    reg = <0>;
155*6be33864SEmmanuel Vadot                    dp_bridge_input: endpoint {
156*6be33864SEmmanuel Vadot                        remote-endpoint = <&xxx_dpi_output>;
157*6be33864SEmmanuel Vadot                    };
158*6be33864SEmmanuel Vadot                };
159*6be33864SEmmanuel Vadot
160*6be33864SEmmanuel Vadot                port@4 {
161*6be33864SEmmanuel Vadot                    reg = <4>;
162*6be33864SEmmanuel Vadot                    dp_bridge_output: endpoint {
163*6be33864SEmmanuel Vadot                        remote-endpoint = <&xxx_dp_connector_input>;
164*6be33864SEmmanuel Vadot                    };
165*6be33864SEmmanuel Vadot                };
166*6be33864SEmmanuel Vadot            };
167*6be33864SEmmanuel Vadot        };
168*6be33864SEmmanuel Vadot    };
169*6be33864SEmmanuel Vadot...
170