Browse Source

gemini: add rtl8366rb to dir-685 board

Signed-off-by: Roman Yeryomin <[email protected]>
Roman Yeryomin 7 years ago
parent
commit
2c35bcffd0

+ 2 - 1
target/linux/gemini/image/Makefile

@@ -79,7 +79,8 @@ DIR685_CMDLINE:=-console=ttyS0,19200n8 root=/dev/sda1 rw rootwait
 define Device/dlink-dir-685
 define Device/dlink-dir-685
 	DEVICE_TITLE := D-Link DIR-685 Xtreme N Storage Router
 	DEVICE_TITLE := D-Link DIR-685 Xtreme N Storage Router
 	CMDLINE := $(DIR685_CMDLINE)
 	CMDLINE := $(DIR685_CMDLINE)
-	DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES)
+	DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) \
+			kmod-switch-rtl8366rb swconfig
 endef
 endef
 TARGET_DEVICES += dlink-dir-685
 TARGET_DEVICES += dlink-dir-685
 
 

+ 15 - 0
target/linux/gemini/patches-4.14/0905-arm-dts-gemini-dlink-dir-685-add-rtl8366rb.patch

@@ -0,0 +1,15 @@
+--- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts
++++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
+@@ -86,6 +86,12 @@
+ 		};
+ 	};
+ 
++	rtl8366rb {
++		compatible = "realtek,rtl8366rb";
++		gpio-sda = <&gpio0 22 GPIO_ACTIVE_HIGH>;
++		gpio-sck = <&gpio0 21 GPIO_ACTIVE_HIGH>;
++	};
++
+ 	leds {
+ 		compatible = "gpio-leds";
+ 		led-wps {