Skip to content

Commit d9df1dc

Browse files
geertugregkh
authored andcommitted
dt-bindings: PCI: rcar-pci-host: Document missing R-Car H1 support
commit 62b3b36 upstream. scripts/checkpatch.pl -f drivers/pci/controller/pcie-rcar-host.c: WARNING: DT compatible string "renesas,pcie-r8a7779" appears un-documented -- check ./Documentation/devicetree/bindings/ #853: FILE: drivers/pci/controller/pcie-rcar-host.c:853: + { .compatible = "renesas,pcie-r8a7779", Re-add the compatible value for R-Car H1, which was lost during the json-schema conversion. Make the "resets" property optional on R-Car H1, as it is not present yet on R-Car Gen1 SoCs. Fixes: 0d69ce3 ("dt-bindings: PCI: rcar-pci-host: Convert bindings to json-schema") Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/fb0bb969cd0e5872ab5eac70e070242c0d8a5b81.1619700202.git.geert+renesas@glider.be Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent eb94880 commit d9df1dc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Documentation/devicetree/bindings/pci/rcar-pci-host.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ allOf:
1717
properties:
1818
compatible:
1919
oneOf:
20+
- const: renesas,pcie-r8a7779 # R-Car H1
2021
- items:
2122
- enum:
2223
- renesas,pcie-r8a7742 # RZ/G1H
@@ -74,7 +75,16 @@ required:
7475
- clocks
7576
- clock-names
7677
- power-domains
77-
- resets
78+
79+
if:
80+
not:
81+
properties:
82+
compatible:
83+
contains:
84+
const: renesas,pcie-r8a7779
85+
then:
86+
required:
87+
- resets
7888

7989
unevaluatedProperties: false
8090

0 commit comments

Comments
 (0)