summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
blob: c5ed89cd9c8f46ed4c9ac6643cee5f4d34ece33c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Flexcan CAN controller on Freescale's ARM and PowerPC system-on-a-chip (SOC).

Required properties:

- compatible : Should be "fsl,<processor>-flexcan"

  An implementation should also claim any of the following compatibles
  that it is fully backwards compatible with:

  - fsl,p1010-flexcan

- reg : Offset and length of the register set for this device
- interrupts : Interrupt tuple for this device

Optional properties:

- clock-frequency : The oscillator frequency driving the flexcan device

- xceiver-supply: Regulator that powers the CAN transceiver
- stop-mode: register bits of stop mode control, the format is
  <&gpr req_gpr req_bit ack_gpr ack_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.
  ack_gpr is the gpr register offset of CAN stop acknowledge.
  ack_bit is the bit offset of CAN stop acknowledge.
  stop-mode = <&gpr req_gpr req_bit ack_gpr ack_bit>, this format is for i.MX6/7
  series to set stop mode. For i.MX8 series, stop mode feature is supported by default.
- trx_en_gpio : enable gpio
- trx_stby_gpio : standby gpio
- trx_nerr_gpio : NERR gpio
- disable-fd-mode : disable CAN FD mode support. Valid since i.MX8 series.
- clk-src : Selects the clock source to the CAN Protocol Engine (PE). It's SoC
	    Implementation dependent. Refer to RM for detailed definition.
	    0: clock source 0 1: clock source 1

Example:

	can@1c000 {
		compatible = "fsl,p1010-flexcan";
		reg = <0x1c000 0x1000>;
		interrupts = <48 0x2>;
		interrupt-parent = <&mpic>;
		clock-frequency = <200000000>; // filled in by bootloader
	};