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:
parent
4554bd0e7f
commit
65d794a9d7
4 changed files with 24 additions and 0 deletions
|
@ -103,6 +103,11 @@ void board_early_init_hook(void)
|
|||
SPC_EnableActiveModeAnalogModules(SPC0, (kSPC_controlCmp0 | kSPC_controlCmp0Dac));
|
||||
#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))
|
||||
CLOCK_SetClockDiv(kCLOCK_DivLPUART0, 1u);
|
||||
CLOCK_AttachClk(kFRO12M_to_LPUART0);
|
||||
|
|
|
@ -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 {
|
||||
group0 {
|
||||
pinmux = <LPUART0_RXD_P0_2>,
|
||||
|
|
|
@ -132,6 +132,12 @@
|
|||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&lpi2c0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&pinmux_lpi2c0>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&lpuart0 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
|
|
|
@ -18,6 +18,7 @@ supported:
|
|||
- dma
|
||||
- flash
|
||||
- gpio
|
||||
- i2c
|
||||
- pwm
|
||||
- uart
|
||||
vendor: nxp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue