Re: [PATCH 1/2] dt-bindings: w1: Add YAML DT Schema for AMD w1 master and MAINTAINERS entry

From: Conor Dooley
Date: Fri Oct 13 2023 - 11:08:01 EST


On Fri, Oct 13, 2023 at 05:04:32PM +0200, Krzysztof Kozlowski wrote:
> On 13/10/2023 11:30, Kris Chaplin wrote:
> > Add YAML DT Schema for the AMD w1 master IP.
> >
> > This hardware guarantees protocol timing for driving off-board devices such
> > as thermal sensors, proms, etc using the 1wire protocol.
> >
> > Add MAINTAINERS entry for DT Schema.
> >
> > Co-developed-by: Thomas Delev <thomas.delev@xxxxxxx>
> > Signed-off-by: Thomas Delev <thomas.delev@xxxxxxx>
> > Signed-off-by: Kris Chaplin <kris.chaplin@xxxxxxx>
> > ---
> > .../bindings/w1/amd,axi-1wire-master.yaml | 44 +++++++++++++++++++
> > MAINTAINERS | 7 +++
> > 2 files changed, 51 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml
> > new file mode 100644
> > index 000000000000..41f7294a84a3
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/w1/amd,axi-1wire-master.yaml
> > @@ -0,0 +1,44 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/w1/amd,axi-1wire-master.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: AMD AXI 1-wire bus master for Programmable Logic
> > +
> > +maintainers:
> > + - Kris Chaplin <kris.chaplin@xxxxxxx>
> > +
> > +properties:
> > + compatible:
> > + const: amd,axi-1wire-master
>
> That's a quite generic compatible. axi is ARM term, 1-wire is the name
> of the bus and master is the role. Concatenating three common words does
> not create unique device name. Compatibles are supposed to be specific
> and this is really relaxed. Anything can be over AXI, everything in
> 1wire is 1wire and every master device is a master.

Given the vendor (and the title of the binding) this is almost certainly
an FPGA IP core, so the generic name is understandable. Using the exact
name of the IP in the AMD/Xilinx catalog probably is the best choice?

Attachment: signature.asc
Description: PGP signature