Renesas DT binding updates for v6.9 (take two)

- Restore sort order,
   - Document preferred compatible naming,
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQQ9qaHoIs/1I4cXmEiKwlD9ZEnxcAUCZdh41QAKCRCKwlD9ZEnx
 cGX/AP9Obd3osciKNZkGGZ8FnhkscTbqAe49bQIyDp4UIvg0GwD8DDbtByylTvP3
 OibRWsXlNsFD1vL0T6YNJASer31eTwo=
 =6wyy
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEiK/NIGsWEZVxh/FrYKtH/8kJUicFAmXgtEoACgkQYKtH/8kJ
 UicYqhAA1R+zxELkXovsWAtHsIvoULVud+KvGS1fYBuxwL5RB0ERWkdiQhdnvduV
 t9iby5B+0+POid7RssYAfkXOcMpzbyY0xPldvUwGXuClcvPeieGlnViXc3558GGf
 WkVIo0pWMG5RTeQwWY9OIhI1BBVGdskjvdsbk8GbilBweZPo6gFFmm/+/4bd5hx6
 A+HDYShqVR7rKROb+7oRqQlWHMfXH7KApnpvflm0XMF+aFPGT9WcMqvjw9wpVy9d
 dKB8yjAMr59fBNmFru6hkCFXhoRxFqAkow5FWaERm6UXApiKE9NuzIE9PaPAUkGh
 kPm3kKAaAWVjy7M44jKWJkeC+GvqfE7Dj5GcRo3PA+Cw2lIbJP5q0gvyr8RJ6Kz2
 MVdiJVYr6DZ7qx8H/0mDtxlOiadizTGuTMJnprwk2S/AHlDmTZvYg2Yv99jrOQdM
 TfHJbCiz+h037g/EmpDoP5okss1CmYBS7ukg9QXYenXYidUcDNhTaZw3xJl3j7Kr
 Mu0UYOOOydMhxwSgHSNcNRN9Jgl/AXWk1q0wtTBn+pcBGwqC4mqyo8Zy14nmDL5Y
 Pmt8jW7fSwfQCcvJ6iTyO612N13slrqttaSDa5ym8jYwLo8yFI2qywfc5Gp0DjqN
 D3B5S5it8KlxYLUehgMS/uBYaf3xnUHhs8mK+6VVIjBTJP0AZHQ=
 =tUxt
 -----END PGP SIGNATURE-----

Merge tag 'renesas-dt-bindings-for-v6.9-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into soc/dt

Renesas DT binding updates for v6.9 (take two)

  - Restore sort order,
  - Document preferred compatible naming,

* tag 'renesas-dt-bindings-for-v6.9-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
  dt-bindings: renesas: Document preferred compatible naming
  dt-bindings: soc: renesas: Preserve the order of SoCs based on their part numbers

Link: https://lore.kernel.org/r/cover.1708687132.git.geert+renesas@glider.be
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2024-02-29 17:43:53 +01:00
commit c860b6a65d
2 changed files with 79 additions and 6 deletions

View File

@ -0,0 +1,73 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/soc/renesas/renesas-soc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Renesas SoC compatibles naming convention
maintainers:
- Geert Uytterhoeven <geert+renesas@glider.be>
- Niklas Söderlund <niklas.soderlund@ragnatech.se>
description: |
Guidelines for new compatibles for SoC blocks/components.
When adding new compatibles in new bindings, use the format::
renesas,SoC-IP
For example::
renesas,r8a77965-csi2
When adding new compatibles to existing bindings, use the format in the
existing binding, even if it contradicts the above.
select:
properties:
compatible:
contains:
pattern: "^renesas,.+-.+$"
required:
- compatible
properties:
compatible:
minItems: 1
maxItems: 4
items:
anyOf:
# Preferred naming style for compatibles of SoC components
- pattern: "^renesas,(emev2|r(7s|8a|9a)[a-z0-9]+|rcar|rmobile|rz[a-z0-9]*|sh(7[a-z0-9]+)?|mobile)-[a-z0-9-]+$"
- pattern: "^renesas,(condor|falcon|gr-peach|salvator|sk-rz|smar(c(2)?)?|spider|white-hawk)(.*)?$"
# Legacy compatibles
#
# New compatibles are not allowed.
- pattern: "^renesas,(can|cpg|dmac|du|(g)?ether(avb)?|gpio|hscif|(r)?i[i2]c|imr|intc|ipmmu|irqc|jpu|mmcif|msiof|mtu2|pci(e)?|pfc|pwm|[rq]spi|rcar_sound|sata|scif[ab]*|sdhi|thermal|tmu|tpu|usb(2|hs)?|vin|xhci)-[a-z0-9-]+$"
- pattern: "^renesas,(d|s)?bsc(3)?-(r8a73a4|r8a7740|sh73a0)$"
- pattern: "^renesas,em-(gio|sti|uart)$"
- pattern: "^renesas,fsi2-(r8a7740|sh73a0)$"
- pattern: "^renesas,hspi-r8a777[89]$"
- pattern: "^renesas,sysc-(r8a73a4|r8a7740|rmobile|sh73a0)$"
- enum:
- renesas,imr-lx4
- renesas,mtu2-r7s72100
# None SoC component compatibles
#
# Compatibles with the Renesas vendor prefix that do not relate to any SoC
# component are OK. New compatibles are allowed.
- enum:
- renesas,smp-sram
# Do not fail compatibles not matching the select pattern
#
# Some SoC components in addition to a Renesas compatible list
# compatibles not related to Renesas. The select pattern for this
# schema hits all compatibles that have at lest one Renesas compatible
# and try to validate all values in that compatible array, allow all
# that don't match the schema select pattern. For example,
#
# compatible = "renesas,r9a07g044-mali", "arm,mali-bifrost";
- pattern: "^(?!renesas,.+-.+).+$"
additionalProperties: true

View File

@ -488,12 +488,6 @@ properties:
- renesas,r9a07g054l2 # Dual Cortex-A55 RZ/V2L
- const: renesas,r9a07g054
- description: RZ/V2M (R9A09G011)
items:
- enum:
- renesas,rzv2mevk2 # RZ/V2M Eval Board v2.0
- const: renesas,r9a09g011
- description: RZ/G3S (R9A08G045)
items:
- enum:
@ -513,6 +507,12 @@ properties:
- const: renesas,r9a08g045s33 # PCIe support
- const: renesas,r9a08g045
- description: RZ/V2M (R9A09G011)
items:
- enum:
- renesas,rzv2mevk2 # RZ/V2M Eval Board v2.0
- const: renesas,r9a09g011
additionalProperties: true
...