Flexcan CAN controller on Freescale's ARM and PowerPC system-on-a-chip (SOC).
Schema identifier ($id): "http://devicetree.org/schemas/net/can/fsl,flexcan.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 #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,imx95-flexcan","fsl,imx93-flexcan","fsl,imx8qm-flexcan","fsl,imx8mp-flexcan","fsl,imx6q-flexcan","fsl,imx28-flexcan","fsl,imx25-flexcan","fsl,p1010-flexcan","fsl,vf610-flexcan","fsl,ls1021ar2-flexcan","fsl,lx2160ar1-flexcan","nxp,s32g2-flexcan"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx53-flexcan","fsl,imx35-flexcan"Item 2
Exact value (
const):"fsl,imx25-flexcan"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx7d-flexcan","fsl,imx6ul-flexcan","fsl,imx6sx-flexcan"Item 2
Exact value (
const):"fsl,imx6q-flexcan"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,lx2160ar1-flexcan"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nxp,s32g2-flexcan"
Rule 6
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx95-flexcan"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clocks — not listed as required here #
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
Item 2
Exact value (
const):"per"
clock-frequency — not listed as required here #
The oscillator frequency driving the flexcan device, filled in by the boot loader. This property should only be used the used operating system doesn't support the clocks and clock-names property.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
xceiver-supply — not listed as required here #
Regulator that powers the CAN transceiver.
phys — not listed as required here #
Maximum number of items (maxItems): 1
big-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
This means the registers of FlexCAN controller are big endian. This is optional property.i.e. if this property is not present in device tree node then controller is assumed to be little endian. If this property is present then controller is assumed to be big endian.
can-transceiver — not listed as required here #
Shared schema rule ($ref): can-transceiver.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
fsl,stop-mode — not listed as required here #
Register bits of stop mode control.
The format should be as follows: <gpr req_gpr req_bit> gpr is the phandle to general purpose register node. req_gpr is the gpr register offset of CAN stop request. req_bit is the bit offset of CAN stop request.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
The 'gpr' is the phandle to general purpose register node.
Item 2
The 'req_gpr' is the gpr register offset of CAN stop request.
Maximum value (
maximum):255Item 3
The 'req_bit' is the bit offset of CAN stop request.
Maximum value (
maximum):31
fsl,clk-source — not listed as required here #
Select the clock source to the CAN Protocol Engine (PE). It's SoC implementation dependent. Refer to RM for detailed definition. If this property is not set in device tree node then driver selects clock source 1 by default. 0: clock source 0 (oscillator clock) 1: clock source 1 (peripheral clock)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Default value (default): 1
Minimum value (minimum): 0
Maximum value (maximum): 1
wakeup-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable CAN remote wakeup.
fsl,scu-index — not listed as required here #
The scu index of CAN instance. For SoCs with SCU support, need setup stop mode via SCU firmware, so this property can help indicate a resource. It supports up to 3 CAN instances now.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 0
Maximum value (maximum): 2
termination-gpios — not listed as required here #
true — No constraints added by this property rule.
termination-ohms — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"nxp,s32g2-flexcan"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereArray item rules (
items)Item 1
Message Buffer interrupt for mailboxes 0-7 and Enhanced RX FIFO
Item 2
Device state change
Item 3
Bus Error detection
Item 4
Message Buffer interrupt for mailboxes 8-127
interrupt-names— required hereArray item rules (
items)Item 1
Exact value (
const):"mb-0"Item 2
Exact value (
const):"state"Item 3
Exact value (
const):"berr"Item 4
Exact value (
const):"mb-1"When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
interrupt-names— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
phys— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
can@1c000 {
compatible = "fsl,p1010-flexcan";
reg = <0x1c000 0x1000>;
interrupts = <48 0x2>;
interrupt-parent = <&mpic>;
clock-frequency = <200000000>;
fsl,clk-source = /bits/ 8 <0>;
};
#include <dt-bindings/interrupt-controller/irq.h>
can@2090000 {
compatible = "fsl,imx6q-flexcan";
reg = <0x02090000 0x4000>;
interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks 1>, <&clks 2>;
clock-names = "ipg", "per";
fsl,stop-mode = <&gpr 0x34 28>;
fsl,scu-index = /bits/ 8 <1>;
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
can@2090000 {
compatible = "fsl,imx6q-flexcan";
reg = <0x02090000 0x4000>;
interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks 1>, <&clks 2>;
clock-names = "ipg", "per";
fsl,stop-mode = <&gpr 0x34 28>;
termination-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
termination-ohms = <120>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)