mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
4f74957584
This adds the patches to get fairly complete Gemini support using kernel v4.14. It is mainly a backport of patches from kernel v4.16 with omissions of things like graphics that require substantial changes and will be better handled once we move to the v4.16 kernel proper. On top of this are some WIP patches for USB support. Tested on Raidsonic NAS4220B and D-link DNS-313. ChangeLog v4->v5: - Fix ethernet single gmac usecase - Fix USB reset (patch from Hans) - Fix Raidsonic ethernet skew delay - Fix kernel config (bridge, squashfs, jffs2, usb) - Disable second usb port on Raidsonic board until fotg210_hcd is fixed ChangeLog v3->v4: - Make sure to use tabs rather than spaces in base-files. - Use the dns313 image tool from the firmware-utils. - Break out the addition of the v4.14 patches and the removal of the v4.4 patches to separate (big) patches. ChangeLog v2->v3: - Update the kernel config as indicated by Hauke Martens: - Regenerate again after rebasing using kernel_oldconfig dropping a few optimization settings that are now generic - Drop CFG80211 stuff (module) - Drop CIFS stuff (module) - Drop MAC80211 (module) - Drop wireless drivers (module) - Enabled OverlayFS - Added proper DNS-313 boot image generation with the special file header tool. - Disable CMA in the kernel - Enable LZMA compression of the kernel - Consequently name the nas4220b images nas4220b - Update preinit MAC detection script to handle also DNS-313 - Add board.d/03_hdparm to set the disk to spin down after 1 minute by default, if we have the hdparm tool installed ChangeLog v1->v2: - Processed config through kernel_oldconfig - Processed patches through make target/linux/{clean,refresh} V=99 Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Roman Yeryomin <roman@advem.lv>
66 lines
2.2 KiB
Diff
66 lines
2.2 KiB
Diff
From 3699f119ff8da021fe7a1759e98e38ca88fa6766 Mon Sep 17 00:00:00 2001
|
|
From: Hans Ulli Kroll <ulli.kroll@googlemail.com>
|
|
Date: Wed, 8 Feb 2017 21:00:09 +0100
|
|
Subject: [PATCH 27/31] usb: host: add DT bindings for faraday fotg2
|
|
|
|
This adds device tree bindings for the Faraday FOTG2
|
|
dual-mode host controller.
|
|
|
|
Cc: devicetree@vger.kernel.org
|
|
Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
|
|
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
---
|
|
ChangeLog v1->v3:
|
|
- Change compatible to "faraday,fotg210" as the name of the
|
|
hardware block.
|
|
- Add an elaborate SoC-specific compatible string for the
|
|
Cortina Systems Gemini so that SoC-specific features can
|
|
be enabled.
|
|
- Add cortina,gemini-mini-b to indicate a Gemini PHY with
|
|
a Mini-B adapter connected.
|
|
- Indicated that the Gemini version can handle "wakeup-source".
|
|
- Add optional IP block clock.
|
|
---
|
|
.../devicetree/bindings/usb/faraday,fotg210.txt | 35 ++++++++++++++++++++++
|
|
1 file changed, 35 insertions(+)
|
|
create mode 100644 Documentation/devicetree/bindings/usb/faraday,fotg210.txt
|
|
|
|
--- /dev/null
|
|
+++ b/Documentation/devicetree/bindings/usb/faraday,fotg210.txt
|
|
@@ -0,0 +1,35 @@
|
|
+Faraday FOTG Host controller
|
|
+
|
|
+This OTG-capable USB host controller is found in Cortina Systems
|
|
+Gemini and other SoC products.
|
|
+
|
|
+Required properties:
|
|
+- compatible: should be one of:
|
|
+ "faraday,fotg210"
|
|
+ "cortina,gemini-usb", "faraday,fotg210"
|
|
+- reg: should contain one register range i.e. start and length
|
|
+- interrupts: description of the interrupt line
|
|
+
|
|
+Optional properties:
|
|
+- clocks: should contain the IP block clock
|
|
+- clock-names: should be "PCLK" for the IP block clock
|
|
+
|
|
+Required properties for "cortina,gemini-usb" compatible:
|
|
+- syscon: a phandle to the system controller to access PHY registers
|
|
+
|
|
+Optional properties for "cortina,gemini-usb" compatible:
|
|
+- cortina,gemini-mini-b: boolean property that indicates that a Mini-B
|
|
+ OTH connector is in use
|
|
+- wakeup-source: see power/wakeup-source.txt
|
|
+
|
|
+Example for Gemini:
|
|
+
|
|
+usb@68000000 {
|
|
+ compatible = "cortina,gemini-usb", "faraday,fotg210";
|
|
+ reg = <0x68000000 0x1000>;
|
|
+ interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&cc 12>;
|
|
+ clock-names = "PCLK";
|
|
+ syscon = <&syscon>;
|
|
+ wakeup-source;
|
|
+};
|