[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240625211748.4041882-2-Frank.Li@nxp.com>
Date: Tue, 25 Jun 2024 17:17:47 -0400
From: Frank Li <Frank.Li@....com>
To: Lorenzo Pieralisi <lpieralisi@...nel.org>,
	Krzysztof WilczyĆski <kw@...ux.com>,
	Rob Herring <robh@...nel.org>,
	Bjorn Helgaas <bhelgaas@...gle.com>,
	Krzysztof Kozlowski <krzk+dt@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>,
	linux-pci@...r.kernel.org (open list:PCI NATIVE HOST BRIDGE AND ENDPOINT DRIVERS),
	devicetree@...r.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS),
	linux-kernel@...r.kernel.org (open list)
Cc: imx@...ts.linux.dev
Subject: [PATCH 2/2] dt-bindings: PCI: layerscape-pci-ep: Allow fallback to fsl,ls-pcie-ep
Allow compatible string fallback to general fsl,ls-pcie-ep.
Fix below warning:
arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dtb: pcie_ep@...0000: compatible: ['fsl,ls1046a-pcie-ep', 'fsl,ls-pcie-ep'] is too long
Signed-off-by: Frank Li <Frank.Li@....com>
---
 .../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
Powered by blists - more mailing lists