Skip to content

Commit e26a7bc

Browse files
committed
dts: arm: ti: mspm0: g: Add CAN-FD support for TI MSPM0 G-Series
Add CAN-FD devicetree nodes for MSPM0 G-Series SoCs that include the peripheral: mspm0g310x, mspm0g350x and mspm0gx51x. Signed-off-by: Santhosh Charles <[email protected]> Signed-off-by: Tomasz Bursztyka <[email protected]>
1 parent 9b2cd75 commit e26a7bc

File tree

3 files changed

+96
-0
lines changed

3 files changed

+96
-0
lines changed

dts/arm/ti/mspm0/g/mspm0g310x.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22

33
#include <ti/mspm0/g/mspm0g.dtsi>
4+
5+
/ {
6+
soc {
7+
canfd0: can@40508000 {
8+
compatible = "ti,mspm0-canfd";
9+
reg = <0x40508000 0x8000>, <0x4050F000 0x1000>, <0x40508000 0x400>;
10+
reg-names = "ti_canfd", "m_can", "message_ram";
11+
interrupts = <6 0>;
12+
clocks = <&ckm MSPM0_CLOCK_CANCLK>;
13+
ti,divider = <0>;
14+
bosch,mram-cfg = <0x0 20 8 3 3 0 3 3>;
15+
/*
16+
* # 20 11-bit filter elements = 20x4 = 80B
17+
* # 8 29-bit filter elements = 8x8 = 64B
18+
* # 3 RX FIFO0 elements = 3x72 = 216B
19+
* # 3 RX FIFO1 elements = 3x72 = 216B
20+
* # 0 RX buffer elemets = 0x72 = 0B
21+
* # 3 TX FIFO elements = 3x8 = 24B
22+
* # 3 TX Buffer elements = 3x72 = 216B
23+
* # Total RAM = 816B
24+
*/
25+
sample-point = <875>;
26+
status = "disabled";
27+
};
28+
};
29+
};

dts/arm/ti/mspm0/g/mspm0g350x.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22

33
#include <ti/mspm0/g/mspm0g.dtsi>
4+
5+
/ {
6+
soc {
7+
canfd0: can@40508000 {
8+
compatible = "ti,mspm0-canfd";
9+
reg = <0x40508000 0x8000>, <0x4050F000 0x1000>, <0x40508000 0x400>;
10+
reg-names = "ti_canfd", "m_can", "message_ram";
11+
interrupts = <6 0>;
12+
clocks = <&ckm MSPM0_CLOCK_CANCLK>;
13+
ti,divider = <0>;
14+
bosch,mram-cfg = <0x0 20 8 3 3 0 3 3>;
15+
/*
16+
* # 20 11-bit filter elements = 20x4 = 80B
17+
* # 8 29-bit filter elements = 8x8 = 64B
18+
* # 3 RX FIFO0 elements = 3x72 = 216B
19+
* # 3 RX FIFO1 elements = 3x72 = 216B
20+
* # 0 RX buffer elemets = 0x72 = 0B
21+
* # 3 TX FIFO elements = 3x8 = 24B
22+
* # 3 TX Buffer elements = 3x72 = 216B
23+
* # Total RAM = 816B
24+
*/
25+
sample-point = <875>;
26+
status = "disabled";
27+
};
28+
};
29+
};

dts/arm/ti/mspm0/g/mspm0gx51x.dtsi

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,49 @@
6060
status = "disabled";
6161
};
6262
};
63+
64+
canfd0: can@40508000 {
65+
compatible = "ti,mspm0-canfd";
66+
reg = <0x40508000 0x8000>, <0x4050F000 0x1000>, <0x40508000 0x400>;
67+
reg-names = "ti_canfd", "m_can", "message_ram";
68+
interrupts = <6 0>;
69+
clocks = <&ckm MSPM0_CLOCK_CANCLK>;
70+
ti,divider = <0>;
71+
bosch,mram-cfg = <0x0 20 8 3 3 0 3 3>;
72+
/*
73+
* # 20 11-bit filter elements = 20x4 = 80B
74+
* # 8 29-bit filter elements = 8x8 = 64B
75+
* # 3 RX FIFO0 elements = 3x72 = 216B
76+
* # 3 RX FIFO1 elements = 3x72 = 216B
77+
* # 0 RX buffer elemets = 0x72 = 0B
78+
* # 3 TX FIFO elements = 3x8 = 24B
79+
* # 3 TX Buffer elements = 3x72 = 216B
80+
* # Total RAM = 816B
81+
*/
82+
sample-point = <875>;
83+
status = "disabled";
84+
};
85+
86+
canfd1: can@40510000 {
87+
compatible = "ti,mspm0-canfd";
88+
reg = <0x40510000 0x8000>, <0x40510000 0x1000>, <0x40510000 0x400>;
89+
reg-names = "ti_canfd", "m_can", "message_ram";
90+
interrupts = <12 0>;
91+
clocks = <&ckm MSPM0_CLOCK_CANCLK>;
92+
ti,divider = <0>;
93+
bosch,mram-cfg = <0x0 20 8 3 3 0 3 3>;
94+
/*
95+
* # 20 11-bit filter elements = 20x4 = 80B
96+
* # 8 29-bit filter elements = 8x8 = 64B
97+
* # 3 RX FIFO0 elements = 3x72 = 216B
98+
* # 3 RX FIFO1 elements = 3x72 = 216B
99+
* # 0 RX buffer elemets = 0x72 = 0B
100+
* # 3 TX FIFO elements = 3x8 = 24B
101+
* # 3 TX Buffer elements = 3x72 = 216B
102+
* # Total RAM = 816B
103+
*/
104+
sample-point = <875>;
105+
status = "disabled";
106+
};
63107
};
64108
};

0 commit comments

Comments
 (0)