Allwinner A10 CAN Controller

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

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

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

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun7i-a20-can"

Item 2

Exact value (const): "allwinner,sun4i-a10-can"

Rule 2

Exact value (const): "allwinner,sun4i-a10-can"

Rule 3

Exact value (const): "allwinner,sun8i-r40-can"

Rule 4

Exact value (const): "allwinner,sun20i-d1-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): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "allwinner,sun8i-r40-can", "allwinner,sun20i-d1-can"

When the condition matches (then) #

Required in this object (required): "resets"

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/sun7i-a20-ccu.h>

can0: can@1c2bc00 {
    compatible = "allwinner,sun7i-a20-can",
                 "allwinner,sun4i-a10-can";
    reg = <0x01c2bc00 0x400>;
    interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ccu CLK_APB1_CAN>;
};
#define RST_BUS_CAN		68
#define CLK_BUS_CAN		91
can1: can@1c2bc00 {
    compatible = "allwinner,sun8i-r40-can";
    reg = <0x01c2bc00 0x400>;
    interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&ccu CLK_BUS_CAN>;
    resets = <&ccu RST_BUS_CAN>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page