boards: nxp: frdm_mcxa153: Support lpi2c for NXP frdm_mcxa153 board

Support lpi2c for NXP frdm_mcxa153 board.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
This commit is contained in:
Neil Chen 2025-04-28 13:43:38 +08:00 committed by Benjamin Cabé
commit 65d794a9d7
4 changed files with 24 additions and 0 deletions

View file

@ -103,6 +103,11 @@ void board_early_init_hook(void)
SPC_EnableActiveModeAnalogModules(SPC0, (kSPC_controlCmp0 | kSPC_controlCmp0Dac)); SPC_EnableActiveModeAnalogModules(SPC0, (kSPC_controlCmp0 | kSPC_controlCmp0Dac));
#endif #endif
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpi2c0))
CLOCK_SetClockDiv(kCLOCK_DivLPI2C0, 1u);
CLOCK_AttachClk(kFRO12M_to_LPI2C0);
#endif
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpuart0)) #if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpuart0))
CLOCK_SetClockDiv(kCLOCK_DivLPUART0, 1u); CLOCK_SetClockDiv(kCLOCK_DivLPUART0, 1u);
CLOCK_AttachClk(kFRO12M_to_LPUART0); CLOCK_AttachClk(kFRO12M_to_LPUART0);

View file

@ -34,6 +34,18 @@
}; };
}; };
pinmux_lpi2c0: pinmux_lpi2c0 {
group0 {
pinmux = <LPI2C0_SDA_P1_8>,
<LPI2C0_SCL_P1_9>;
slew-rate = "fast";
drive-strength = "low";
input-enable;
bias-pull-up;
drive-open-drain;
};
};
pinmux_lpuart0: pinmux_lpuart0 { pinmux_lpuart0: pinmux_lpuart0 {
group0 { group0 {
pinmux = <LPUART0_RXD_P0_2>, pinmux = <LPUART0_RXD_P0_2>,

View file

@ -132,6 +132,12 @@
pinctrl-names = "default"; pinctrl-names = "default";
}; };
&lpi2c0 {
status = "okay";
pinctrl-0 = <&pinmux_lpi2c0>;
pinctrl-names = "default";
};
&lpuart0 { &lpuart0 {
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;

View file

@ -18,6 +18,7 @@ supported:
- dma - dma
- flash - flash
- gpio - gpio
- i2c
- pwm - pwm
- uart - uart
vendor: nxp vendor: nxp