[PATCH 03/11] dt-bindings: mailbox: tegra-hsp: Properly sort compatible string list

Rob Herring robh at kernel.org
Wed May 14 09:17:32 PDT 2025


On Tue, May 06, 2025 at 03:31:10PM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding at nvidia.com>
> 
> We want these strings to be sorted in order of release date of the
> chips, so the Tegra264 entry should go after the Tegra234 entry.
> 
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> ---
>  .../devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml        | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml b/Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml
> index df6784a7c96a..cbc02b2a156a 100644
> --- a/Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml
> +++ b/Documentation/devicetree/bindings/mailbox/nvidia,tegra186-hsp.yaml
> @@ -66,10 +66,10 @@ properties:
>      oneOf:
>        - const: nvidia,tegra186-hsp
>        - const: nvidia,tegra194-hsp
> -      - const: nvidia,tegra264-hsp
>        - items:
>            - const: nvidia,tegra234-hsp
>            - const: nvidia,tegra194-hsp
> +      - const: nvidia,tegra264-hsp

The preference here is really to put all the single entry cases into 1 
enum. Order by release would be okay, but not something the DT 
maintainers know or can remember which bindings do that. So alphanumeric 
order is preferred.

Acked-by: Rob Herring (Arm) <robh at kernel.org>

Rob



More information about the linux-arm-kernel mailing list