diff options
author | Frank Li <Frank.Li@nxp.com> | 2024-08-14 16:46:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-08-19 09:48:53 +0100 |
commit | 1bf8e07c382bd4f04ede81ecc05267a8ffd60999 (patch) | |
tree | ab964e68bfe05e04146fd3c160dfaaa95cf5c4fb /Documentation/devicetree | |
parent | a99ef548bba01435f19137cf1670861be1c1ee4b (diff) | |
download | linux-stable-1bf8e07c382bd4f04ede81ecc05267a8ffd60999.tar.gz linux-stable-1bf8e07c382bd4f04ede81ecc05267a8ffd60999.tar.bz2 linux-stable-1bf8e07c382bd4f04ede81ecc05267a8ffd60999.zip |
dt-binding: ptp: fsl,ptp: add pci1957,ee02 compatible string for fsl,enetc-ptp
fsl,enetc-ptp is embedded pcie device. Add compatible string pci1957,ee02.
Fix warning:
arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dtb: ethernet@0,4:
compatible:0: 'pci1957,ee02' is not one of ['fsl,etsec-ptp', 'fsl,fman-ptp-timer', 'fsl,dpaa2-ptp', 'fsl,enetc-ptp']
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/ptp/fsl,ptp.yaml | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/Documentation/devicetree/bindings/ptp/fsl,ptp.yaml b/Documentation/devicetree/bindings/ptp/fsl,ptp.yaml index 3bb8615e3e91..42ca895f3c4e 100644 --- a/Documentation/devicetree/bindings/ptp/fsl,ptp.yaml +++ b/Documentation/devicetree/bindings/ptp/fsl,ptp.yaml @@ -11,11 +11,14 @@ maintainers: properties: compatible: - enum: - - fsl,etsec-ptp - - fsl,fman-ptp-timer - - fsl,dpaa2-ptp - - fsl,enetc-ptp + oneOf: + - enum: + - fsl,etsec-ptp + - fsl,fman-ptp-timer + - fsl,dpaa2-ptp + - items: + - const: pci1957,ee02 + - const: fsl,enetc-ptp reg: maxItems: 1 @@ -123,6 +126,15 @@ required: - compatible - reg +allOf: + - if: + properties: + compatible: + contains: + const: fsl,enetc-ptp + then: + $ref: /schemas/pci/pci-device.yaml + additionalProperties: false examples: |