diff --git a/boards/nxp/s32k148_evb/doc/index.rst b/boards/nxp/s32k148_evb/doc/index.rst index 8c7aac34f15..6fc3c12e291 100644 --- a/boards/nxp/s32k148_evb/doc/index.rst +++ b/boards/nxp/s32k148_evb/doc/index.rst @@ -37,6 +37,11 @@ Supported Features .. zephyr:board-supported-hw:: +.. note:: + Before using the Ethernet interface, please take note of the following: + + - For boards with the part number ``LSF24D`` at ``U16``, ``R553`` needs to be depopulated. + Connections and IOs =================== diff --git a/boards/nxp/s32k148_evb/s32k148_evb.dts b/boards/nxp/s32k148_evb/s32k148_evb.dts index 3c4f994cf4c..881287544bc 100644 --- a/boards/nxp/s32k148_evb/s32k148_evb.dts +++ b/boards/nxp/s32k148_evb/s32k148_evb.dts @@ -179,3 +179,15 @@ vref-mv = <5000>; status = "okay"; }; + +&enet_mac { + pinctrl-0 = <&pinmux_enet>; + pinctrl-names = "default"; + zephyr,random-mac-address; + phy-connection-type = "rmii"; +}; + +&enet_mdio { + pinctrl-0 = <&pinmux_enet_mdio>; + pinctrl-names = "default"; +}; diff --git a/boards/shields/nxp_adtja1101/Kconfig.shield b/boards/shields/nxp_adtja1101/Kconfig.shield new file mode 100644 index 00000000000..82ae3931b4c --- /dev/null +++ b/boards/shields/nxp_adtja1101/Kconfig.shield @@ -0,0 +1,5 @@ +# Copyright 2024 NXP +# SPDX-License-Identifier: Apache-2.0 + +config SHIELD_NXP_ADTJA1101 + def_bool $(shields_list_contains,nxp_adtja1101) diff --git a/boards/shields/nxp_adtja1101/doc/img/adtja1101-rmii.webp b/boards/shields/nxp_adtja1101/doc/img/adtja1101-rmii.webp new file mode 100644 index 00000000000..23ab5895806 Binary files /dev/null and b/boards/shields/nxp_adtja1101/doc/img/adtja1101-rmii.webp differ diff --git a/boards/shields/nxp_adtja1101/doc/index.rst b/boards/shields/nxp_adtja1101/doc/index.rst new file mode 100644 index 00000000000..48174a02aa6 --- /dev/null +++ b/boards/shields/nxp_adtja1101/doc/index.rst @@ -0,0 +1,35 @@ +.. _nxp_adtja1101: + +NXP ADTJA1101-RMII Automotive Ethernet Adapter +############################################## + +Overview +******** + +The ADTJA1101-RMII is an automotive Ethernet adapter card specifically built to +add 100Mbps automotive Ethernet connectivity to the S32K148 Microcontroller and +i.MX8 platforms. + +This shield can be used with the NXP S32K148-Q176 evaluation board by plugging +into the common expansion connector, through which the ADTJA1101-RMII connects +the RMII interfaces of the S32K148 directly to NXP’s 100BASE-T1 Ethernet PHY +TJA1101. + +.. figure:: img/adtja1101-rmii.webp + :align: center + :alt: NXP ADTJA1101-RMII Automotive Ethernet Adapter + +More information about this module can be found at `ADTJA1101-RMII`_. + +Programming +*********** + +Set ``--shield nxp_adtja1101`` when you invoke ``west build``. + +References +********** + +.. target-notes:: + +.. _ADTJA1101-RMII: + https://www.nxp.com/part/ADTJA1101-RMII diff --git a/boards/shields/nxp_adtja1101/nxp_adtja1101.overlay b/boards/shields/nxp_adtja1101/nxp_adtja1101.overlay new file mode 100644 index 00000000000..589efd17c7e --- /dev/null +++ b/boards/shields/nxp_adtja1101/nxp_adtja1101.overlay @@ -0,0 +1,20 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&enet_mac { + status = "okay"; + phy-handle = <&phy>; +}; + +&enet_mdio { + status = "okay"; + + phy: phy@0 { + compatible = "nxp,tja11xx"; + reg = <0>; + status = "okay"; + }; +}; diff --git a/boards/shields/nxp_adtja1101/shield.yml b/boards/shields/nxp_adtja1101/shield.yml new file mode 100644 index 00000000000..d6777ebf464 --- /dev/null +++ b/boards/shields/nxp_adtja1101/shield.yml @@ -0,0 +1,6 @@ +shield: + name: nxp_adtja1101 + full_name: NXP ADTJA1101-RMII Automotive Ethernet Adapter + vendor: nxp + supported_features: + - ethernet diff --git a/samples/net/sockets/dumb_http_server/sample.yaml b/samples/net/sockets/dumb_http_server/sample.yaml index 301f70820d4..547ba2de636 100644 --- a/samples/net/sockets/dumb_http_server/sample.yaml +++ b/samples/net/sockets/dumb_http_server/sample.yaml @@ -14,3 +14,9 @@ tests: sample.net.sockets.dumb_http_server: extra_configs: - CONFIG_POSIX_API=y + platform_exclude: s32k148_evb/s32k148 + sample.net.sockets.dumb_http_server.s32k148_evb: + extra_configs: + - CONFIG_POSIX_API=y + extra_args: SHIELD=nxp_adtja1101 + platform_allow: s32k148_evb/s32k148 diff --git a/samples/net/sockets/socketpair/sample.yaml b/samples/net/sockets/socketpair/sample.yaml index 605668336d8..cf7476b3023 100644 --- a/samples/net/sockets/socketpair/sample.yaml +++ b/samples/net/sockets/socketpair/sample.yaml @@ -11,4 +11,8 @@ common: integration_platforms: - qemu_x86 tests: - sample.net.sockets.socketpair: {} + sample.net.sockets.socketpair: + platform_exclude: s32k148_evb/s32k148 + sample.net.sockets.socketpair.s32k148_evb: + extra_args: SHIELD=nxp_adtja1101 + platform_allow: s32k148_evb/s32k148 diff --git a/samples/posix/gettimeofday/sample.yaml b/samples/posix/gettimeofday/sample.yaml index a71d29f09c5..cee1fe61a5a 100644 --- a/samples/posix/gettimeofday/sample.yaml +++ b/samples/posix/gettimeofday/sample.yaml @@ -13,3 +13,8 @@ common: tests: sample.posix.gettimeofday: harness: net + platform_exclude: s32k148_evb/s32k148 + sample.posix.gettimeofday.s32k148_evb: + harness: net + extra_args: SHIELD=nxp_adtja1101 + platform_allow: s32k148_evb/s32k148