summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/phy/rockchip,rk3228-hdmi-phy.yaml
blob: ac15bf857ef9970254d1b39f06978d9fb11d57ef (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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/rockchip,rk3228-hdmi-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Rockchip HDMI PHY with Innosilicon IP block

maintainers:
  - Heiko Stuebner <heiko@sntech.de>

properties:
  compatible:
    enum:
      - rockchip,rk3228-hdmi-phy
      - rockchip,rk3328-hdmi-phy

  reg:
    maxItems: 1

  clocks:
    maxItems: 3

  clock-names:
    items:
      - const: sysclk
      - const: refoclk
      - const: refpclk

  clock-output-names:
    description:
      The hdmiphy output clock name, that gets fed back to the CRU.

  "#clock-cells":
    const: 0

  interrupts:
    maxItems: 1

  nvmem-cells:
    maxItems: 1
    description: A phandle + nvmem specifier for the cpu-version efuse
      for adjustment to some frequency settings, depending on cpu-version

  nvmem-cell-names:
    items:
      - const: cpu-version

  '#phy-cells':
    const: 0

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - clock-output-names
  - '#clock-cells'
  - '#phy-cells'

allOf:
  - if:
      properties:
        compatible:
          contains:
            const: rockchip,rk3228-hdmi-phy

    then:
      properties:
        interrupts: false

  - if:
      properties:
        compatible:
          contains:
            const: rockchip,rk3328-hdmi-phy

    then:
      required:
        - interrupts

additionalProperties: false

examples:
  - |

    #include <dt-bindings/clock/rk3228-cru.h>
    hdmi_phy: phy@12030000 {
      compatible = "rockchip,rk3228-hdmi-phy";
      reg = <0x12030000 0x10000>;
      #phy-cells = <0>;
      clocks = <&cru PCLK_HDMI_PHY>, <&xin24m>, <&cru DCLK_HDMI_PHY>;
      clock-names = "sysclk", "refoclk", "refpclk";
      #clock-cells = <0>;

      clock-output-names = "hdmi_phy";
    };