1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/can/fsl,flexcan.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 Flexcan CAN controller on Freescale's ARM and PowerPC system-on-a-chip (SOC).
11 - Marc Kleine-Budde <mkl@pengutronix.de>
14 - $ref: can-controller.yaml#
27 - fsl,ls1021ar2-flexcan
28 - fsl,lx2160ar1-flexcan
33 - const: fsl,imx25-flexcan
39 - const: fsl,imx6q-flexcan
42 - fsl,ls1028ar1-flexcan
43 - const: fsl,lx2160ar1-flexcan
61 The oscillator frequency driving the flexcan device, filled in by the
62 boot loader. This property should only be used the used operating system
63 doesn't support the clocks and clock-names property.
66 description: Regulator that powers the CAN transceiver.
69 $ref: /schemas/types.yaml#/definitions/flag
71 This means the registers of FlexCAN controller are big endian. This is
72 optional property.i.e. if this property is not present in device tree
73 node then controller is assumed to be little endian. If this property is
74 present then controller is assumed to be big endian.
78 Register bits of stop mode control.
80 The format should be as follows:
82 gpr is the phandle to general purpose register node.
83 req_gpr is the gpr register offset of CAN stop request.
84 req_bit is the bit offset of CAN stop request.
85 $ref: /schemas/types.yaml#/definitions/phandle-array
88 - description: The 'gpr' is the phandle to general purpose register node.
89 - description: The 'req_gpr' is the gpr register offset of CAN stop request.
91 - description: The 'req_bit' is the bit offset of CAN stop request.
96 Select the clock source to the CAN Protocol Engine (PE). It's SoC
97 implementation dependent. Refer to RM for detailed definition. If this
98 property is not set in device tree node then driver selects clock source 1
100 0: clock source 0 (oscillator clock)
101 1: clock source 1 (peripheral clock)
102 $ref: /schemas/types.yaml#/definitions/uint32
108 $ref: /schemas/types.yaml#/definitions/flag
110 Enable CAN remote wakeup.
117 additionalProperties: false
122 compatible = "fsl,p1010-flexcan";
123 reg = <0x1c000 0x1000>;
124 interrupts = <48 0x2>;
125 interrupt-parent = <&mpic>;
126 clock-frequency = <200000000>;
127 fsl,clk-source = <0>;
130 #include <dt-bindings/interrupt-controller/irq.h>
133 compatible = "fsl,imx6q-flexcan";
134 reg = <0x02090000 0x4000>;
135 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
136 clocks = <&clks 1>, <&clks 2>;
137 clock-names = "ipg", "per";
138 fsl,stop-mode = <&gpr 0x34 28>;