From 5fac36d5aa36bf0a58e6f1c1a684db4bd6f9b005 Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel@makrotopia.org>
Date: Fri, 1 Mar 2019 02:43:48 +0100
Subject: oxnas: switch to kmod-ledtrig-usb-port

Add port handles for both USB 2.0 ports so they can be used as
trigger-source for USB LEDs.
Suggestions for pogoplug and akitio,mycloud devices are welcome.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 target/linux/oxnas/patches-4.14/800-oxnas-ehci.patch | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'target/linux/oxnas/patches-4.14')

diff --git a/target/linux/oxnas/patches-4.14/800-oxnas-ehci.patch b/target/linux/oxnas/patches-4.14/800-oxnas-ehci.patch
index b4e34e5e3f..cb197aa4a9 100644
--- a/target/linux/oxnas/patches-4.14/800-oxnas-ehci.patch
+++ b/target/linux/oxnas/patches-4.14/800-oxnas-ehci.patch
@@ -26,7 +26,7 @@
  obj-$(CONFIG_USB_ISP116X_HCD)	+= isp116x-hcd.o
 --- a/arch/arm/boot/dts/ox820.dtsi
 +++ b/arch/arm/boot/dts/ox820.dtsi
-@@ -105,6 +105,22 @@
+@@ -105,6 +105,31 @@
  			status = "disabled";
  		};
  
@@ -44,6 +44,15 @@
 +			/* FIXME: how to make this dependency explicit ? */
 +			oxsemi,ehci_use_pllb;
 +			status = "disabled";
++
++			ehci_port1: port@1 {
++				reg = <1>;
++				#trigger-source-cells = <0>;
++			};
++			ehci_port2: port@2 {
++				reg = <2>;
++				#trigger-source-cells = <0>;
++			};
 +		};
 +
  		apb-bridge@44000000 {
-- 
cgit v1.2.3