soc: imx93: enable flexcan driver

- Add flexcan dts node and pinctrl.

Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
This commit is contained in:
Chekhov Ma 2024-05-09 16:20:51 +08:00 committed by Fabio Baltieri
commit 643db3fa0b
2 changed files with 27 additions and 0 deletions

View file

@ -327,6 +327,30 @@
#size-cells = <0>;
};
flexcan1: can@443a0000 {
compatible = "nxp,flexcan-fd", "nxp,flexcan";
reg = <0x443a0000 DT_SIZE_K(64)>;
interrupt-parent= <&gic>;
interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
<GIC_SPI 9 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
interrupt-names = "common", "error";
clocks = <&ccm IMX_CCM_CAN1_CLK 0x68 14>;
clk-source = <0>;
status = "disabled";
};
flexcan2: can@425b0000 {
compatible = "nxp,flexcan-fd", "nxp,flexcan";
reg = <0x425b0000 DT_SIZE_K(64)>;
interrupt-parent= <&gic>;
interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
<GIC_SPI 52 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
interrupt-names = "common", "error";
clocks = <&ccm IMX_CCM_CAN1_CLK 0x68 14>;
clk-source = <0>;
status = "disabled";
};
edma4: dma@42000000 {
compatible = "nxp,edma";
reg = <0x42000000 (DT_SIZE_K(64) * 32)>;

View file

@ -32,6 +32,9 @@ static const struct arm_mmu_region mmu_regions[] = {
MMU_REGION_DT_COMPAT_FOREACH_FLAT_ENTRY(nxp_kinetis_lpuart,
(MT_DEVICE_nGnRnE | MT_P_RW_U_NA | MT_NS))
MMU_REGION_DT_COMPAT_FOREACH_FLAT_ENTRY(nxp_flexcan,
(MT_DEVICE_nGnRnE | MT_P_RW_U_NA | MT_NS))
#if CONFIG_SOF
MMU_REGION_FLAT_ENTRY("MU2_A", DT_REG_ADDR(DT_NODELABEL(mu2_a)),
DT_REG_SIZE(DT_NODELABEL(mu2_a)),