Skip to content

Commit

Permalink
media: dt-bindings: media: rkisp1: document different irq possibilities
Browse files Browse the repository at this point in the history
Some variants have one irq signaling all of MI, MIPI and ISP events
while some rkisp1 variants use separate irqs for each.

Adapt the binding to handle both cases.

Signed-off-by: Heiko Stuebner <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mmind authored and mchehab committed Sep 30, 2021
1 parent 76c4c56 commit 098d9cd
Showing 1 changed file with 31 additions and 14 deletions.
45 changes: 31 additions & 14 deletions Documentation/devicetree/bindings/media/rockchip-isp1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ properties:
maxItems: 1

interrupts:
maxItems: 1
minItems: 1
maxItems: 3

interrupt-names:
items:
- const: isp
- const: mi
- const: mipi

clocks:
minItems: 3
Expand Down Expand Up @@ -90,19 +97,29 @@ required:
- power-domains
- ports

if:
properties:
compatible:
contains:
const: rockchip,rk3399-cif-isp
then:
properties:
clocks:
minItems: 3
maxItems: 4
clock-names:
minItems: 3
maxItems: 4
allOf:
- if:
properties:
compatible:
contains:
const: rockchip,rk3399-cif-isp
then:
properties:
clocks:
minItems: 3
maxItems: 4
clock-names:
minItems: 3
maxItems: 4

- if:
properties:
compatible:
contains:
const: rockchip,px30-cif-isp
then:
required:
- interrupt-names

additionalProperties: false

Expand Down

0 comments on commit 098d9cd

Please sign in to comment.