boards: arm: mimxrt685_evk: remove manual pinmux
red_pwm_led uses sc_timer, for which we have pinmux configuration in Devicetree. Remove hardcoded settings and move to DT. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
86895516b4
commit
c3daefaf5f
2 changed files with 2 additions and 24 deletions
|
@ -171,7 +171,8 @@
|
|||
group0 {
|
||||
pinmux = <SCT0_OUT7_PIO0_27>,
|
||||
<SCT0_OUT0_PIO0_14>,
|
||||
<SCT0_OUT6_PIO0_26>;
|
||||
<SCT0_OUT6_PIO0_26>,
|
||||
<SCT0_OUT6_PIO0_31>;
|
||||
slew-rate = "normal";
|
||||
drive-strength = "normal";
|
||||
};
|
||||
|
|
|
@ -42,29 +42,6 @@ static int mimxrt685_evk_pinmux_init(const struct device *dev)
|
|||
SYSCTL1->FCCTRLSEL[3] |= SYSCTL1_FCCTRLSEL_DATAOUTSEL(1);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(red_pwm_led), okay)
|
||||
uint32_t port0_pin31_config = (
|
||||
IOPCTL_PIO_FUNC3 |
|
||||
/* Disable pull-up / pull-down function */
|
||||
IOPCTL_PIO_PUPD_DI |
|
||||
/* Enable pull-down function */
|
||||
IOPCTL_PIO_PULLDOWN_EN |
|
||||
/* Disable input buffer function */
|
||||
IOPCTL_PIO_INBUF_DI |
|
||||
/* Normal mode */
|
||||
IOPCTL_PIO_SLEW_RATE_NORMAL |
|
||||
/* Normal drive */
|
||||
IOPCTL_PIO_FULLDRIVE_DI |
|
||||
/* Analog mux is disabled */
|
||||
IOPCTL_PIO_ANAMUX_DI |
|
||||
/* Pseudo Output Drain is disabled */
|
||||
IOPCTL_PIO_PSEDRAIN_DI |
|
||||
/* Input function is not inverted */
|
||||
IOPCTL_PIO_INV_DI);
|
||||
/* PORT0 PIN31 (coords: B3) is configured as SCT0_OUT6 */
|
||||
IOPCTL_PinMuxSet(IOPCTL, 0U, 31U, port0_pin31_config);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue