> -----Original Message----- > From: Krzysztof Kozlowski <krzk@xxxxxxxxxx> > Sent: 28 January 2025 19:45 > To: Swathi K S <swathi.ks@xxxxxxxxxxx>; robh@xxxxxxxxxx; > davem@xxxxxxxxxxxxx; edumazet@xxxxxxxxxx; kuba@xxxxxxxxxx; > pabeni@xxxxxxxxxx; conor+dt@xxxxxxxxxx; richardcochran@xxxxxxxxx; > mcoquelin.stm32@xxxxxxxxx; andrew@xxxxxxx; alim.akhtar@xxxxxxxxxxx; > linux-fsd@xxxxxxxxx > Cc: netdev@xxxxxxxxxxxxxxx; devicetree@xxxxxxxxxxxxxxx; linux- > kernel@xxxxxxxxxxxxxxx; linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx; > linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-samsung-soc@xxxxxxxxxxxxxxx; > alexandre.torgue@xxxxxxxxxxx; peppe.cavallaro@xxxxxx; > joabreu@xxxxxxxxxxxx; rcsekar@xxxxxxxxxxx; ssiddha@xxxxxxxxx; > jayati.sahu@xxxxxxxxxxx; pankaj.dubey@xxxxxxxxxxx; > ravi.patel@xxxxxxxxxxx; gost.dev@xxxxxxxxxxx > Subject: Re: [PATCH v5 1/4] dt-bindings: net: Add FSD EQoS device tree > bindings > > On 28/01/2025 11:25, Swathi K S wrote: > > + Tesla ethernet devices based on dwmmac support Gigabit ethernet. > > + > > +allOf: > > + - $ref: snps,dwmac.yaml# > > + > > +properties: > > + compatible: > > + const: tesla,fsd-ethqos.yaml > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + minItems: 5 > > + maxItems: 10 > > Why is this flexible? > > Anyway, you need to list and describe the items instead of min/maxItems. Hi Krzysztof, There are 2 Ethernet instances where Eth0 has 5 clocks and Eth1 has 10 clocks. Would it be sufficient to list the clock names? > > > + > > + clock-names: > > + minItems: 5 > > + maxItems: 10 > > Same here. Ack > > > + > > + iommus: > > + maxItems: 1 > > + > > + phy-mode: > > + enum: > > + - rgmii-id > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - clock-names > > + - iommus > > + - phy-mode > > + > > +unevaluatedProperties: false > > + > > +examples: > > + - | > > + #include <dt-bindings/clock/fsd-clk.h> > > + #include <dt-bindings/interrupt-controller/arm-gic.h> > > + > > + ethernet_1: ethernet@14300000 { > > Please implement last comment from Rob. > > > + compatible = "tesla,fsd-ethqos"; > > + reg = <0x0 0x14300000 0x0 0x10000>; > > And since there is going to be new version, switch to the preferred > indentation (4-space). Other option is 2 spaces, but not 8. Ack, will update it this way in v6. - Swathi > > > +... > > > Best regards, > Krzysztof