Re: [PATCH net-next 02/20] dt-bindings: net: qcom,ppe: Add bindings yaml file

From: Andrew Lunn
Date: Mon Jan 22 2024 - 09:26:39 EST


> > > +++ b/Documentation/devicetree/bindings/net/qcom,ppe.yaml
> > > @@ -0,0 +1,1330 @@
> > > +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
> > > +%YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/net/qcom,ppe.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: Qualcomm Packet Process Engine Ethernet controller
> >
> > Where is the ref to ethernet controllers schema?
> Sorry, the title above is not describing the device for this dtbindings
> correctly. It should say "Qualcomm Packet Process Engine". The
> reference to the schema for PPE is mentioned above.

I think you are not correctly understanding the comment. within the
PPE you have a collection of Ethernet interfaces. All the common
properties for Ethernet ports are described in

Documentation/devicetree/bindings/net/ethernet-controller.yaml

so you are expected to reference this schema.

> > > +description:
> > > + The PPE(packet process engine) is comprised of three componets, Ethernet
> > > + DMA, Switch core and Port wrapper, Ethernet DMA is used to transmit and
> > > + receive packets between Ethernet subsytem and host. The Switch core has
> > > + maximum 8 ports(maximum 6 front panel ports and two FIFO interfaces),
> > > + among which there are GMAC/XGMACs used as external interfaces and FIFO
> > > + interfaces connected the EDMA/EIP, The port wrapper provides connections
> > > + from the GMAC/XGMACS to SGMII/QSGMII/PSGMII/USXGMII/10G-BASER etc, there
> > > + are maximu 3 UNIPHY(PCS) instances supported by PPE.

I think a big part of the problem here is, you have a flat
representation of the PPE. But device tree is very hierarchical. The
hardware itself is also probably very hierarchical. Please spend some
timer studying other DT descriptions of similar hardware. Then throw
away this vendor crap DT binding and start again from scratch, with a
hierarchical description of the hardware.

Andrew