boards: remove ftm pinmux configuration
Remove ftm pinmux configuration from kinetis boards, as ftm driver supports pinctrl Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
6537a867e3
commit
3acee9064c
7 changed files with 1 additions and 79 deletions
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -44,4 +44,5 @@
|
|||
prescaler = <128>;
|
||||
#pwm-cells = <3>;
|
||||
pinctrl-0 = <&ftm2_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue