Re: [PATCH net-next 6/6] dt-bindings: net: dsa: mv88e6xxx: add mv88e6xxx-avb-mode property

From: Conor Dooley

Date: Wed May 27 2026 - 11:06:18 EST


On Wed, May 27, 2026 at 10:42:52AM +1000, Luke Howard wrote:
> Add the vendor-specific marvell,mv88e6xxx-avb-mode property for adding
> stricter handling of frames with non-AVB frame priorities and destination
> addresses.
>
> Signed-off-by: Luke Howard <lukeh@xxxxxxxx>
> ---
> .../bindings/net/dsa/marvell,mv88e6xxx.yaml | 26 +++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6xxx.yaml b/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6xxx.yaml
> index 19ae600e93394..1a01810e7682c 100644
> --- a/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6xxx.yaml
> +++ b/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6xxx.yaml
> @@ -97,6 +97,32 @@ properties:
> required:
> - compatible
>
> + marvell,mv88e6xxx-avb-mode:

"marvell,avb-mode" should be sufficient here.

> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Marvell MV88E6xxx switches that support Audio Video Bridging /
> + Time-Sensitive Networking (AVB/TSN) traffic prioritization can have
> + ports configured in one of several modes. These modes control the
> + handling of frames with non-AVB frame priorities and destination
> + addresses.

I've got no idea if this is a valid thing to make a property for, but I
really don't like this things being integers when there's some pretty
clear strings you could use instead: standard, enhanced and secure.

Also, you're missing a default, which is required for optional
properties.

Cheers,
Conor.

pw-bot: changes-requested

> + oneOf:
> + - description:
> + Standard Mode. Frames whose priority is mapped to an AVB
> + traffic class (TC) are considered AVB frames; other frames are
> + considered legacy (non-AVB).
> + const: 0
> + - description:
> + Enhanced Mode. Frames whose priority is mapped to an AVB TC
> + and for which a static FDB or MDB entry exists are considered
> + AVB frames. Frames with an AVB TC but no matching FDB or MDB
> + entry are dropped. AVB MDB entries can be added using the
> + MDB_FLAGS_STREAM_RESERVED netlink flag.
> + const: 1
> + - description:
> + Secure Mode. As Enhanced Mode, but the matching FDB or MDB
> + entry must also have the source port's bit set.
> + const: 2
> +
> allOf:
> - $ref: dsa.yaml#/$defs/ethernet-ports
>
> --
> 2.43.0
>
>

Attachment: signature.asc
Description: PGP signature