[PATCH 10/12] dt-bindings: phy: allwinner: add v853 usb phy
Andre Przywara
andre.przywara at arm.com
Fri Jan 17 02:39:41 PST 2025
On Wed, 15 Jan 2025 07:51:50 +0000
Vinod Koul <vkoul at kernel.org> wrote:
> On 10-01-25, 13:39, Andras Szemzo wrote:
> > Document Allwinner v853 USB phy.
> >
> > Signed-off-by: Andras Szemzo <szemzo.andras at gmail.com>
> > ---
> > .../phy/allwinner,sun8i-v853-usb-phy.yaml | 89 +++++++++++++++++++
> > 1 file changed, 89 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/phy/allwinner,sun8i-v853-usb-phy.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun8i-v853-usb-phy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun8i-v853-usb-phy.yaml
> > new file mode 100644
> > index 000000000000..773c3f476db8
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/phy/allwinner,sun8i-v853-usb-phy.yaml
> > @@ -0,0 +1,89 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/phy/allwinner,sun8i-v853-usb-phy.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Allwinner V853 USB PHY
> > +
> > +maintainers:
> > + - Chen-Yu Tsai <wens at csie.org>
> > + - Maxime Ripard <mripard at kernel.org>
> > +
> > +properties:
> > + "#phy-cells":
> > + const: 1
> > +
> > + compatible:
> > + const:
> > + - allwinner,sun8i-v853-usb-phy
>
> Does this really need a new binding document, if so why... Cant this be
> added to one of the existing docs which driver uses?
The USB-PHY bindings don't differ too much on a first glance, but still
enough in nasty details (number of PHYs supported, number of clocks
required, etc.) to make a joint binding basically unreadable (we tried
that). That's why we opted to have separate bindings.
Now I believe it's worth to look for the closest existing binding, and
just put the compatible in there, in the hope we don't need much else, and
that it still stays readable.
Cheers,
Andre
More information about the linux-riscv
mailing list