Renesas SoC compatibles naming convention
Schema identifier ($id): "http://devicetree.org/schemas/soc/renesas/renesas-soc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>", "Niklas Söderlund <niklas.soderlund@ragnatech.se>"
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.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)String pattern (
pattern):"^renesas,.+-.+$"
Properties and child nodes (properties) #
compatible — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items) #
At least one of these rules must match (
anyOf)Rule 1
String pattern (
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-]+$"Rule 2
String pattern (
pattern):"^renesas,(condor|falcon|gr-peach|gray-hawk|salvator|sk-rz|smar(c(2)?)?|spider|white-hawk)(.*)?$"Rule 3
String pattern (
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-]+$"Rule 4
String pattern (
pattern):"^renesas,(d|s)?bsc(3)?-(r8a73a4|r8a7740|sh73a0)$"Rule 5
String pattern (
pattern):"^renesas,em-(gio|sti|uart)$"Rule 6
String pattern (
pattern):"^renesas,fsi2-(r8a7740|sh73a0)$"Rule 7
String pattern (
pattern):"^renesas,hspi-r8a777[89]$"Rule 8
String pattern (
pattern):"^renesas,sysc-(r8a73a4|r8a7740|rmobile|sh73a0)$"Rule 9
Allowed values (
enum):"renesas,imr-lx4","renesas,mtu2-r7s72100"Rule 10
Rule 11
String pattern (
pattern):"^(?!renesas,.+-.+).+$"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 38: Preferred naming style for compatibles of SoC components
Line 42: Legacy compatibles
Line 43:
Line 44: New compatibles are not allowed.
Line 55: None SoC component compatibles
Line 56:
Line 57: Compatibles with the Renesas vendor prefix that do not relate to any SoC
Line 58: component are OK. New compatibles are allowed.
Line 62: Do not fail compatibles not matching the select pattern
Line 63:
Line 64: Some SoC components in addition to a Renesas compatible list
Line 65: compatibles not related to Renesas. The select pattern for this
Line 66: schema hits all compatibles that have at lest one Renesas compatible
Line 67: and try to validate all values in that compatible array, allow all
Line 68: that don't match the schema select pattern. For example,
Line 69:
Line 70: compatible = "renesas,r9a07g044-mali", "arm,mali-bifrost";