Renesas R-Car CAN FD Controller

Schema identifier ($id): "http://devicetree.org/schemas/net/can/renesas,rcar-canfd.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Fabrizio Castro <fabrizio.castro.jz@renesas.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "renesas,r9a09g047-canfd", "renesas,r9a09g077-canfd"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a774a1-canfd", "renesas,r8a774b1-canfd", "renesas,r8a774c0-canfd", "renesas,r8a774e1-canfd", "renesas,r8a7795-canfd", "renesas,r8a7796-canfd", "renesas,r8a77961-canfd", "renesas,r8a77965-canfd", "renesas,r8a77970-canfd", "renesas,r8a77980-canfd", "renesas,r8a77990-canfd", "renesas,r8a77995-canfd"

Item 2

Exact value (const): "renesas,rcar-gen3-canfd"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r8a779a0-canfd", "renesas,r8a779g0-canfd", "renesas,r8a779h0-canfd"

Item 2

Exact value (const): "renesas,rcar-gen4-canfd"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r9a07g043-canfd", "renesas,r9a07g044-canfd", "renesas,r9a07g054-canfd"

Item 2

Exact value (const): "renesas,rzg2l-canfd"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r9a09g056-canfd", "renesas,r9a09g057-canfd"

Item 2

Exact value (const): "renesas,r9a09g047-canfd"

Rule 6

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a09g087-canfd"

Item 2

Exact value (const): "renesas,r9a09g077-canfd"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Channel interrupt

Item 2

Global interrupt

Rule 2

Array item rules (items)

Item 1

CAN global error interrupt

Item 2

CAN receive FIFO interrupt

Item 3

CAN0 error interrupt

Item 4

CAN0 transmit interrupt

Item 5

CAN0 transmit/receive FIFO receive completion interrupt

Item 6

CAN1 error interrupt

Item 7

CAN1 transmit interrupt

Item 8

CAN1 transmit/receive FIFO receive completion interrupt

Item 9

CAN2 error interrupt

Item 10

CAN2 transmit interrupt

Item 11

CAN2 transmit/receive FIFO receive completion interrupt

Item 12

CAN3 error interrupt

Item 13

CAN3 transmit interrupt

Item 14

CAN3 transmit/receive FIFO receive completion interrupt

Item 15

CAN4 error interrupt

Item 16

CAN4 transmit interrupt

Item 17

CAN4 transmit/receive FIFO receive completion interrupt

Item 18

CAN5 error interrupt

Item 19

CAN5 transmit interrupt

Item 20

CAN5 transmit/receive FIFO receive completion interrupt

Minimum number of items (minItems): 8

interrupt-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "ch_int"

Item 2

Exact value (const): "g_int"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "g_err"

Item 2

Exact value (const): "g_recc"

Item 3

Exact value (const): "ch0_err"

Item 4

Exact value (const): "ch0_rec"

Item 5

Exact value (const): "ch0_trx"

Item 6

Exact value (const): "ch1_err"

Item 7

Exact value (const): "ch1_rec"

Item 8

Exact value (const): "ch1_trx"

Item 9

Exact value (const): "ch2_err"

Item 10

Exact value (const): "ch2_rec"

Item 11

Exact value (const): "ch2_trx"

Item 12

Exact value (const): "ch3_err"

Item 13

Exact value (const): "ch3_rec"

Item 14

Exact value (const): "ch3_trx"

Item 15

Exact value (const): "ch4_err"

Item 16

Exact value (const): "ch4_rec"

Item 17

Exact value (const): "ch4_trx"

Item 18

Exact value (const): "ch5_err"

Item 19

Exact value (const): "ch5_rec"

Item 20

Exact value (const): "ch5_trx"

Minimum number of items (minItems): 8

clocks — required here #

Maximum number of items (maxItems): 3

clock-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "fck"

Item 2

Exact value (const): "canfd"

Item 3

Exact value (const): "can_clk"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "fck"

Item 2

Exact value (const): "ram_clk"

Item 3

Exact value (const): "can_clk"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

true — No constraints added by this property rule.

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rstp_n"

Item 2

Exact value (const): "rstc_n"

renesas,no-can-fd — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

The controller can operate in either CAN-FD mode (default) or FD-Only mode (RZ/{G2L,G3E} and R-Car Gen4) or Classical CAN mode. Specify this property to put the controller in Classical CAN mode.

renesas,fd-only — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

