From 47e63a0f5c44f3dc8e26a1bbbec0baca7e044ff7 Mon Sep 17 00:00:00 2001 From: Hake Huang Date: Fri, 23 May 2025 22:14:55 +0800 Subject: [PATCH] app: enable for NXP frdm_mcxn947_mcxn947_cpu0 enable on frdm_mcxn947_mcxn947_cpu0 platform Signed-off-by: Hake Huang --- app/boards/frdm_mcxn947_mcxn947_cpu0.conf | 5 +++ app/boards/frdm_mcxn947_mcxn947_cpu0.overlay | 41 ++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 app/boards/frdm_mcxn947_mcxn947_cpu0.conf create mode 100644 app/boards/frdm_mcxn947_mcxn947_cpu0.overlay diff --git a/app/boards/frdm_mcxn947_mcxn947_cpu0.conf b/app/boards/frdm_mcxn947_mcxn947_cpu0.conf new file mode 100644 index 0000000..6a83572 --- /dev/null +++ b/app/boards/frdm_mcxn947_mcxn947_cpu0.conf @@ -0,0 +1,5 @@ +CONFIG_CAN_FD_MODE=y +CONFIG_LOG=y +CONFIG_CANNECTIVITY_LED=y +CONFIG_CANNECTIVITY_TERMINATION_GPIO=y +CONFIG_CANNECTIVITY_TIMESTAMP_COUNTER=n diff --git a/app/boards/frdm_mcxn947_mcxn947_cpu0.overlay b/app/boards/frdm_mcxn947_mcxn947_cpu0.overlay new file mode 100644 index 0000000..be9ba46 --- /dev/null +++ b/app/boards/frdm_mcxn947_mcxn947_cpu0.overlay @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2025 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + cannectivity: cannectivity { + compatible = "cannectivity"; + timestamp-counter = <&ctimer0>; + + channel0 { + compatible = "cannectivity-channel"; + can-controller = <&flexcan_fd0>; + termination-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; /* Red LED for testing */ + state-led = <&blue_led>; + activity-leds = <&green_led>; + }; + }; + + gs_usb0: gs_usb0 { + compatible = "gs_usb"; + label = "gs_usb"; + }; + +}; + +&peripheral { + /delete-node/ flexcan0; + flexcan_fd0: can@d4000 { + compatible = "nxp,flexcan-fd", "nxp,flexcan"; + reg = <0xd4000 0x4000>; + interrupts = <62 0>; + interrupt-names = "common"; + clocks = <&syscon MCUX_FLEXCAN0_CLK>; + clk-source = <0>; + pinctrl-0 = <&pinmux_flexcan0>; + pinctrl-names = "default"; + status = "okay"; + }; +};