Microchip MCP251X stand-alone CAN controller

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

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

Maintainers (maintainers): "Marc Kleine-Budde <mkl@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "microchip,mcp2510", "microchip,mcp2515", "microchip,mcp25625"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

Regulator that powers the CAN controller.

xceiver-supply — not listed as required here #

Regulator that powers the CAN transceiver.

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    can@1 {
        compatible = "microchip,mcp2515";
        reg = <1>;
        clocks = <&clk24m>;
        interrupt-parent = <&gpio4>;
        interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
        vdd-supply = <&reg5v0>;
        xceiver-supply = <&reg5v0>;
        gpio-controller;
        #gpio-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page