Re: [PATCH mt76 v2 1/3] dt-bindings: net: wireless: mt76: Document power-limits country property

From: Johannes Berg

Date: Mon Oct 06 2025 - 16:48:27 EST


On Mon, 2025-10-06 at 15:45 -0500, Rob Herring wrote:
>
> > + country:
> > + $ref: /schemas/types.yaml#/definitions/string
> > + description:
> > + ISO 3166-1 alpha-2 country code for power limits
>
> This would be constrained to something like this?:
>
> pattern: '^[A-Z]{2}$'

There's a "00" special case for "world roaming", so maybe that would
have to be '^([A-Z]{2}|00)$'? Not sure you'd ever want to specify that
though. We also use '99' internally for even more special cases, but I'm
pretty sure that shouldn't be specified externally.

johannes