arm64: tegra: Add ethernet alias on Jetson TX1
authorThierry Reding <treding@nvidia.com>
Fri, 22 Mar 2019 12:49:39 +0000 (13:49 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 12 Mar 2020 11:14:31 +0000 (12:14 +0100)
Adding this alias for the Ethernet interface on Jetson TX1 allows the
bootloader to pass the MAC address to the Linux kernel.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi

index 49a2a82..313a4c2 100644 (file)
@@ -5,6 +5,10 @@
        model = "NVIDIA Tegra210 P2597 I/O board";
        compatible = "nvidia,p2597", "nvidia,tegra210";
 
+       aliases {
+               ethernet = "/usb@70090000/ethernet@1";
+       };
+
        host1x@50000000 {
                dpaux@54040000 {
                        status = "okay";
                hvdd-usb-ss-pll-e-supply = <&vdd_1v8>;
 
                status = "okay";
+
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethernet@1 {
+                       reg = <1>;
+               };
        };
 
        padctl@7009f000 {