Microchip MCP2517FD, MCP2518FD and MCP251863 stand-alone CAN controller
Schema identifier ($id): "http://devicetree.org/schemas/net/can/microchip,mcp251xfd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marc Kleine-Budde <mkl@pengutronix.de>"
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):"microchip,mcp2517fd","microchip,mcp2518fd","microchip,mcp251xfd"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"microchip,mcp2518fd"
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
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.
microchip,rx-int-gpios — not listed as required here #
GPIO phandle of GPIO connected to INT1 pin of the MCP251XFD, which signals a pending RX interrupt.
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Must be half or less of "clocks" frequency.
Maximum value (maximum): 20000000
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", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
can@0 {
compatible = "microchip,mcp251xfd";
reg = <0>;
clocks = <&can0_osc>;
pinctrl-names = "default";
pinctrl-0 = <&can0_pins>;
spi-max-frequency = <20000000>;
interrupts-extended = <&gpio 13 IRQ_TYPE_LEVEL_LOW>;
microchip,rx-int-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
vdd-supply = <®5v0>;
xceiver-supply = <®5v0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)