boards: arm: nxp: kinetis: Convert pinmux to new DT based names
Convert board pinmux code to utilize pinmux port information from devicetree and not Kconfig. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
80b4ec0ee1
commit
b1e4913a8a
24 changed files with 138 additions and 322 deletions
|
@ -20,25 +20,6 @@ config MCG_VDIV0
|
|||
config MCG_FCRDIV
|
||||
default 0
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTD
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTE
|
||||
default y if "$(dt_nodelabel_enabled,uart1)" && SERIAL
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
config SPI_0
|
||||
default y
|
||||
depends on SPI
|
||||
|
|
|
@ -12,25 +12,25 @@ static int frdm_k22f_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTA
|
||||
const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porta), okay)
|
||||
__unused const struct device *porta =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTC
|
||||
const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTD
|
||||
const struct device *portd =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTD_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portd), okay)
|
||||
__unused const struct device *portd =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portd)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTE
|
||||
const struct device *porte =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
__unused const struct device *porte =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porte)));
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay) && CONFIG_SERIAL
|
||||
|
|
|
@ -20,26 +20,6 @@ config MCG_VDIV0
|
|||
config MCG_FCRDIV
|
||||
default 1
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTD
|
||||
default y if "$(dt_nodelabel_enabled,spi0)" && SPI
|
||||
default y if "$(dt_nodelabel_enabled,uart2)" && SERIAL
|
||||
|
||||
config PINMUX_MCUX_PORTE
|
||||
default y
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
config TEMP_KINETIS
|
||||
default y if "$(dt_nodelabel_enabled,adc1)"
|
||||
depends on SENSOR && ADC
|
||||
|
|
|
@ -12,25 +12,25 @@ static int frdm_k64f_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTA
|
||||
const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porta), okay)
|
||||
__unused const struct device *porta =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTC
|
||||
const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTD
|
||||
const struct device *portd =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTD_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portd), okay)
|
||||
__unused const struct device *portd =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portd)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTE
|
||||
const struct device *porte =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
__unused const struct device *porte =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porte)));
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay) && CONFIG_SERIAL
|
||||
|
|
|
@ -34,25 +34,6 @@ config FXOS8700_DRDY_INT1
|
|||
default y
|
||||
depends on FXOS8700_TRIGGER
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTD
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTE
|
||||
default y
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
config SPI_1
|
||||
default y
|
||||
depends on SPI
|
||||
|
|
|
@ -12,25 +12,25 @@ static int frdm_k82f_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTA
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porta), okay)
|
||||
__unused const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTC
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTD
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portd), okay)
|
||||
__unused const struct device *portd =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTD_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portd)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTE
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
__unused const struct device *porte =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porte)));
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm3), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM
|
||||
|
|
|
@ -23,23 +23,4 @@ config MCG_FRDIV
|
|||
config MCG_FCRDIV
|
||||
default 0
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default n
|
||||
|
||||
config PINMUX_MCUX_PORTD
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTE
|
||||
default y if "$(dt_nodelabel_enabled,i2c0)" && I2C
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
endif # BOARD_FRDM_KL25Z
|
||||
|
|
|
@ -12,25 +12,25 @@ static int frdm_kl25z_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTA
|
||||
const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porta), okay)
|
||||
__unused const struct device *porta =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
#if defined(CONFIG_PINMUX_MCUX_PORTC)
|
||||
const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTD
|
||||
const struct device *portd =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTD_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portd), okay)
|
||||
__unused const struct device *portd =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portd)));
|
||||
#endif
|
||||
#if defined(CONFIG_PINMUX_MCUX_PORTE)
|
||||
const struct device *porte =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
__unused const struct device *porte =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porte)));
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay) && CONFIG_SERIAL
|
||||
|
|
|
@ -17,20 +17,6 @@ config MCG_FRDIV
|
|||
config MCG_FCRDIV
|
||||
default 0
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y if "$(dt_nodelabel_enabled,adc0)" && ADC
|
||||
default y if "$(dt_nodelabel_enabled,tpm1)" && PWM
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default y
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
config FXOS8700_DRDY_INT1
|
||||
default y
|
||||
depends on FXOS8700_TRIGGER
|
||||
|
|
|
@ -12,17 +12,17 @@ static int frdm_kw41z_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTA
|
||||
const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porta), okay)
|
||||
__unused const struct device *porta =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTC
|
||||
const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
|
||||
/* Red, green, blue LEDs. Note the red LED and accel INT1 are both
|
||||
|
|
|
@ -20,25 +20,6 @@ config MCG_VDIV0
|
|||
config MCG_FCRDIV
|
||||
default 1
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y if MAX30101
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y if "$(dt_nodelabel_enabled,uart0)" && SERIAL
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTD
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTE
|
||||
default y if "$(dt_nodelabel_enabled,uart4)" && SERIAL
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
if ADC
|
||||
|
||||
config BATTERY_SENSE
|
||||
|
|
|
@ -13,21 +13,21 @@ static int hexiwear_k64_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTC
|
||||
const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTD
|
||||
const struct device *portd =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTD_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portd), okay)
|
||||
__unused const struct device *portd =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portd)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTE
|
||||
const struct device *porte =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
__unused const struct device *porte =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porte)));
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm3), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM
|
||||
|
@ -85,7 +85,7 @@ static int hexiwear_k64_pinmux_init(const struct device *dev)
|
|||
|
||||
#if defined(CONFIG_MAX30101) && DT_NODE_HAS_STATUS(DT_NODELABEL(gpioa), okay)
|
||||
const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
|
||||
/* LDO - MAX30101 power supply */
|
||||
pinmux_pin_set(porta, 29, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
|
|
|
@ -17,18 +17,4 @@ config MCG_FRDIV
|
|||
config MCG_FCRDIV
|
||||
default 0
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y if "$(dt_nodelabel_enabled,adc0)" && ADC
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default y if "$(dt_nodelabel_enabled,lpuart0)" && SERIAL
|
||||
default y if "$(dt_nodelabel_enabled,i2c1)" && I2C
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
endif # BOARD_HEXIWEAR_KW40Z
|
||||
|
|
|
@ -12,14 +12,13 @@ static int hexiwear_kw40z_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTC
|
||||
const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart0), okay) && CONFIG_SERIAL
|
||||
|
|
|
@ -36,17 +36,4 @@ config ETH_MCUX_NO_PHY_SMI
|
|||
|
||||
endif # NETWORKING
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y if "$(dt_nodelabel_enabled,spi1)" && SPI
|
||||
|
||||
config PINMUX_MCUX_PORTE
|
||||
default y if "$(dt_nodelabel_enabled,enet)" && NET_L2_ETHERNET
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
endif # BOARD_IP_K66F
|
||||
|
|
|
@ -12,19 +12,25 @@ static int ip_k66f_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTA
|
||||
const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porta), okay)
|
||||
__unused const struct device *porta =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTE
|
||||
const struct device *porte =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portd), okay)
|
||||
__unused const struct device *portd =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portd)));
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
__unused const struct device *porte =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porte)));
|
||||
#endif
|
||||
|
||||
/* Red0, Red2 LEDs */
|
||||
|
@ -41,7 +47,7 @@ static int ip_k66f_pinmux_init(const struct device *dev)
|
|||
pinmux_pin_set(porta, 24, PORT_PCR_MUX(kPORT_MuxAsGpio));/* !ETH_RST */
|
||||
pinmux_pin_set(porta, 25, PORT_PCR_MUX(kPORT_MuxAsGpio));/* !ETH_PME */
|
||||
pinmux_pin_set(porta, 26, PORT_PCR_MUX(kPORT_MuxAsGpio));/* !ETH_INT */
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTE
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
/* RMII_REF_CLK */
|
||||
pinmux_pin_set(porte, 26, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
#endif
|
||||
|
|
|
@ -7,7 +7,6 @@ if BOARD_TWR_KE18F
|
|||
|
||||
config BOARD_TWR_KE18F_FLEXIO_CLKOUT
|
||||
bool "Enable CLKOUT signal on FlexIO header"
|
||||
depends on PINMUX_MCUX_PORTE
|
||||
help
|
||||
Enable the CLKOUT signal on FlexIO header pin 7 (PTE10).
|
||||
|
||||
|
|
|
@ -18,25 +18,6 @@ config SPI_1
|
|||
|
||||
endif # SPI_MCUX_LPSPI
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTD
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTE
|
||||
default y
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
config TEMP_KINETIS
|
||||
default y if "$(dt_nodelabel_enabled,adc0)"
|
||||
depends on SENSOR && ADC
|
||||
|
|
|
@ -12,26 +12,25 @@ static int twr_ke18f_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTA
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porta), okay)
|
||||
__unused const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTC
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTD
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portd), okay)
|
||||
__unused const struct device *portd =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTD_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portd)));
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTE
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
__unused const struct device *porte =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porte)));
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(ftm0), nxp_kinetis_ftm_pwm, okay) && CONFIG_PWM
|
||||
|
|
|
@ -20,23 +20,4 @@ config MCG_VDIV0
|
|||
config MCG_FCRDIV
|
||||
default 1
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTD
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTE
|
||||
default y
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
endif # BOARD_TWR_KV58F220M
|
||||
|
|
|
@ -12,25 +12,25 @@ static int twr_kv58f220m_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTA
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porta), okay)
|
||||
__unused const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTC
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTD
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portd), okay)
|
||||
__unused const struct device *portd =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTD_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portd)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTE
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
__unused const struct device *porte =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porte)));
|
||||
#endif
|
||||
|
||||
/* LEDs */
|
||||
|
|
|
@ -24,22 +24,6 @@ config MCG_VDIV0
|
|||
config MCG_FCRDIV
|
||||
default 2
|
||||
|
||||
if PINMUX_MCUX
|
||||
|
||||
config PINMUX_MCUX_PORTA
|
||||
default y if "$(dt_nodelabel_enabled,uart0)" && SERIAL
|
||||
|
||||
config PINMUX_MCUX_PORTB
|
||||
default y if SPI_1
|
||||
|
||||
config PINMUX_MCUX_PORTC
|
||||
default y
|
||||
|
||||
config PINMUX_MCUX_PORTD
|
||||
default y
|
||||
|
||||
endif # PINMUX_MCUX
|
||||
|
||||
config SPI_1
|
||||
default y
|
||||
depends on SPI
|
||||
|
|
|
@ -12,21 +12,25 @@ static int usb_kw24d512_pinmux_init(const struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTA
|
||||
const struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porta), okay)
|
||||
__unused const struct device *porta =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porta)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTB
|
||||
const struct device *portb =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTB_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portb), okay)
|
||||
__unused const struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portb)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTC
|
||||
const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portc), okay)
|
||||
__unused const struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
#endif
|
||||
#ifdef CONFIG_PINMUX_MCUX_PORTD
|
||||
const struct device *portd =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTD_NAME);
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(portd), okay)
|
||||
__unused const struct device *portd =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portd)));
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
__unused const struct device *porte =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(porte)));
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay) && CONFIG_SERIAL
|
||||
|
|
|
@ -17,7 +17,7 @@ static int tagoio_pinmux_init(const struct device *dev)
|
|||
|
||||
#if defined(CONFIG_BOARD_FRDM_K64F)
|
||||
const struct device *portc =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(portc)));
|
||||
|
||||
pinmux_pin_set(portc, 2, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
pinmux_pin_set(portc, 3, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue