Bosch C_CAN/D_CAN controller

Schema identifier ($id): "http://devicetree.org/schemas/net/can/bosch,c_can.yaml#"

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

Bosch C_CAN/D_CAN controller for CAN bus

Maintainers (maintainers): "Dario Binacchi <dariobin@libero.it>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "bosch,c_can", "bosch,d_can", "ti,dra7-d_can", "ti,am3352-d_can"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,am4372-d_can"

Item 2

Exact value (const): "ti,am3352-d_can"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

power-domains — not listed as required here #

Should contain a phandle to a PM domain provider node and an args specifier containing the DCAN device id value. It's mandatory for Keystone 2 66AK2G SoCs only.

Maximum number of items (maxItems): 1

clocks — required here #

CAN functional clock phandle.

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Maximum number of items (maxItems): 1

syscon-raminit — not listed as required here #

Handle to system control region that contains the RAMINIT register, register offset to the RAMINIT register and the CAN instance number (0 offset).

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

The phandle to the system control region.

Item 2

The register offset.

Item 3

The CAN instance number.

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "bosch,d_can"

When the condition matches (then) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

Array item rules (items)

Item 1

Error and status IRQ

Item 2

Message object IRQ

Item 3

RAM ECC correctable error IRQ

Item 4

RAM ECC non-correctable error IRQ

When the condition does not match (else) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

Array item rules (items)

Item 1

Error and status IRQ

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/reset/altr,rst-mgr.h>

can@ffc00000 {
    compatible = "bosch,d_can";
    reg = <0xffc00000 0x1000>;
    interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>;
    clocks = <&can0_clk>;
    resets = <&rst CAN0_RESET>;
};
can@0 {
    compatible = "ti,am3352-d_can";
    reg = <0x0 0x2000>;
    clocks = <&dcan1_fck>;
    clock-names = "fck";
    syscon-raminit = <&scm_conf 0x644 1>;
    interrupts = <55>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page