The CANFD on RZ/{G2L,G3E} and R-Car Gen4 SoCs support 3 modes FD-Only mode, Classical CAN mode and CAN-FD mode (default). In FD-Only mode, communication in Classical CAN frame format is disabled. Specify this property to put the controller in FD-Only mode.

assigned-clocks — required here #

Reference to the CANFD clock. The CANFD clock is a div6 clock and can be used by both CAN (if present) and CAN FD controllers at the same time. It needs to be scaled to maximum frequency if any of these controllers use it.

assigned-clock-rates — required here #

Maximum frequency of the CANFD clock.

Properties matching a name pattern (patternProperties) #

^channel[0-7]$ — name matches this regular expression #

Value type (type): "object"

The controller supports multiple channels and each is represented as a child node. Each channel can be enabled/disabled individually.

Properties and child nodes (properties) #

phys — not listed as required here

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains", "assigned-clocks", "assigned-clock-rates", "channel0", "channel1"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): can-controller.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rzg2l-canfd"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 8

interrupt-names — not listed as required here

Maximum number of items (maxItems): 8

resets — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen3-canfd", "renesas,rcar-gen4-canfd"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

resets — not listed as required here

Maximum number of items (maxItems): 1

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,r9a09g047-canfd"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 20

interrupt-names — not listed as required here

Minimum number of items (minItems): 20

resets — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,r9a09g077-canfd"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 8

interrupt-names — not listed as required here

Maximum number of items (maxItems): 8

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a09g077-canfd", "renesas,rcar-gen3-canfd", "renesas,rzg2l-canfd"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel[2-7]$ — name matches this regular expression

false — Not permitted by this property rule.

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,r8a779h0-canfd"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel[4-7]$ — name matches this regular expression

false — Not permitted by this property rule.

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,r9a09g047-canfd"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel[6-7]$ — name matches this regular expression

false — Not permitted by this property rule.

Rule 9 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen3-canfd"

When the condition matches (then) #

Properties and child nodes (properties)

renesas,fd-only — not listed as required here

false — Not permitted by this property rule.

Rule 10 #

Condition (if) #

Required in this object (required): "renesas,no-can-fd"

When the condition matches (then) #

Properties and child nodes (properties)

renesas,fd-only — not listed as required here

false — Not permitted by this property rule.

Rule 11 #

Condition (if) #

Required in this object (required): "renesas,fd-only"

When the condition matches (then) #

Properties and child nodes (properties)

renesas,no-can-fd — not listed as required here

false — Not permitted by this property rule.

Rule 12 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,r9a09g077-canfd"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

false — Not permitted by this property rule.

reset-names — not listed as required here

false — Not permitted by this property rule.

Rule 13 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a09g047-canfd", "renesas,rzg2l-canfd"

When the condition matches (then) #

Required in this object (required): "resets", "reset-names"

Rule 14 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen3-canfd", "renesas,rcar-gen4-canfd"

When the condition matches (then) #

Required in this object (required): "resets"

Properties and child nodes (properties)

reset-names — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7795-sysc.h>

canfd: can@e66c0000 {
        compatible = "renesas,r8a7795-canfd",
                     "renesas,rcar-gen3-canfd";
        reg = <0xe66c0000 0x8000>;
        interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "ch_int", "g_int";
        clocks = <&cpg CPG_MOD 914>,
                 <&cpg CPG_CORE R8A7795_CLK_CANFD>,
                 <&can_clk>;
        clock-names = "fck", "canfd", "can_clk";
        assigned-clocks = <&cpg CPG_CORE R8A7795_CLK_CANFD>;
        assigned-clock-rates = <40000000>;
        power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
        resets = <&cpg 914>;

        channel0 {
        };

        channel1 {
        };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 16: RZ/G3E

Line 17: RZ/T2H

Line 21: RZ/G2M

Line 22: RZ/G2N

Line 23: RZ/G2E

Line 24: RZ/G2H

Line 25: R-Car H3

Line 26: R-Car M3-W

Line 27: R-Car M3-W+

Line 28: R-Car M3-N

Line 29: R-Car V3M

Line 30: R-Car V3H

Line 31: R-Car E3

Line 32: R-Car D3

Line 33: R-Car Gen3 and RZ/G2

Line 37: R-Car V3U

Line 38: R-Car V4H

Line 39: R-Car V4M

Line 40: R-Car Gen4

Line 44: RZ/G2UL and RZ/Five

Line 45: RZ/G2{L,LC}

Line 46: RZ/V2L

Line 47: RZ/G2L family

Line 51: RZ/V2N

Line 52: RZ/V2H(P)

Line 56: RZ/N2H

Edit this page