xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/can/sja1000.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunMemory mapped SJA1000 CAN controller from NXP (formerly Philips)
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun- compatible : should be one of "nxp,sja1000", "technologic,sja1000".
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun- reg : should specify the chip select, address offset and size required
8*4882a593Smuzhiyun	to map the registers of the SJA1000. The size is usually 0x80.
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun- interrupts: property with a value describing the interrupt source
11*4882a593Smuzhiyun	(number and sensitivity) required for the SJA1000.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOptional properties:
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun- reg-io-width : Specify the size (in bytes) of the IO accesses that
16*4882a593Smuzhiyun	should be performed on the device.  Valid value is 1, 2 or 4.
17*4882a593Smuzhiyun	This property is ignored for technologic version.
18*4882a593Smuzhiyun	Default to 1 (8 bits).
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun- nxp,external-clock-frequency : Frequency of the external oscillator
21*4882a593Smuzhiyun	clock in Hz. Note that the internal clock frequency used by the
22*4882a593Smuzhiyun	SJA1000 is half of that value. If not specified, a default value
23*4882a593Smuzhiyun	of 16000000 (16 MHz) is used.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun- nxp,tx-output-mode : operation mode of the TX output control logic:
26*4882a593Smuzhiyun	<0x0> : bi-phase output mode
27*4882a593Smuzhiyun	<0x1> : normal output mode (default)
28*4882a593Smuzhiyun	<0x2> : test output mode
29*4882a593Smuzhiyun	<0x3> : clock output mode
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun- nxp,tx-output-config : TX output pin configuration:
32*4882a593Smuzhiyun	<0x01> : TX0 invert
33*4882a593Smuzhiyun	<0x02> : TX0 pull-down (default)
34*4882a593Smuzhiyun	<0x04> : TX0 pull-up
35*4882a593Smuzhiyun	<0x06> : TX0 push-pull
36*4882a593Smuzhiyun	<0x08> : TX1 invert
37*4882a593Smuzhiyun	<0x10> : TX1 pull-down
38*4882a593Smuzhiyun	<0x20> : TX1 pull-up
39*4882a593Smuzhiyun	<0x30> : TX1 push-pull
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun- nxp,clock-out-frequency : clock frequency in Hz on the CLKOUT pin.
42*4882a593Smuzhiyun	If not specified or if the specified value is 0, the CLKOUT pin
43*4882a593Smuzhiyun	will be disabled.
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun- nxp,no-comparator-bypass : Allows to disable the CAN input comparator.
46*4882a593Smuzhiyun
47*4882a593SmuzhiyunFor further information, please have a look to the SJA1000 data sheet.
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunExamples:
50*4882a593Smuzhiyun
51*4882a593Smuzhiyuncan@3,100 {
52*4882a593Smuzhiyun	compatible = "nxp,sja1000";
53*4882a593Smuzhiyun	reg = <3 0x100 0x80>;
54*4882a593Smuzhiyun	interrupts = <2 0>;
55*4882a593Smuzhiyun	interrupt-parent = <&mpic>;
56*4882a593Smuzhiyun	nxp,external-clock-frequency = <16000000>;
57*4882a593Smuzhiyun};
58*4882a593Smuzhiyun
59