xref: /freebsd/sys/contrib/device-tree/Bindings/display/allwinner,sun8i-a83t-hdmi-phy.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/allwinner,sun8i-a83t-hdmi-phy.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Allwinner A83t HDMI PHY
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotproperties:
14c66ec88fSEmmanuel Vadot  "#phy-cells":
15c66ec88fSEmmanuel Vadot    const: 0
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadot  compatible:
18c66ec88fSEmmanuel Vadot    enum:
19c66ec88fSEmmanuel Vadot      - allwinner,sun8i-a83t-hdmi-phy
20c66ec88fSEmmanuel Vadot      - allwinner,sun8i-h3-hdmi-phy
21c66ec88fSEmmanuel Vadot      - allwinner,sun8i-r40-hdmi-phy
22c66ec88fSEmmanuel Vadot      - allwinner,sun50i-a64-hdmi-phy
23c66ec88fSEmmanuel Vadot      - allwinner,sun50i-h6-hdmi-phy
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  reg:
26c66ec88fSEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  clocks:
29c66ec88fSEmmanuel Vadot    minItems: 2
30c66ec88fSEmmanuel Vadot    items:
31c66ec88fSEmmanuel Vadot      - description: Bus Clock
32c66ec88fSEmmanuel Vadot      - description: Module Clock
33c66ec88fSEmmanuel Vadot      - description: Parent of the PHY clock
34c66ec88fSEmmanuel Vadot      - description: Second possible parent of the PHY clock
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  clock-names:
37c66ec88fSEmmanuel Vadot    minItems: 2
38c66ec88fSEmmanuel Vadot    items:
39c66ec88fSEmmanuel Vadot      - const: bus
40c66ec88fSEmmanuel Vadot      - const: mod
41c66ec88fSEmmanuel Vadot      - const: pll-0
42c66ec88fSEmmanuel Vadot      - const: pll-1
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot  resets:
45c66ec88fSEmmanuel Vadot    maxItems: 1
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  reset-names:
48c66ec88fSEmmanuel Vadot    const: phy
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadotrequired:
51c66ec88fSEmmanuel Vadot  - compatible
52c66ec88fSEmmanuel Vadot  - reg
53c66ec88fSEmmanuel Vadot  - clocks
54c66ec88fSEmmanuel Vadot  - clock-names
55c66ec88fSEmmanuel Vadot  - resets
56c66ec88fSEmmanuel Vadot  - reset-names
57c66ec88fSEmmanuel Vadot
58c66ec88fSEmmanuel Vadotif:
59c66ec88fSEmmanuel Vadot  properties:
60c66ec88fSEmmanuel Vadot    compatible:
61c66ec88fSEmmanuel Vadot      contains:
62c66ec88fSEmmanuel Vadot        enum:
63c66ec88fSEmmanuel Vadot          - allwinner,sun8i-r40-hdmi-phy
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadotthen:
66c66ec88fSEmmanuel Vadot  properties:
67c66ec88fSEmmanuel Vadot    clocks:
68c66ec88fSEmmanuel Vadot      minItems: 4
69c66ec88fSEmmanuel Vadot
70c66ec88fSEmmanuel Vadot    clock-names:
71c66ec88fSEmmanuel Vadot      minItems: 4
72c66ec88fSEmmanuel Vadot
73c66ec88fSEmmanuel Vadotelse:
74c66ec88fSEmmanuel Vadot  if:
75c66ec88fSEmmanuel Vadot    properties:
76c66ec88fSEmmanuel Vadot      compatible:
77c66ec88fSEmmanuel Vadot        contains:
78c66ec88fSEmmanuel Vadot          enum:
79c66ec88fSEmmanuel Vadot            - allwinner,sun8i-h3-hdmi-phy
80c66ec88fSEmmanuel Vadot            - allwinner,sun50i-a64-hdmi-phy
81c66ec88fSEmmanuel Vadot
82c66ec88fSEmmanuel Vadot  then:
83c66ec88fSEmmanuel Vadot    properties:
84c66ec88fSEmmanuel Vadot      clocks:
85c66ec88fSEmmanuel Vadot        minItems: 3
86c66ec88fSEmmanuel Vadot
87c66ec88fSEmmanuel Vadot      clock-names:
88c66ec88fSEmmanuel Vadot        minItems: 3
89c66ec88fSEmmanuel Vadot
90c66ec88fSEmmanuel Vadot  else:
91c66ec88fSEmmanuel Vadot    properties:
92c66ec88fSEmmanuel Vadot      clocks:
93c66ec88fSEmmanuel Vadot        maxItems: 2
94c66ec88fSEmmanuel Vadot
95c66ec88fSEmmanuel Vadot      clock-names:
96c66ec88fSEmmanuel Vadot        maxItems: 2
97c66ec88fSEmmanuel Vadot
98c66ec88fSEmmanuel VadotadditionalProperties: false
99c66ec88fSEmmanuel Vadot
100c66ec88fSEmmanuel Vadotexamples:
101c66ec88fSEmmanuel Vadot  - |
102c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/sun8i-a83t-ccu.h>
103c66ec88fSEmmanuel Vadot    #include <dt-bindings/reset/sun8i-a83t-ccu.h>
104c66ec88fSEmmanuel Vadot
105c66ec88fSEmmanuel Vadot    hdmi_phy: hdmi-phy@1ef0000 {
106c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun8i-a83t-hdmi-phy";
107c66ec88fSEmmanuel Vadot        reg = <0x01ef0000 0x10000>;
108c66ec88fSEmmanuel Vadot        clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>;
109c66ec88fSEmmanuel Vadot        clock-names = "bus", "mod";
110c66ec88fSEmmanuel Vadot        resets = <&ccu RST_BUS_HDMI0>;
111c66ec88fSEmmanuel Vadot        reset-names = "phy";
112c66ec88fSEmmanuel Vadot        #phy-cells = <0>;
113c66ec88fSEmmanuel Vadot    };
114c66ec88fSEmmanuel Vadot
115c66ec88fSEmmanuel Vadot...
116