diff --git a/boards/arm/frdm_k22f/pinmux.c b/boards/arm/frdm_k22f/pinmux.c index 8a2209bf347..9bcdb44349f 100644 --- a/boards/arm/frdm_k22f/pinmux.c +++ b/boards/arm/frdm_k22f/pinmux.c @@ -38,13 +38,6 @@ static int frdm_k22f_pinmux_init(const struct device *dev) __ASSERT_NO_MSG(device_is_ready(porte)); #endif -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm0), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM - /* Red, green, blue LEDs as PWM channels*/ - pinmux_pin_set(porta, 1, PORT_PCR_MUX(kPORT_MuxAlt3)); - pinmux_pin_set(porta, 2, PORT_PCR_MUX(kPORT_MuxAlt3)); - pinmux_pin_set(portd, 5, PORT_PCR_MUX(kPORT_MuxAlt4)); -#endif - #if DT_NODE_HAS_STATUS(DT_NODELABEL(spi0), okay) && CONFIG_SPI /* SPI0 CS0, SCK, SOUT, SIN */ pinmux_pin_set(portc, 4, PORT_PCR_MUX(kPORT_MuxAlt2)); diff --git a/boards/arm/frdm_k64f/pinmux.c b/boards/arm/frdm_k64f/pinmux.c index e4f02265bed..eb21509d76e 100644 --- a/boards/arm/frdm_k64f/pinmux.c +++ b/boards/arm/frdm_k64f/pinmux.c @@ -59,17 +59,6 @@ static int frdm_k64f_pinmux_init(const struct device *dev) pinmux_pin_set(portb, 10, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog)); #endif -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm0), nxp_kinetis_ftm_pwm, okay) \ - && CONFIG_PWM - pinmux_pin_set(portc, 1, PORT_PCR_MUX(kPORT_MuxAlt4)); -#endif - -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm3), nxp_kinetis_ftm_pwm, okay) \ - && CONFIG_PWM - pinmux_pin_set(portc, 8, PORT_PCR_MUX(kPORT_MuxAlt3)); - pinmux_pin_set(portc, 9, PORT_PCR_MUX(kPORT_MuxAlt3)); -#endif - #if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay) && CONFIG_NET_L2_ETHERNET pinmux_pin_set(porta, 5, PORT_PCR_MUX(kPORT_MuxAlt4)); pinmux_pin_set(porta, 12, PORT_PCR_MUX(kPORT_MuxAlt4)); diff --git a/boards/arm/frdm_k82f/pinmux.c b/boards/arm/frdm_k82f/pinmux.c index 606aa5e1e92..9a32048fb96 100644 --- a/boards/arm/frdm_k82f/pinmux.c +++ b/boards/arm/frdm_k82f/pinmux.c @@ -38,13 +38,6 @@ static int frdm_k82f_pinmux_init(const struct device *dev) __ASSERT_NO_MSG(device_is_ready(porte)); #endif -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm3), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM - /* Red, green, blue LEDs as PWM channels */ - pinmux_pin_set(portc, 8, PORT_PCR_MUX(kPORT_MuxAlt3)); - pinmux_pin_set(portc, 9, PORT_PCR_MUX(kPORT_MuxAlt3)); - pinmux_pin_set(portc, 10, PORT_PCR_MUX(kPORT_MuxAlt3)); -#endif - #if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay) && CONFIG_I2C /* I2C3 SDA, SCL */ pinmux_pin_set(porta, 1, PORT_PCR_MUX(kPORT_MuxAlt4) diff --git a/boards/arm/hexiwear_k64/pinmux.c b/boards/arm/hexiwear_k64/pinmux.c index d593f7271c6..71b093e3740 100644 --- a/boards/arm/hexiwear_k64/pinmux.c +++ b/boards/arm/hexiwear_k64/pinmux.c @@ -34,13 +34,6 @@ static int hexiwear_k64_pinmux_init(const struct device *dev) __ASSERT_NO_MSG(device_is_ready(porte)); #endif -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm3), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM - /* Red, green, blue LEDs as PWM channels */ - pinmux_pin_set(portc, 8, PORT_PCR_MUX(kPORT_MuxAlt3)); - pinmux_pin_set(portc, 9, PORT_PCR_MUX(kPORT_MuxAlt3)); - pinmux_pin_set(portd, 0, PORT_PCR_MUX(kPORT_MuxAlt4)); -#endif - #if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c0), okay) && CONFIG_I2C /* I2C0 SCL, SDA - heart rate, light, humidity */ pinmux_pin_set(portb, 0, PORT_PCR_MUX(kPORT_MuxAlt2) diff --git a/boards/arm/rddrone_fmuk66/pinmux.c b/boards/arm/rddrone_fmuk66/pinmux.c index 755c93c8ed0..765bdc67717 100644 --- a/boards/arm/rddrone_fmuk66/pinmux.c +++ b/boards/arm/rddrone_fmuk66/pinmux.c @@ -95,33 +95,6 @@ static int rddrone_fmuk66_pinmux_init(const struct device *dev) pinmux_pin_set(portb, 23, PORT_PCR_MUX(kPORT_MuxAlt2)); #endif - -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm0), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM - /* FlexTimer0 Channels for FMU (servo control) */ - /* fmu ch1 */ - pinmux_pin_set(portc, 1, PORT_PCR_MUX(kPORT_MuxAlt4)); - /* fmu ch2 */ - pinmux_pin_set(porta, 4, PORT_PCR_MUX(kPORT_MuxAlt3)); - /* fmu ch3 */ - pinmux_pin_set(portd, 4, PORT_PCR_MUX(kPORT_MuxAlt4)); - /* fmu ch4 */ - pinmux_pin_set(portd, 5, PORT_PCR_MUX(kPORT_MuxAlt4)); -#endif - -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm3), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM - /* FlexTimer3 Channels for PWM controlled RGB light and FMU (servo control) */ - /* red */ - pinmux_pin_set(portd, 1, PORT_PCR_MUX(kPORT_MuxAlt4)); - /* green */ - pinmux_pin_set(portc, 9, PORT_PCR_MUX(kPORT_MuxAlt3)); - /* blue */ - pinmux_pin_set(portc, 8, PORT_PCR_MUX(kPORT_MuxAlt3)); - /* fmu ch5 */ - pinmux_pin_set(porte, 11, PORT_PCR_MUX(kPORT_MuxAlt6)); - /* fmu ch6 */ - pinmux_pin_set(porte, 12, PORT_PCR_MUX(kPORT_MuxAlt6)); -#endif - return 0; } diff --git a/boards/arm/twr_ke18f/pinmux.c b/boards/arm/twr_ke18f/pinmux.c index d4a9b5574ca..cdc31bb4fc0 100644 --- a/boards/arm/twr_ke18f/pinmux.c +++ b/boards/arm/twr_ke18f/pinmux.c @@ -38,26 +38,6 @@ static int twr_ke18f_pinmux_init(const struct device *dev) __ASSERT_NO_MSG(device_is_ready(porte)); #endif -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm0), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM - /* Tri-color LED as PWM */ - pinmux_pin_set(portb, 5, PORT_PCR_MUX(kPORT_MuxAlt2)); - pinmux_pin_set(portd, 15, PORT_PCR_MUX(kPORT_MuxAlt2)); - pinmux_pin_set(portd, 16, PORT_PCR_MUX(kPORT_MuxAlt2)); -#endif - -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm2), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM - /* PWM output on J20 pin 5 */ - pinmux_pin_set(porte, 15, PORT_PCR_MUX(kPORT_MuxAlt4)); -#endif - -#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm3), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM - /* User LEDs as PWM */ - pinmux_pin_set(portc, 10, PORT_PCR_MUX(kPORT_MuxAlt2)); - pinmux_pin_set(portc, 11, PORT_PCR_MUX(kPORT_MuxAlt2)); - pinmux_pin_set(portc, 12, PORT_PCR_MUX(kPORT_MuxAlt2)); - pinmux_pin_set(portc, 13, PORT_PCR_MUX(kPORT_MuxAlt2)); -#endif - #if DT_NODE_HAS_STATUS(DT_NODELABEL(pwt), okay) && CONFIG_PWM_CAPTURE /* PWM capture input on J20 pin 8 */ pinmux_pin_set(porte, 11, PORT_PCR_MUX(kPORT_MuxAlt2)); diff --git a/tests/drivers/pwm/pwm_loopback/boards/twr_ke18f.overlay b/tests/drivers/pwm/pwm_loopback/boards/twr_ke18f.overlay index e8e6e391330..d618f2537e1 100644 --- a/tests/drivers/pwm/pwm_loopback/boards/twr_ke18f.overlay +++ b/tests/drivers/pwm/pwm_loopback/boards/twr_ke18f.overlay @@ -44,4 +44,5 @@ prescaler = <128>; #pwm-cells = <3>; pinctrl-0 = <&ftm2_default>; + pinctrl-names = "default"; };