diff options
Diffstat (limited to 'patches/1635-arm64-dts-stratix10-add-ethernet-sdmmc-support-to-th.patch')
-rw-r--r-- | patches/1635-arm64-dts-stratix10-add-ethernet-sdmmc-support-to-th.patch | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/patches/1635-arm64-dts-stratix10-add-ethernet-sdmmc-support-to-th.patch b/patches/1635-arm64-dts-stratix10-add-ethernet-sdmmc-support-to-th.patch new file mode 100644 index 00000000000000..59159b58202550 --- /dev/null +++ b/patches/1635-arm64-dts-stratix10-add-ethernet-sdmmc-support-to-th.patch @@ -0,0 +1,70 @@ +From 0d94f51f12a13427887860d8fab90b495f382237 Mon Sep 17 00:00:00 2001 +From: Dinh Nguyen <dinguyen@kernel.org> +Date: Fri, 8 Sep 2017 10:14:18 -0500 +Subject: [PATCH 1635/1795] arm64: dts: stratix10: add ethernet/sdmmc support + to the S10 devkit + +Enable ethernet and sdmmc support on the Stratix10 devkit. + +Signed-off-by: Dinh Nguyen <dinguyen@kernel.org> +--- +v2: Create a separate PHY node + +(cherry picked from commit 701e3a48772bae0f1181a7bb3ea7e23f17c03a82) +Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> +--- + .../dts/altera/socfpga_stratix10_socdk.dts | 38 +++++++++++++++++++ + 1 file changed, 38 insertions(+) + +diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +index 41ea2dba2fce..590758613677 100644 +--- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts ++++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +@@ -34,6 +34,44 @@ + }; + }; + ++&gmac0 { ++ status = "okay"; ++ phy-mode = "rgmii"; ++ phy-handle = <&phy0>; ++ ++ max-frame-size = <3800>; ++ ++ mdio0 { ++ #address-cells = <1>; ++ #size-cells = <0>; ++ compatible = "snps,dwmac-mdio"; ++ phy0: ethernet-phy@0 { ++ reg = <4>; ++ ++ txd0-skew-ps = <0>; /* -420ps */ ++ txd1-skew-ps = <0>; /* -420ps */ ++ txd2-skew-ps = <0>; /* -420ps */ ++ txd3-skew-ps = <0>; /* -420ps */ ++ rxd0-skew-ps = <420>; /* 0ps */ ++ rxd1-skew-ps = <420>; /* 0ps */ ++ rxd2-skew-ps = <420>; /* 0ps */ ++ rxd3-skew-ps = <420>; /* 0ps */ ++ txen-skew-ps = <0>; /* -420ps */ ++ txc-skew-ps = <1860>; /* 960ps */ ++ rxdv-skew-ps = <420>; /* 0ps */ ++ rxc-skew-ps = <1680>; /* 780ps */ ++ }; ++ }; ++}; ++ ++&mmc { ++ status = "okay"; ++ num-slots = <1>; ++ cap-sd-highspeed; ++ broken-cd; ++ bus-width = <4>; ++}; ++ + &uart0 { + status = "okay"; + }; +-- +2.19.0 + |