[openwrt/openwrt] gemini: Augment DIR-685 device tree for RTL8366RB
LEDE Commits
lede-commits at lists.infradead.org
Mon May 14 07:25:48 PDT 2018
blogic pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/1f56417e6b422e040783e70344b162bbfaa59bc4
commit 1f56417e6b422e040783e70344b162bbfaa59bc4
Author: Linus Walleij <linus.walleij at linaro.org>
AuthorDate: Fri May 11 19:16:48 2018 +0200
gemini: Augment DIR-685 device tree for RTL8366RB
This makes the ethernet and RTL8366RB come up on the
D-Link DIR-685.
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
...rm-dts-gemini-dlink-dir-685-add-rtl8366rb.patch | 71 +++++++++++++++++++++-
1 file changed, 70 insertions(+), 1 deletion(-)
diff --git a/target/linux/gemini/patches-4.14/0905-arm-dts-gemini-dlink-dir-685-add-rtl8366rb.patch b/target/linux/gemini/patches-4.14/0905-arm-dts-gemini-dlink-dir-685-add-rtl8366rb.patch
index 4250122..f01c272 100644
--- a/target/linux/gemini/patches-4.14/0905-arm-dts-gemini-dlink-dir-685-add-rtl8366rb.patch
+++ b/target/linux/gemini/patches-4.14/0905-arm-dts-gemini-dlink-dir-685-add-rtl8366rb.patch
@@ -1,6 +1,8 @@
+diff --git a/arch/arm/boot/dts/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
+index 840f4a32f37c..456556f52bc7 100644
--- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts
+++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
-@@ -86,6 +86,12 @@
+@@ -87,6 +87,12 @@
};
};
@@ -13,3 +15,70 @@
leds {
compatible = "gpio-leds";
led-wps {
+@@ -249,6 +255,47 @@
+ groups = "gpio1bgrp";
+ };
+ };
++ pinctrl-gmii {
++ mux {
++ function = "gmii";
++ groups = "gmii_gmac0_grp";
++ };
++ conf0 {
++ pins = "V8 GMAC0 RXDV", "T10 GMAC1 RXDV";
++ skew-delay = <0>;
++ };
++ conf1 {
++ pins = "Y7 GMAC0 RXC", "Y11 GMAC1 RXC";
++ skew-delay = <15>;
++ };
++ conf2 {
++ pins = "T8 GMAC0 TXEN", "W11 GMAC1 TXEN";
++ skew-delay = <7>;
++ };
++ conf3 {
++ pins = "U8 GMAC0 TXC";
++ skew-delay = <11>;
++ };
++ conf4 {
++ pins = "V11 GMAC1 TXC";
++ skew-delay = <10>;
++ };
++ conf5 {
++ pins = "W8 GMAC0 RXD0", "V9 GMAC0 RXD1",
++ "Y8 GMAC0 RXD2", "U9 GMAC0 RXD3",
++ "T7 GMAC0 TXD0", "U6 GMAC0 TXD1",
++ "V7 GMAC0 TXD2", "U7 GMAC0 TXD3",
++ "Y12 GMAC1 RXD0", "V12 GMAC1 RXD1",
++ "T11 GMAC1 RXD2", "W12 GMAC1 RXD3",
++ "U10 GMAC1 TXD0", "Y10 GMAC1 TXD1",
++ "W10 GMAC1 TXD2", "T9 GMAC1 TXD3";
++ skew-delay = <7>;
++ };
++ conf6 {
++ groups = "gmii_gmac0_grp";
++ drive-strength = <16>;
++ };
++ };
+ };
+ };
+
+@@ -290,6 +337,18 @@
+ <0x6000 0 0 4 &pci_intc 2>;
+ };
+
++ ethernet at 60000000 {
++ status = "okay";
++
++ ethernet-port at 0 {
++ phy-mode = "rgmii";
++ // phy-handle = <&phy0>;
++ };
++ ethernet-port at 1 {
++ /* Not used in this platform */
++ };
++ };
++
+ ata at 63000000 {
+ status = "okay";
+ };
More information about the lede-commits
mailing list