Renesas R-Car CAN Controller

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

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

Maintainers (maintainers): "Sergei Shtylyov <sergei.shtylyov@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,can-r8a7778", "renesas,can-r8a7779"

Item 2

Exact value (const): "renesas,rcar-gen1-can"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,can-r8a7742", "renesas,can-r8a7743", "renesas,can-r8a7744", "renesas,can-r8a7745", "renesas,can-r8a77470", "renesas,can-r8a7790", "renesas,can-r8a7791", "renesas,can-r8a7792", "renesas,can-r8a7793", "renesas,can-r8a7794"

Item 2

Exact value (const): "renesas,rcar-gen2-can"

Rule 3

Array item rules (items)

Item 1

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

Item 2

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

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "clkp1"

Item 2

Exact value (const): "clkp2"

Item 3

Exact value (const): "can_clk"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

renesas,can-clock-select — not listed as required here #

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

Allowed values (enum): 0, 1, 3

Default value (default): 0

R-Car CAN Clock Source Select.  Valid values are:
  <0x0> (default) : Peripheral clock (clkp1)
  <0x1> : Peripheral clock (clkp2)
  <0x3> : External input clock

assigned-clocks — not listed as required here #

Reference to the clkp2 (CANFD) clock. On R-Car Gen3 and RZ/G2 SoCs, "clkp2" is the CANFD clock. This is a div6 clock and can be used by both CAN 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 — not listed as required here #

Maximum frequency of the CANFD clock.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,rcar-gen1-can"

When the condition matches (then) #

Required in this object (required): "resets"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

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

When the condition matches (then) #

Required in this object (required): "assigned-clocks", "assigned-clock-rates"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

can0: can@e6e80000 {
        compatible = "renesas,can-r8a7791", "renesas,rcar-gen2-can";
        reg = <0xe6e80000 0x1000>;
        interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&cpg CPG_MOD 916>,
                 <&cpg CPG_CORE R8A7791_CLK_RCAN>, <&can_clk>;
        clock-names = "clkp1", "clkp2", "can_clk";
        power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
        resets = <&cpg 916>;
};

Source notes #

Annotations retained from the schema source

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

Line 17: R-Car M1-A

Line 18: R-Car H1

Line 19: R-Car Gen1

Line 23: RZ/G1H

Line 24: RZ/G1M

Line 25: RZ/G1N

Line 26: RZ/G1E

Line 27: RZ/G1C

Line 28: R-Car H2

Line 29: R-Car M2-W

Line 30: R-Car V2H

Line 31: R-Car M2-N

Line 32: R-Car E2

Line 33: R-Car Gen2 and RZ/G1

Line 37: RZ/G2M

Line 38: RZ/G2N

Line 39: RZ/G2E

Line 40: RZ/G2H

Line 41: R-Car H3

Line 42: R-Car M3-W

Line 43: R-Car M3-W+

Line 44: R-Car M3-N

Line 45: R-Car E3

Line 46: R-Car D3

Line 47: R-Car Gen3 and RZ/G2

Edit this page