Skip to content
Permalink
Browse files

soc: nxp: k6x: Add CAN support

This commit adds CAN support for Kinetis K6x family.

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
  • Loading branch information...
alexanderwachter authored and MaureenHelm committed Jun 25, 2019
1 parent f5b2276 commit 14e31ba419fc43b08718666a9a2e64647ed04130
@@ -433,6 +433,23 @@
interrupts = <23 0>;
label = "RNGA";
};

can0: can@40024000 {
compatible = "nxp,kinetis-flexcan";
reg = <0x40024000 0x1000>;
interrupts = <75 0>, <76 0>, <77 0>, <78 0>, <79 0>, <80 0>;
interrupt-names = "mb-0-15", "bus-off", "error", "tx-warning", "rx-warning", "wake-up";
clocks = <&sim KINETIS_SIM_BUS_CLK 0x103C 4>;
clk-source = <1>;
label = "CAN_0";
sjw = <1>;
prop-seg = <1>;
phase-seg1 = <3>;
phase-seg2 = <2>;
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
};
};

@@ -19,6 +19,13 @@ config ADC_MCUX_ADC16

endif # ADC

if CAN

config CAN_MCUX_FLEXCAN
default y

endif # CAN

if CLOCK_CONTROL

config CLOCK_CONTROL_MCUX_SIM
@@ -14,6 +14,7 @@ config SOC_MK64F12
select HAS_MCUX
select HAS_MCUX_ADC16
select HAS_MCUX_ENET
select HAS_MCUX_FLEXCAN
select HAS_MCUX_FTFX
select HAS_MCUX_FTM
select HAS_MCUX_RNGA
@@ -149,4 +149,6 @@
#define DT_ENTROPY_MCUX_RNGA_NAME DT_NXP_KINETIS_RNGA_40029000_LABEL
#define CONFIG_ENTROPY_NAME DT_NXP_KINETIS_RNGA_40029000_LABEL

#define DT_CAN_0_NAME DT_NXP_KINETIS_FLEXCAN_40024000_LABEL

/* End of SoC Level DTS fixup file */

0 comments on commit 14e31ba

Please sign in to comment.
You can’t perform that action at this time.