]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
arm64: tegra: Enable ethernet on P3310
authorThierry Reding <treding@nvidia.com>
Thu, 23 Feb 2017 17:30:47 +0000 (18:30 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 8 Mar 2017 12:31:43 +0000 (13:31 +0100)
The P3310 processor module provides networking via the ethernet
controller found on NVIDIA Tegra186 SoCs.

Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi

index 762f4756346c3ac6d4109bbc26411139d6b2f1f1..ffbb4be5122eb12277e05c816fc67dffde70057a 100644 (file)
                reg = <0x0 0x80000000 0x2 0x00000000>;
        };
 
+       ethernet@2490000 {
+               status = "okay";
+
+               phy-reset-gpios = <&gpio TEGRA_MAIN_GPIO(M, 4) GPIO_ACTIVE_LOW>;
+               phy-handle = <&phy>;
+               phy-mode = "rgmii";
+
+               mdio {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       phy: phy@0 {
+                               compatible = "ethernet-phy-ieee802.3-c22";
+                               reg = <0x0>;
+                               interrupt-parent = <&gpio>;
+                               interrupts = <TEGRA_MAIN_GPIO(M, 5) IRQ_TYPE_LEVEL_HIGH>;
+                       };
+               };
+       };
+
        serial@3100000 {
                status = "okay";
        };