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