diff mbox series

[2/2] dt-bindings: PCI: layerscape-pci-ep: Allow fallback to fsl,ls-pcie-ep

Message ID 20240625211748.4041882-2-Frank.Li@nxp.com (mailing list archive)
State Superseded
Headers show
Series [1/2] dt-bindings: PCI: layerscape-pci: Fix property 'fsl,pcie-scfg' type | expand

Commit Message

Frank Li June 25, 2024, 9:17 p.m. UTC
Allow compatible string fallback to general fsl,ls-pcie-ep.
Fix below warning:

arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dtb: pcie_ep@3400000: compatible: ['fsl,ls1046a-pcie-ep', 'fsl,ls-pcie-ep'] is too long

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 .../bindings/pci/fsl,layerscape-pcie-ep.yaml      | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

Comments

Frank Li June 25, 2024, 10:08 p.m. UTC | #1
On Tue, Jun 25, 2024 at 05:17:47PM -0400, Frank Li wrote:
> Allow compatible string fallback to general fsl,ls-pcie-ep.
> Fix below warning:
> 
> arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dtb: pcie_ep@3400000: compatible: ['fsl,ls1046a-pcie-ep', 'fsl,ls-pcie-ep'] is too long
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---

Sorry, this patch sent out accidently. 'fsl,ls-pcie-ep' actually are
not used in driver.

Frank Li

>  .../bindings/pci/fsl,layerscape-pcie-ep.yaml      | 15 +++++++++------
>  1 file changed, 9 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml
> index 399efa7364c93..21f1edfe814d4 100644
> --- a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml
> +++ b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml
> @@ -22,12 +22,15 @@ description:
>  
>  properties:
>    compatible:
> -    enum:
> -      - fsl,ls2088a-pcie-ep
> -      - fsl,ls1088a-pcie-ep
> -      - fsl,ls1046a-pcie-ep
> -      - fsl,ls1028a-pcie-ep
> -      - fsl,lx2160ar2-pcie-ep
> +    items:
> +      - enum:
> +          - fsl,ls2088a-pcie-ep
> +          - fsl,ls1088a-pcie-ep
> +          - fsl,ls1046a-pcie-ep
> +          - fsl,ls1028a-pcie-ep
> +          - fsl,lx2160ar2-pcie-ep
> +      - const: fsl,ls-pcie-ep
> +    minItems: 1
>  
>    reg:
>      maxItems: 2
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml
index 399efa7364c93..21f1edfe814d4 100644
--- a/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml
+++ b/Documentation/devicetree/bindings/pci/fsl,layerscape-pcie-ep.yaml
@@ -22,12 +22,15 @@  description:
 
 properties:
   compatible:
-    enum:
-      - fsl,ls2088a-pcie-ep
-      - fsl,ls1088a-pcie-ep
-      - fsl,ls1046a-pcie-ep
-      - fsl,ls1028a-pcie-ep
-      - fsl,lx2160ar2-pcie-ep
+    items:
+      - enum:
+          - fsl,ls2088a-pcie-ep
+          - fsl,ls1088a-pcie-ep
+          - fsl,ls1046a-pcie-ep
+          - fsl,ls1028a-pcie-ep
+          - fsl,lx2160ar2-pcie-ep
+      - const: fsl,ls-pcie-ep
+    minItems: 1
 
   reg:
     maxItems: 2