gemini: add rtl8366rb to dir-685 board
authorRoman Yeryomin <roman@advem.lv>
Tue, 1 May 2018 18:33:17 +0000 (21:33 +0300)
committerJohn Crispin <john@phrozen.org>
Sat, 5 May 2018 04:57:00 +0000 (06:57 +0200)
Signed-off-by: Roman Yeryomin <roman@advem.lv>
target/linux/gemini/image/Makefile
target/linux/gemini/patches-4.14/0905-arm-dts-gemini-dlink-dir-685-add-rtl8366rb.patch [new file with mode: 0644]

index 908045a2de3c5ed674754d8335d50e8147141efa..dca3b63b19ce33b9d0e7d205a60b38143b259fcb 100644 (file)
@@ -79,7 +79,8 @@ DIR685_CMDLINE:=-console=ttyS0,19200n8 root=/dev/sda1 rw rootwait
 define Device/dlink-dir-685
        DEVICE_TITLE := D-Link DIR-685 Xtreme N Storage Router
        CMDLINE := $(DIR685_CMDLINE)
-       DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES)
+       DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) \
+                       kmod-switch-rtl8366rb swconfig
 endef
 TARGET_DEVICES += dlink-dir-685
 
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
new file mode 100644 (file)
index 0000000..4250122
--- /dev/null
@@ -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 {