Skip to content

Commit 4ec295e

Browse files
knaerzcherobherring
authored andcommitted
dt-bindings: display: rockchip,inno-hdmi: Document RK3128 compatible
The integration for this SoC is different from the currently existing: It needs it's PHY's reference clock rate to calculate the DDC bus frequency correctly. The controller is also part of a powerdomain, so this gets added as an mandatory property for this variant. Signed-off-by: Alex Bee <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 76156d0 commit 4ec295e

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

Documentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ properties:
1414
compatible:
1515
enum:
1616
- rockchip,rk3036-inno-hdmi
17+
- rockchip,rk3128-inno-hdmi
1718

1819
reg:
1920
maxItems: 1
@@ -22,10 +23,19 @@ properties:
2223
maxItems: 1
2324

2425
clocks:
25-
maxItems: 1
26+
minItems: 1
27+
items:
28+
- description: The HDMI controller main clock
29+
- description: The HDMI PHY reference clock
2630

2731
clock-names:
28-
const: pclk
32+
minItems: 1
33+
items:
34+
- const: pclk
35+
- const: ref
36+
37+
power-domains:
38+
maxItems: 1
2939

3040
ports:
3141
$ref: /schemas/graph.yaml#/properties/ports
@@ -55,6 +65,32 @@ required:
5565
- pinctrl-names
5666
- ports
5767

68+
allOf:
69+
- if:
70+
properties:
71+
compatible:
72+
contains:
73+
const: rockchip,rk3036-inno-hdmi
74+
75+
then:
76+
properties:
77+
power-domains: false
78+
79+
- if:
80+
properties:
81+
compatible:
82+
contains:
83+
const: rockchip,rk3128-inno-hdmi
84+
85+
then:
86+
properties:
87+
clocks:
88+
minItems: 2
89+
clock-names:
90+
minItems: 2
91+
required:
92+
- power-domains
93+
5894
additionalProperties: false
5995

6096
examples:

0 commit comments

Comments
 (0)