Commit 098d9cdf authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Mauro Carvalho Chehab
Browse files

media: dt-bindings: media: rkisp1: document different irq possibilities



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: default avatarHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 76c4c569
Loading
Loading
Loading
Loading
+31 −14
Original line number Diff line number Diff line
@@ -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
@@ -90,7 +97,8 @@ required:
  - power-domains
  - ports

if:
allOf:
  - if:
      properties:
        compatible:
          contains:
@@ -104,6 +112,15 @@ then:
          minItems: 3
          maxItems: 4

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

additionalProperties: false

examples: