Skip to content

Commit 49091ff

Browse files
KevShajudkalowsk
authored andcommitted
boards: shields: Add shield for NXP ADTJA1101 Ethernet Adapter
Add a shield for NXP ADTJA1101 Ethernet Adapter. This shield can be used with the s32k148_evb. Signed-off-by: Kevin Shaju <kevin.shaju@accenture.com>
1 parent 7e56d13 commit 49091ff

File tree

10 files changed

+99
-1
lines changed

10 files changed

+99
-1
lines changed

boards/nxp/s32k148_evb/doc/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ Supported Features
3737

3838
.. zephyr:board-supported-hw::
3939
40+
.. note::
41+
Before using the Ethernet interface, please take note of the following:
42+
43+
- For boards with the part number ``LSF24D`` at ``U16``, ``R553`` needs to be depopulated.
44+
4045
Connections and IOs
4146
===================
4247

boards/nxp/s32k148_evb/s32k148_evb.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,15 @@
179179
vref-mv = <5000>;
180180
status = "okay";
181181
};
182+
183+
&enet_mac {
184+
pinctrl-0 = <&pinmux_enet>;
185+
pinctrl-names = "default";
186+
zephyr,random-mac-address;
187+
phy-connection-type = "rmii";
188+
};
189+
190+
&enet_mdio {
191+
pinctrl-0 = <&pinmux_enet_mdio>;
192+
pinctrl-names = "default";
193+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright 2024 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_NXP_ADTJA1101
5+
def_bool $(shields_list_contains,nxp_adtja1101)
Binary file not shown.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.. _nxp_adtja1101:
2+
3+
NXP ADTJA1101-RMII Automotive Ethernet Adapter
4+
##############################################
5+
6+
Overview
7+
********
8+
9+
The ADTJA1101-RMII is an automotive Ethernet adapter card specifically built to
10+
add 100Mbps automotive Ethernet connectivity to the S32K148 Microcontroller and
11+
i.MX8 platforms.
12+
13+
This shield can be used with the NXP S32K148-Q176 evaluation board by plugging
14+
into the common expansion connector, through which the ADTJA1101-RMII connects
15+
the RMII interfaces of the S32K148 directly to NXP’s 100BASE-T1 Ethernet PHY
16+
TJA1101.
17+
18+
.. figure:: img/adtja1101-rmii.webp
19+
:align: center
20+
:alt: NXP ADTJA1101-RMII Automotive Ethernet Adapter
21+
22+
More information about this module can be found at `ADTJA1101-RMII`_.
23+
24+
Programming
25+
***********
26+
27+
Set ``--shield nxp_adtja1101`` when you invoke ``west build``.
28+
29+
References
30+
**********
31+
32+
.. target-notes::
33+
34+
.. _ADTJA1101-RMII:
35+
https://www.nxp.com/part/ADTJA1101-RMII
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&enet_mac {
8+
status = "okay";
9+
phy-handle = <&phy>;
10+
};
11+
12+
&enet_mdio {
13+
status = "okay";
14+
15+
phy: phy@0 {
16+
compatible = "nxp,tja11xx";
17+
reg = <0>;
18+
status = "okay";
19+
};
20+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: nxp_adtja1101
3+
full_name: NXP ADTJA1101-RMII Automotive Ethernet Adapter
4+
vendor: nxp
5+
supported_features:
6+
- ethernet

samples/net/sockets/dumb_http_server/sample.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ tests:
1414
sample.net.sockets.dumb_http_server:
1515
extra_configs:
1616
- CONFIG_POSIX_API=y
17+
platform_exclude: s32k148_evb/s32k148
18+
sample.net.sockets.dumb_http_server.s32k148_evb:
19+
extra_configs:
20+
- CONFIG_POSIX_API=y
21+
extra_args: SHIELD=nxp_adtja1101
22+
platform_allow: s32k148_evb/s32k148

samples/net/sockets/socketpair/sample.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ common:
1111
integration_platforms:
1212
- qemu_x86
1313
tests:
14-
sample.net.sockets.socketpair: {}
14+
sample.net.sockets.socketpair:
15+
platform_exclude: s32k148_evb/s32k148
16+
sample.net.sockets.socketpair.s32k148_evb:
17+
extra_args: SHIELD=nxp_adtja1101
18+
platform_allow: s32k148_evb/s32k148

samples/posix/gettimeofday/sample.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ common:
1313
tests:
1414
sample.posix.gettimeofday:
1515
harness: net
16+
platform_exclude: s32k148_evb/s32k148
17+
sample.posix.gettimeofday.s32k148_evb:
18+
harness: net
19+
extra_args: SHIELD=nxp_adtja1101
20+
platform_allow: s32k148_evb/s32k148

0 commit comments

Comments
 (0)