On Mon, Feb 24, 2025 at 08:58:19PM +0000, J. Neuschäfer wrote: > On Fri, Feb 21, 2025 at 10:36:51AM -0600, Rob Herring wrote: > > On Thu, Feb 20, 2025 at 06:29:21PM +0100, J. Neuschäfer wrote: > > > Move the information related to the Freescale Gianfar (TSEC) MDIO bus > > > and the Ten-Bit Interface (TBI) from fsl-tsec-phy.txt to a new binding > > > file in YAML format, fsl,gianfar-mdio.yaml. > > > > > > Signed-off-by: J. Neuschäfer <j.ne@xxxxxxxxxx> > > > --- > [...] > > > +properties: > > > + compatible: > > > + enum: > > > + - fsl,gianfar-tbi > > > + - fsl,gianfar-mdio > > > + - fsl,etsec2-tbi > > > + - fsl,etsec2-mdio > > > + - fsl,ucc-mdio > > > + - gianfar > > > > Can you just comment out this to avoid the duplicate issue. > > > > Though I think if you write a custom 'select' which looks for > > 'device_type = "mdio"' with gianfar compatible and similar in the other > > binding, then the warning will go away. > > I'm not sure how the 'select' syntax works, is there a reference > document I could read? Ok, I think I figured it out, this seems to work as intended: select: oneOf: - properties: compatible: enum: - fsl,gianfar-tbi - fsl,gianfar-mdio - fsl,etsec2-tbi - fsl,etsec2-mdio - fsl,ucc-mdio required: - compatible - properties: compatible: enum: - gianfar - ucc_geth_phy device_type: const: mdio required: - compatible - device_type properties: compatible: enum: - fsl,gianfar-tbi - fsl,gianfar-mdio - fsl,etsec2-tbi - fsl,etsec2-mdio - fsl,ucc-mdio - gianfar - ucc_geth_phy reg: ... Best regards, J. Neuschäfer