]> git.karo-electronics.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/net/can/m_can.txt
ENGR00319455-1 can: m_can: add Bosch M_CAN controller support
[karo-tx-linux.git] / Documentation / devicetree / bindings / net / can / m_can.txt
1 Bosch MCAN controller Device Tree Bindings
2 -------------------------------------------------
3
4 Required properties:
5 - compatible            : Should be "bosch,m_can" for M_CAN controllers
6 - reg                   : physical base address and size of the M_CAN
7                           registers map and message ram
8 - interrupts            : property with a value describing the interrupt
9                           number
10 - clocks                : clocks used by controller
11 - mram-cfg              : message ram configuration data, the format is
12   <offset sidf_elems xidf_elems rxf1_elems rxb_elems txe_elems txb_elems>
13   The 'offset' is the address offset inside the message ram. This is usually set
14   if you're using the shared message ram while the other part is used by another
15   m_can controller.
16   The left cell are all the number of each elements inside the message ram.
17   Please refer to 2.4.1 Message RAM Con.guration in Bosch M_CAN user mannual
18   for each elements definition.
19
20 Example:
21 canfd1: canfd@020e8000 {
22         compatible = "bosch,m_can";
23         reg = <0x020e8000 0x4000>, <0x02298000 0x4000>;
24         reg-names = "canfd", "message_ram";
25         interrupts = <0 114 0x04>;
26         clocks = <&clks IMX6SX_CLK_CANFD>;
27         mram-cfg = <0x0 0 0 32 32 32 0 1>;
28         status = "disabled";
29 };