xref: /freebsd/sys/contrib/device-tree/Bindings/net/can/mpc5xxx-mscan.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotCAN Device Tree Bindings
2*c66ec88fSEmmanuel Vadot------------------------
3*c66ec88fSEmmanuel Vadot
4*c66ec88fSEmmanuel Vadot(c) 2006-2009 Secret Lab Technologies Ltd
5*c66ec88fSEmmanuel VadotGrant Likely <grant.likely@secretlab.ca>
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadotfsl,mpc5200-mscan nodes
8*c66ec88fSEmmanuel Vadot-----------------------
9*c66ec88fSEmmanuel VadotIn addition to the required compatible-, reg- and interrupt-properties, you can
10*c66ec88fSEmmanuel Vadotalso specify which clock source shall be used for the controller:
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadot- fsl,mscan-clock-source : a string describing the clock source. Valid values
13*c66ec88fSEmmanuel Vadot			   are:	"ip" for ip bus clock
14*c66ec88fSEmmanuel Vadot				 "ref" for reference clock (XTAL)
15*c66ec88fSEmmanuel Vadot			   "ref" is default in case this property is not
16*c66ec88fSEmmanuel Vadot			   present.
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadotfsl,mpc5121-mscan nodes
19*c66ec88fSEmmanuel Vadot-----------------------
20*c66ec88fSEmmanuel VadotIn addition to the required compatible-, reg- and interrupt-properties, you can
21*c66ec88fSEmmanuel Vadotalso specify which clock source and divider shall be used for the controller:
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot- fsl,mscan-clock-source : a string describing the clock source. Valid values
24*c66ec88fSEmmanuel Vadot			   are:	"ip" for ip bus clock
25*c66ec88fSEmmanuel Vadot				"ref" for reference clock
26*c66ec88fSEmmanuel Vadot				"sys" for system clock
27*c66ec88fSEmmanuel Vadot			   If this property is not present, an optimal CAN
28*c66ec88fSEmmanuel Vadot			   clock source and frequency based on the system
29*c66ec88fSEmmanuel Vadot			   clock will be selected. If this is not possible,
30*c66ec88fSEmmanuel Vadot			   the reference clock will be used.
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot- fsl,mscan-clock-divider: for the reference and system clock, an additional
33*c66ec88fSEmmanuel Vadot			   clock divider can be specified. By default, a
34*c66ec88fSEmmanuel Vadot			   value of 1 is used.
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel VadotNote that the MPC5121 Rev. 1 processor is not supported.
37*c66ec88fSEmmanuel Vadot
38*c66ec88fSEmmanuel VadotExamples:
39*c66ec88fSEmmanuel Vadot	can@1300 {
40*c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc5121-mscan";
41*c66ec88fSEmmanuel Vadot		interrupts = <12 0x8>;
42*c66ec88fSEmmanuel Vadot		interrupt-parent = <&ipic>;
43*c66ec88fSEmmanuel Vadot		reg = <0x1300 0x80>;
44*c66ec88fSEmmanuel Vadot	};
45*c66ec88fSEmmanuel Vadot
46*c66ec88fSEmmanuel Vadot	can@1380 {
47*c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc5121-mscan";
48*c66ec88fSEmmanuel Vadot		interrupts = <13 0x8>;
49*c66ec88fSEmmanuel Vadot		interrupt-parent = <&ipic>;
50*c66ec88fSEmmanuel Vadot		reg = <0x1380 0x80>;
51*c66ec88fSEmmanuel Vadot		fsl,mscan-clock-source = "ref";
52*c66ec88fSEmmanuel Vadot		fsl,mscan-clock-divider = <3>;
53*c66ec88fSEmmanuel Vadot	};
54