Skip to content

Commit 4710ccc

Browse files
committed
dt-bindings: media: renesas,drif: Use graph schema
Convert the renesas,drif binding schema to use the graph schema. The binding referred to video-interfaces.txt, but it doesn't actually use any properties from it as 'sync-active' is a custom property. As 'sync-active' is custom, it needs a type definition. Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Ramesh Shanmugasundaram <rashanmu@gmail.com> Cc: linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com> Link: https://lore.kernel.org/r/20210510203514.603471-1-robh@kernel.org
1 parent 0bd5082 commit 4710ccc

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

Documentation/devicetree/bindings/media/renesas,drif.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,32 +99,26 @@ properties:
9999
Indicates that the channel acts as primary among the bonded channels.
100100

101101
port:
102-
type: object
102+
$ref: /schemas/graph.yaml#/properties/port
103+
unevaluatedProperties: false
103104
description:
104-
Child port node corresponding to the data input, in accordance with the
105-
video interface bindings defined in
106-
Documentation/devicetree/bindings/media/video-interfaces.txt.
107-
The port node must contain at least one endpoint.
105+
Child port node corresponding to the data input. The port node must
106+
contain at least one endpoint.
108107

109108
properties:
110109
endpoint:
111-
type: object
110+
$ref: /schemas/graph.yaml#/$defs/endpoint-base
111+
unevaluatedProperties: false
112112

113113
properties:
114-
remote-endpoint:
115-
description:
116-
A phandle to the remote tuner endpoint subnode in remote node
117-
port.
118-
119114
sync-active:
115+
$ref: /schemas/types.yaml#/definitions/uint32
120116
enum: [0, 1]
121117
description:
122118
Indicates sync signal polarity, 0/1 for low/high respectively.
123119
This property maps to SYNCAC bit in the hardware manual. The
124120
default is 1 (active high).
125121

126-
additionalProperties: false
127-
128122
required:
129123
- compatible
130124
- reg

0 commit comments

Comments
 (0)