From c3daefaf5f3eb86acb01725243c85af0daacdbe1 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 6 Jun 2022 13:57:33 -0700 Subject: [PATCH] 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 --- .../mimxrt685_evk_cm33-pinctrl.dtsi | 3 ++- boards/arm/mimxrt685_evk/pinmux.c | 23 ------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/boards/arm/mimxrt685_evk/mimxrt685_evk_cm33-pinctrl.dtsi b/boards/arm/mimxrt685_evk/mimxrt685_evk_cm33-pinctrl.dtsi index fde8a3002b3..6512d5b8f40 100644 --- a/boards/arm/mimxrt685_evk/mimxrt685_evk_cm33-pinctrl.dtsi +++ b/boards/arm/mimxrt685_evk/mimxrt685_evk_cm33-pinctrl.dtsi @@ -171,7 +171,8 @@ group0 { pinmux = , , - ; + , + ; slew-rate = "normal"; drive-strength = "normal"; }; diff --git a/boards/arm/mimxrt685_evk/pinmux.c b/boards/arm/mimxrt685_evk/pinmux.c index fb44771fd77..779293cdc17 100644 --- a/boards/arm/mimxrt685_evk/pinmux.c +++ b/boards/arm/mimxrt685_evk/pinmux.c @@ -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; }