Skip to content

Commit 9df50c2

Browse files
Christophe Roullieratorgue
authored andcommitted
ARM: dts: stm32: Fix CAN RAM mapping on stm32mp157c
Split the 10Kbytes CAN message RAM to be able to use simultaneously FDCAN1 and FDCAN2 instances. First 5Kbytes are allocated to FDCAN1 and last 5Kbytes are used for FDCAN2. To do so, set the offset to 0x1400 in mram-cfg for FDCAN2. Fixes: d44d6e0 ("ARM: dts: stm32: change CAN RAM mapping on stm32mp157c") Signed-off-by: Christophe Roullier <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
1 parent 832c436 commit 9df50c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/boot/dts/stm32mp157c.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@
932932
interrupt-names = "int0", "int1";
933933
clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>;
934934
clock-names = "hclk", "cclk";
935-
bosch,mram-cfg = <0x1400 0 0 32 0 0 2 2>;
935+
bosch,mram-cfg = <0x0 0 0 32 0 0 2 2>;
936936
status = "disabled";
937937
};
938938

@@ -945,7 +945,7 @@
945945
interrupt-names = "int0", "int1";
946946
clocks = <&rcc CK_HSE>, <&rcc FDCAN_K>;
947947
clock-names = "hclk", "cclk";
948-
bosch,mram-cfg = <0x0 0 0 32 0 0 2 2>;
948+
bosch,mram-cfg = <0x1400 0 0 32 0 0 2 2>;
949949
status = "disabled";
950950
};
951951

0 commit comments

Comments
 (0)