xref: /freebsd/sys/contrib/device-tree/Bindings/net/can/cc770.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotMemory mapped Bosch CC770 and Intel AN82527 CAN controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotNote: The CC770 is a CAN controller from Bosch, which is 100%
4*c66ec88fSEmmanuel Vadotcompatible with the old AN82527 from Intel, but with "bugs" being fixed.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel Vadot- compatible : should be "bosch,cc770" for the CC770 and "intc,82527"
9*c66ec88fSEmmanuel Vadot	for the AN82527.
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot- reg : should specify the chip select, address offset and size required
12*c66ec88fSEmmanuel Vadot	to map the registers of the controller. The size is usually 0x80.
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot- interrupts : property with a value describing the interrupt source
15*c66ec88fSEmmanuel Vadot	(number and sensitivity) required for the controller.
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel VadotOptional properties:
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot- bosch,external-clock-frequency : frequency of the external oscillator
20*c66ec88fSEmmanuel Vadot	clock in Hz. Note that the internal clock frequency used by the
21*c66ec88fSEmmanuel Vadot	controller is half of that value. If not specified, a default
22*c66ec88fSEmmanuel Vadot	value of 16000000 (16 MHz) is used.
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel Vadot- bosch,clock-out-frequency : slock frequency in Hz on the CLKOUT pin.
25*c66ec88fSEmmanuel Vadot	If not specified or if the specified value is 0, the CLKOUT pin
26*c66ec88fSEmmanuel Vadot	will be disabled.
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot- bosch,slew-rate : slew rate of the CLKOUT signal. If not specified,
29*c66ec88fSEmmanuel Vadot	a resonable value will be calculated.
30*c66ec88fSEmmanuel Vadot
31*c66ec88fSEmmanuel Vadot- bosch,disconnect-rx0-input : see data sheet.
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadot- bosch,disconnect-rx1-input : see data sheet.
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot- bosch,disconnect-tx1-output : see data sheet.
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot- bosch,polarity-dominant : see data sheet.
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel Vadot- bosch,divide-memory-clock : see data sheet.
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel Vadot- bosch,iso-low-speed-mux : see data sheet.
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel VadotFor further information, please have a look to the CC770 or AN82527.
44*c66ec88fSEmmanuel Vadot
45*c66ec88fSEmmanuel VadotExamples:
46*c66ec88fSEmmanuel Vadot
47*c66ec88fSEmmanuel Vadotcan@3,100 {
48*c66ec88fSEmmanuel Vadot	compatible = "bosch,cc770";
49*c66ec88fSEmmanuel Vadot	reg = <3 0x100 0x80>;
50*c66ec88fSEmmanuel Vadot	interrupts = <2 0>;
51*c66ec88fSEmmanuel Vadot	interrupt-parent = <&mpic>;
52*c66ec88fSEmmanuel Vadot	bosch,external-clock-frequency = <16000000>;
53*c66ec88fSEmmanuel Vadot};
54