Skip to content

Commit

Permalink
boards: nxp: Adjusted device tree on vmu_rt1170 for updated ENET_1G.
Browse files Browse the repository at this point in the history
Adjusted the board's device tree after ENET_1G compatible changed
from "nxp,kinetis-ethernet" to "nxp,enet1g".

Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
  • Loading branch information
stanislav-poboril authored and nashif committed Jun 7, 2024
1 parent 684885a commit db57c43
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 13 deletions.
3 changes: 0 additions & 3 deletions boards/nxp/vmu_rt1170/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ if NETWORKING
config NET_L2_ETHERNET
default y if CPU_CORTEX_M7 # No cache memory support is required for driver

config ETH_MCUX_PHY_RESET
default n

config ETH_MCUX_RMII_EXT_CLK
default y

Expand Down
29 changes: 22 additions & 7 deletions boards/nxp/vmu_rt1170/vmu_rt1170-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
* SPDX-License-Identifier: Apache-2.0
*
* Note: File generated by gen_board_pinctrl.py
* from vmu_rt1170.mex
* from vmu_rt1170.mex, then updated manually
*/

#include <nxp/nxp_imx/rt/mimxrt1176dvmaa-pinctrl.dtsi>

&pinctrl {
pinmux_enet: pinmux_enet {
pinmux_enet1g: pinmux_enet1g {
group0 {
pinmux = <&iomuxc_gpio_disp_b2_09_gpio_mux5_io10>,
<&iomuxc_gpio_disp_b1_00_enet_1g_rx_en>,
pinmux = <&iomuxc_gpio_disp_b1_00_enet_1g_rx_en>,
<&iomuxc_gpio_disp_b1_01_enet_1g_rx_er>;
drive-strength = "high";
bias-pull-down;
Expand All @@ -27,9 +26,7 @@
input-enable;
};
group2 {
pinmux = <&iomuxc_gpio_emc_b2_19_enet_1g_mdc>,
<&iomuxc_gpio_emc_b2_20_enet_1g_mdio>,
<&iomuxc_gpio_disp_b1_09_enet_1g_tdata00>,
pinmux = <&iomuxc_gpio_disp_b1_09_enet_1g_tdata00>,
<&iomuxc_gpio_disp_b1_08_enet_1g_tdata01>,
<&iomuxc_gpio_disp_b1_10_enet_1g_tx_en>;
drive-strength = "high";
Expand All @@ -44,6 +41,24 @@
};
};

pinmux_enet1g_mdio: pinmux_enet1g_mdio {
group0 {
pinmux = <&iomuxc_gpio_emc_b2_19_enet_1g_mdc>,
<&iomuxc_gpio_emc_b2_20_enet_1g_mdio>;
drive-strength = "high";
slew-rate = "fast";
};
group1 {
pinmux = <&iomuxc_gpio_disp_b2_09_gpio_mux5_io10>;
drive-strength = "high";
bias-pull-down;
slew-rate = "fast";
};
};

pinmux_enet1g_ptp: pinmux_enet1g_ptp {
};

pinmux_flexcan1: pinmux_flexcan1 {
group0 {
pinmux = <&iomuxc_gpio_ad_07_can1_rx>,
Expand Down
22 changes: 20 additions & 2 deletions boards/nxp/vmu_rt1170/vmu_rt1170.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,26 @@
status = "okay";
};

&enet1g {
pinctrl-0 = <&pinmux_enet>;
&enet1g_mac {
pinctrl-0 = <&pinmux_enet1g>;
pinctrl-names = "default";
phy-handle = <&enet1g_phy>;
phy-connection-type = "rmii";
zephyr,random-mac-address;
};

&enet1g_mdio {
pinctrl-0 = <&pinmux_enet1g_mdio>;
pinctrl-names = "default";
enet1g_phy: phy@1 {
compatible = "nxp,tja1103";
reg = <1>;
master-slave = "master";
};
};

&enet1g_ptp_clock {
pinctrl-0 = <&pinmux_enet1g_ptp>;
pinctrl-names = "default";
};

Expand Down
13 changes: 12 additions & 1 deletion boards/nxp/vmu_rt1170/vmu_rt1170_mimxrt1176_cm7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,18 @@

&enet1g {
status = "okay";
int-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>;
};

&enet1g_mac {
status = "okay";
};

&enet1g_mdio {
status = "okay";
enet1g_phy: phy@1 {
status = "okay";
int-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>;
};
};

zephyr_udc0: &usb1 {
Expand Down

0 comments on commit db57c43

Please sign in to comment.