Skip to content

Commit

Permalink
dt-bindings: media: renesas,vin: Make resets optional on R-Car Gen1
Browse files Browse the repository at this point in the history
commit 7935bb5 upstream.

The "resets" property is not present on R-Car Gen1 SoCs.
Supporting it would require migrating from renesas,cpg-clocks to
renesas,cpg-mssr.

Fixes: 905fc6b ("dt-bindings: rcar-vin: Convert bindings to json-schema")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/217c8197efaee7d803b22d433abb0ea8e33b84c6.1619700314.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
geertu authored and gregkh committed May 19, 2021
1 parent 5bf7dfa commit 26f3b85
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions Documentation/devicetree/bindings/media/renesas,vin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,23 +193,35 @@ required:
- interrupts
- clocks
- power-domains
- resets

if:
properties:
compatible:
contains:
enum:
- renesas,vin-r8a7778
- renesas,vin-r8a7779
- renesas,rcar-gen2-vin
then:
required:
- port
else:
required:
- renesas,id
- ports

allOf:
- if:
not:
properties:
compatible:
contains:
enum:
- renesas,vin-r8a7778
- renesas,vin-r8a7779
then:
required:
- resets

- if:
properties:
compatible:
contains:
enum:
- renesas,vin-r8a7778
- renesas,vin-r8a7779
- renesas,rcar-gen2-vin
then:
required:
- port
else:
required:
- renesas,id
- ports

additionalProperties: false

Expand Down

0 comments on commit 26f3b85

Please sign in to comment.