summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/phy/mixel,mipi-dsi-phy.yaml
blob: 786cfd71cb7eb6e4da9ba579e149e6a747dbb4a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/mixel,mipi-dsi-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Mixel DSI PHY for i.MX8

maintainers:
  - Guido Günther <agx@sigxcpu.org>

description: |
  The Mixel MIPI-DSI PHY IP block is e.g. found on i.MX8 platforms (along the
  MIPI-DSI IP from Northwest Logic). It represents the physical layer for the
  electrical signals for DSI.

  The Mixel PHY IP block found on i.MX8qxp is a combo PHY that can work
  in either MIPI-DSI PHY mode or LVDS PHY mode.

properties:
  compatible:
    enum:
      - fsl,imx8mq-mipi-dphy
      - fsl,imx8qxp-mipi-dphy

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    const: phy_ref

  assigned-clocks:
    maxItems: 1

  assigned-clock-parents:
    maxItems: 1

  assigned-clock-rates:
    maxItems: 1

  "#phy-cells":
    const: 0

  fsl,syscon:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: |
      A phandle which points to Control and Status Registers(CSR) module.

  power-domains:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - "#phy-cells"
  - power-domains

allOf:
  - if:
      properties:
        compatible:
          contains:
            const: fsl,imx8mq-mipi-dphy
    then:
      properties:
        fsl,syscon: false

      required:
        - assigned-clocks
        - assigned-clock-parents
        - assigned-clock-rates

  - if:
      properties:
        compatible:
          contains:
            const: fsl,imx8qxp-mipi-dphy
    then:
      properties:
        assigned-clocks: false
        assigned-clock-parents: false
        assigned-clock-rates: false

      required:
        - fsl,syscon

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/imx8mq-clock.h>
    dphy: dphy@30a0030 {
        compatible = "fsl,imx8mq-mipi-dphy";
        reg = <0x30a00300 0x100>;
        clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>;
        clock-names = "phy_ref";
        assigned-clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>;
        assigned-clock-parents = <&clk IMX8MQ_VIDEO_PLL1_OUT>;
        assigned-clock-rates = <24000000>;
        #phy-cells = <0>;
        power-domains = <&pgc_mipi>;
    };