boards: teensy4: Update config for ethernet

- Updates teensy board configs for use with new `eth_nxp_enet.c` driver
- Remove ethernet configs from teensy40 (4.0 has no ethernet phy)
- Adds a device entry to include `tests/drivers/build_all/ethernet/`

Signed-off-by: Bernhard Krämer <bdkrae@gmail.com>
This commit is contained in:
Bernhard Krämer 2024-09-13 22:10:14 +02:00 committed by Anas Nashif
parent 6ea04441f9
commit b4a35d9b10
5 changed files with 63 additions and 47 deletions

View file

@ -13,4 +13,12 @@ config BUILD_OUTPUT_HEX
config DISK_DRIVER_SDMMC
default y if DISK_DRIVERS
if NETWORKING
config NET_L2_ETHERNET
default n if BOARD_TEENSY40
default y if BOARD_TEENSY41
endif # NETWORKING
endif # BOARD_TEENSY40 || BOARD_TEENSY41

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2022, NXP
* Copyright (c) 2024, Bernhard Kraemer
* SPDX-License-Identifier: Apache-2.0
*
* Note: File generated by gen_board_pinctrl.py
@ -12,42 +13,41 @@
/* Mode Straps configuration DP83825 */
pinmux_enet: pinmux_enet {
group0 {
pinmux = <&iomuxc_gpio_b1_04_enet_rx_data0>,
<&iomuxc_gpio_b1_06_enet_rx_en>,
<&iomuxc_gpio_b1_11_enet_rx_er>;
drive-strength = "r0-5";
bias-pull-down;
bias-pull-down-value = "100k";
slew-rate = "fast";
nxp,speed = "200-mhz";
};
group1 {
pinmux = <&iomuxc_gpio_b1_05_enet_rx_data1>;
drive-strength = "r0-5";
bias-pull-up;
bias-pull-up-value = "22k";
slew-rate = "fast";
nxp,speed = "200-mhz";
};
group2 {
pinmux = <&iomuxc_gpio_b1_07_enet_tx_data0>,
<&iomuxc_gpio_b1_08_enet_tx_data1>,
<&iomuxc_gpio_b1_09_enet_tx_en>,
<&iomuxc_gpio_b1_14_enet_mdc>,
<&iomuxc_gpio_b1_15_enet_mdio>,
<&iomuxc_gpio_b0_15_gpio2_io15>,
<&iomuxc_gpio_b0_14_gpio2_io14>;
drive-strength = "r0-6";
slew-rate = "slow";
nxp,speed = "100-mhz";
};
group3 {
pinmux = <&iomuxc_gpio_b1_10_enet_ref_clk>;
bias-disable;
drive-strength = "r0-6";
slew-rate = "slow";
nxp,speed = "100-mhz";
input-enable;
};
group1 {
pinmux = <&iomuxc_gpio_b1_04_enet_rx_data0>,
<&iomuxc_gpio_b1_05_enet_rx_data1>,
<&iomuxc_gpio_b1_06_enet_rx_en>,
<&iomuxc_gpio_b1_07_enet_tx_data0>,
<&iomuxc_gpio_b1_08_enet_tx_data1>,
<&iomuxc_gpio_b1_09_enet_tx_en>,
<&iomuxc_gpio_b1_11_enet_rx_er>;
drive-strength = "r0-5";
bias-pull-up;
bias-pull-up-value = "100k";
slew-rate = "fast";
nxp,speed = "200-mhz";
};
};
pinmux_enet_mdio: pinmux_enet_mdio {
group0 {
pinmux = <&iomuxc_gpio_b1_14_enet_mdc>,
<&iomuxc_gpio_b1_15_enet_mdio>,
<&iomuxc_gpio_b0_15_gpio2_io15>,
<&iomuxc_gpio_b0_14_gpio2_io14>;
drive-strength = "r0-5";
bias-pull-up;
bias-pull-up-value = "100k";
slew-rate = "fast";
nxp,speed = "200-mhz";
};
};
/* FLEXCAN1 TX, RX on Teensy-Pins 22/23 */

View file

@ -70,24 +70,8 @@ zephyr_udc0: &usb1 {
status = "okay";
};
/* Pinmux settings */
&enet_mac {
pinctrl-0 = <&pinmux_enet>;
pinctrl-names = "default";
zephyr,random-mac-address;
phy-connection-type = "rmii";
phy-handle = <&phy>;
};
&enet_mdio {
&edma0 {
status = "okay";
pinctrl-0 = <&pinmux_enet>;
pinctrl-names = "default";
phy: phy@0 {
compatible = "ethernet-phy";
reg = <0>;
status = "okay";
};
};
&flexcan1 {

View file

@ -34,6 +34,29 @@
};
};
&enet_mac {
status = "okay";
pinctrl-0 = <&pinmux_enet>;
pinctrl-names = "default";
nxp,unique-mac;
phy-connection-type = "rmii";
phy-handle = <&phy>;
};
&enet_mdio {
status = "okay";
pinctrl-0 = <&pinmux_enet_mdio>;
pinctrl-names = "default";
phy: phy@0 {
status = "okay";
compatible = "ti,dp83825";
reg = <0>;
reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
int-gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
ti,interface-type = "rmii";
};
};
&lpspi3 {
status = "okay";
};

View file

@ -19,6 +19,7 @@ supported:
- gpio
- sdhc
- usb_device
- netif:eth
testing:
ignore_tags:
- net