From 21622452f2eb735a5cfe8697edc3c166a71b8485 Mon Sep 17 00:00:00 2001 From: Stephen Warren Date: Mon, 12 Sep 2016 11:51:15 -0600 Subject: [PATCH] ARM: tegra: enable Ethernet on p2771-0000 Enable the Ethernet device in DT, provide board-specific configuration, and enable the driver in Kconfig. Signed-off-by: Stephen Warren Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- arch/arm/dts/tegra186-p2771-0000.dtsi | 5 +++++ configs/p2771-0000-000_defconfig | 1 + configs/p2771-0000-500_defconfig | 1 + 3 files changed, 7 insertions(+) diff --git a/arch/arm/dts/tegra186-p2771-0000.dtsi b/arch/arm/dts/tegra186-p2771-0000.dtsi index 6e071082f9..54b2539ff4 100644 --- a/arch/arm/dts/tegra186-p2771-0000.dtsi +++ b/arch/arm/dts/tegra186-p2771-0000.dtsi @@ -25,6 +25,11 @@ reg = <0x0 0x80000000 0x0 0x60000000>; }; + ethernet@2490000 { + status = "okay"; + phy-reset-gpios = <&gpio_main TEGRA_MAIN_GPIO(M, 4) GPIO_ACTIVE_LOW>; + }; + i2c@3160000 { status = "okay"; }; diff --git a/configs/p2771-0000-000_defconfig b/configs/p2771-0000-000_defconfig index f638117c89..61bb3a1196 100644 --- a/configs/p2771-0000-000_defconfig +++ b/configs/p2771-0000-000_defconfig @@ -30,6 +30,7 @@ CONFIG_CMD_FS_GENERIC=y # CONFIG_BLK is not set CONFIG_TEGRA186_BPMP_I2C=y # CONFIG_DM_MMC_OPS is not set +CONFIG_DWC_ETH_QOS=y CONFIG_E1000=y CONFIG_RTL8169=y CONFIG_PCI=y diff --git a/configs/p2771-0000-500_defconfig b/configs/p2771-0000-500_defconfig index baeb8f33cd..79f4808274 100644 --- a/configs/p2771-0000-500_defconfig +++ b/configs/p2771-0000-500_defconfig @@ -30,6 +30,7 @@ CONFIG_CMD_FS_GENERIC=y # CONFIG_BLK is not set CONFIG_TEGRA186_BPMP_I2C=y # CONFIG_DM_MMC_OPS is not set +CONFIG_DWC_ETH_QOS=y CONFIG_E1000=y CONFIG_RTL8169=y CONFIG_PCI=y -- 2.39.5