boards: remove enet pinmux for kinetis boards
Remove unnecessary usage of pinmux driver for kinetis boards with ethernet Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
55f1d5ba73
commit
f5c9fce449
6 changed files with 13 additions and 45 deletions
|
@ -12,19 +12,15 @@
|
|||
&pinctrl {
|
||||
enet_default: enet_default {
|
||||
group0 {
|
||||
pinmux = <RMII0_RXER_PTA5>;
|
||||
drive-strength = "high";
|
||||
slew-rate = "fast";
|
||||
};
|
||||
group1 {
|
||||
pinmux = <RMII0_MDIO_PTB0>;
|
||||
drive-strength = "low";
|
||||
drive-open-drain;
|
||||
bias-pull-up;
|
||||
slew-rate = "fast";
|
||||
};
|
||||
group2 {
|
||||
pinmux = <RMII0_RXD1_PTA12>,
|
||||
group1 {
|
||||
pinmux = <RMII0_RXER_PTA5>,
|
||||
<RMII0_RXD1_PTA12>,
|
||||
<RMII0_RXD0_PTA13>,
|
||||
<RMII0_CRS_DV_PTA14>,
|
||||
<RMII0_TXEN_PTA15>,
|
||||
|
|
|
@ -43,27 +43,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_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));
|
||||
pinmux_pin_set(porta, 13, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(porta, 14, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(porta, 15, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(porta, 16, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(porta, 17, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
|
||||
pinmux_pin_set(portb, 0, PORT_PCR_MUX(kPORT_MuxAlt4)
|
||||
| PORT_PCR_ODE_MASK | PORT_PCR_PE_MASK | PORT_PCR_PS_MASK);
|
||||
|
||||
pinmux_pin_set(portb, 1, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_CHILD(DT_NODELABEL(enet), ptp), okay)
|
||||
pinmux_pin_set(portc, 16, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(portc, 17, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(portc, 18, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(flexcan0), okay) && CONFIG_CAN
|
||||
/* FlexCAN0 RX, TX */
|
||||
pinmux_pin_set(portb, 18, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* NOTE: Autogenerated file by kinetis_signal2dts.py
|
||||
* NOTE: Autogenerated file by kinetis_cfg_utils.py
|
||||
* for MK66FN2M0VMD18/signal_configuration.xml
|
||||
*
|
||||
* Copyright (c) 2022, NXP
|
||||
|
|
|
@ -38,19 +38,6 @@ static int ip_k66f_pinmux_init(const struct device *dev)
|
|||
__ASSERT_NO_MSG(device_is_ready(porte));
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay) && CONFIG_NET_L2_ETHERNET
|
||||
pinmux_pin_set(porta, 12, PORT_PCR_MUX(kPORT_MuxAlt4));/* RMII_RXD1 */
|
||||
pinmux_pin_set(porta, 13, PORT_PCR_MUX(kPORT_MuxAlt4));/* RMII_RXD0 */
|
||||
pinmux_pin_set(porta, 14, PORT_PCR_MUX(kPORT_MuxAlt4));/* RMII_CRS_DV */
|
||||
pinmux_pin_set(porta, 15, PORT_PCR_MUX(kPORT_MuxAlt4));/* RMII_RX_EN */
|
||||
pinmux_pin_set(porta, 16, PORT_PCR_MUX(kPORT_MuxAlt4));/* RMII_TXD0 */
|
||||
pinmux_pin_set(porta, 17, PORT_PCR_MUX(kPORT_MuxAlt4));/* RMII_TXD1 */
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(porte), okay)
|
||||
/* RMII_REF_CLK */
|
||||
pinmux_pin_set(porte, 26, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -183,7 +183,11 @@ arduino_serial: &lpuart3 {};
|
|||
|
||||
&enet {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&pinmux_enet>;
|
||||
pinctrl-names = "default";
|
||||
ptp {
|
||||
pinctrl-0 = <&pinmux_ptp>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* NOTE: Autogenerated file by kinetis_signal2dts.py
|
||||
* NOTE: Autogenerated file by kinetis_cfg_utils.py
|
||||
* for MK66FN2M0VMD18/signal_configuration.xml
|
||||
*
|
||||
* Copyright (c) 2022, NXP
|
||||
|
@ -76,6 +76,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
/* conflicts with UART2 */
|
||||
ftm3_default: ftm3_default {
|
||||
group0 {
|
||||
pinmux = <FTM3_CH3_PTD3>,
|
||||
|
@ -168,6 +169,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
/* conflicts with FTM3 */
|
||||
uart2_default: uart2_default {
|
||||
group0 {
|
||||
pinmux = <UART2_RX_PTD2>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue