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>
This commit is contained in:
Alexander Wachter 2019-06-25 18:47:39 +02:00 committed by Maureen Helm
commit 14e31ba419
4 changed files with 27 additions and 0 deletions

View file

@ -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>;
};
};
};

View file

@ -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

View file

@ -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

View file

@ -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 */