Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Frank Li and committed by
David S. Miller
1bf8e07c a99ef548

+17 -5
+17 -5
Documentation/devicetree/bindings/ptp/fsl,ptp.yaml
··· 11 11 12 12 properties: 13 13 compatible: 14 - enum: 15 - - fsl,etsec-ptp 16 - - fsl,fman-ptp-timer 17 - - fsl,dpaa2-ptp 18 - - fsl,enetc-ptp 14 + oneOf: 15 + - enum: 16 + - fsl,etsec-ptp 17 + - fsl,fman-ptp-timer 18 + - fsl,dpaa2-ptp 19 + - items: 20 + - const: pci1957,ee02 21 + - const: fsl,enetc-ptp 19 22 20 23 reg: 21 24 maxItems: 1 ··· 125 122 required: 126 123 - compatible 127 124 - reg 125 + 126 + allOf: 127 + - if: 128 + properties: 129 + compatible: 130 + contains: 131 + const: fsl,enetc-ptp 132 + then: 133 + $ref: /schemas/pci/pci-device.yaml 128 134 129 135 additionalProperties: false 130 136