* Re: [PATCH 1/3] arm64: tegra: Add ethernet alias on Jetson TX1
[not found] ` <04a355c8-a4ae-9275-a85a-791ce5c1b34c@wwwdotorg.org>
@ 2019-06-13 16:34 ` Thierry Reding
0 siblings, 0 replies; only message in thread
From: Thierry Reding @ 2019-06-13 16:34 UTC (permalink / raw)
To: Stephen Warren
Cc: linux-tegra, devicetree, Rob Herring, linux-arm-kernel,
Jon Hunter
[-- Attachment #1.1: Type: text/plain, Size: 1629 bytes --]
On Thu, Jun 13, 2019 at 10:22:23AM -0600, Stephen Warren wrote:
> On 6/13/19 10:15 AM, Thierry Reding wrote:
> > From: Thierry Reding <treding@nvidia.com>
> >
> > Adding this alias for the Ethernet interface on Jetson TX1 allows the
> > bootloader to pass the MAC address to the Linux kernel.
>
> > diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
>
> > + aliases {
> > + ethernet = "/usb@70090000/ethernet@1";
> > + };
>
> Don't aliases require an ID in the property name, i.e shouldn't this be
> "ethernet0" rather than just "ethernet"? This is a bit more obvious in the
> TX2 patch where sdhci0, sdhci1, and serial0 are shown in the diff context.
I don't think there's a requirement for aliases to have an ID. The IDs,
in the cases that I'm aware of, are used to fix the index given to the
controllers in Linux (which is sometimes abused to get fixed numbering
that can be hardcoded, rather than having a more robust way to look up
the right hardware block).
U-Boot has a comment somewhere about ethernet being equivalent to
ethernet0 and it treats them the same way, if I remember correctly.
As for upstream Linux, there does indeed seem to be a slight tendency
towards ethernet0, though it's pretty well mixed. 32-bit ARM is mostly
balanced, whereas 64-bit ARM uses ethernet0 almost exclusively. Maybe
this means that recently there's been a push to standardize on always
adding the index?
> Patch should probably be CC'd to some/all of ARM/DT/... mailing lists?
Oops... I meant to include those. Added now.
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-06-13 16:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190613161517.2837-1-thierry.reding@gmail.com>
[not found] ` <04a355c8-a4ae-9275-a85a-791ce5c1b34c@wwwdotorg.org>
2019-06-13 16:34 ` [PATCH 1/3] arm64: tegra: Add ethernet alias on Jetson TX1 Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).