devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [linux-sunxi][PATCH 0/2] Beelink X2 updates
@ 2017-07-23 14:49 codekipper-Re5JQEeQqe8AvxtiuMwx3w
       [not found] ` <20170723144950.29330-1-codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: codekipper-Re5JQEeQqe8AvxtiuMwx3w @ 2017-07-23 14:49 UTC (permalink / raw)
  To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Marcus Cooper

From: Marcus Cooper <codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Hi all,
as support for sun8i H3 usb otg and ethernet patches has made it into mainline
then these patches extend the functionality of the device.
BR,
CK 

Marcus Cooper (2):
  ARM: dts: sun8i: h3: Enable USB OTG on the Beelink X2
  ARM: dts: sun8i: h3: Enable dwac-sun8i on the Beelink X2

 arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 32 +++++++++++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)

-- 
2.13.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: dts: sun8i: h3: Enable USB OTG on the Beelink X2
       [not found] ` <20170723144950.29330-1-codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-07-23 14:49   ` codekipper-Re5JQEeQqe8AvxtiuMwx3w
  2017-07-23 14:49   ` [PATCH 2/2] ARM: dts: sun8i: h3: Enable dwac-sun8i " codekipper-Re5JQEeQqe8AvxtiuMwx3w
  2017-07-24  8:02   ` [PATCH 0/2] Beelink X2 updates Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: codekipper-Re5JQEeQqe8AvxtiuMwx3w @ 2017-07-23 14:49 UTC (permalink / raw)
  To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Marcus Cooper

From: Marcus Cooper <codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

This STB has a type A socket which acts as OTG.

Signed-off-by: Marcus Cooper <codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
index e7fae65eb5d3..87d7f2cdefa6 100644
--- a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
+++ b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
@@ -100,6 +100,10 @@
 	};
 };
 
+&ehci0 {
+	status = "okay";
+};
+
 &ehci1 {
 	status = "okay";
 };
@@ -147,10 +151,19 @@
 	status = "okay";
 };
 
+&ohci0 {
+	status = "okay";
+};
+
 &ohci1 {
 	status = "okay";
 };
 
+&reg_usb0_vbus {
+	gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
+	status = "okay";
+};
+
 &spdif {
 	pinctrl-names = "default";
 	pinctrl-0 = <&spdif_tx_pins_a>;
@@ -163,7 +176,15 @@
 	status = "okay";
 };
 
+
+&usb_otg {
+	dr_mode = "otg";
+	status = "okay";
+};
+
 &usbphy {
-	/* USB VBUS is on as long as VCC-IO is on */
+	/* USB VBUS is always on except for the OTG port */
 	status = "okay";
+	usb0_id_det-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA07 */
+	usb0_vbus-supply = <&reg_usb0_vbus>;
 };
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: dts: sun8i: h3: Enable dwac-sun8i on the Beelink X2
       [not found] ` <20170723144950.29330-1-codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2017-07-23 14:49   ` [PATCH 1/2] ARM: dts: sun8i: h3: Enable USB OTG on the Beelink X2 codekipper-Re5JQEeQqe8AvxtiuMwx3w
@ 2017-07-23 14:49   ` codekipper-Re5JQEeQqe8AvxtiuMwx3w
  2017-07-24  8:02   ` [PATCH 0/2] Beelink X2 updates Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: codekipper-Re5JQEeQqe8AvxtiuMwx3w @ 2017-07-23 14:49 UTC (permalink / raw)
  To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Marcus Cooper

From: Marcus Cooper <codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

The dwmac-sun8i hardware is present on the Beelink X2.
It uses the internal PHY.

This patch create the needed emac node.

Signed-off-by: Marcus Cooper <codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
index 87d7f2cdefa6..a6c44b7043c5 100644
--- a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
+++ b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
@@ -53,7 +53,7 @@
 
 	aliases {
 		serial0 = &uart0;
-		/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
+		ethernet0 = &emac;
 		ethernet1 = &sdiowifi;
 	};
 
@@ -108,6 +108,13 @@
 	status = "okay";
 };
 
+&emac {
+	phy-handle = <&int_mii_phy>;
+	phy-mode = "mii";
+	allwinner,leds-active-low;
+	status = "okay";
+};
+
 &ir {
 	pinctrl-names = "default";
 	pinctrl-0 = <&ir_pins_a>;
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Beelink X2 updates
       [not found] ` <20170723144950.29330-1-codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2017-07-23 14:49   ` [PATCH 1/2] ARM: dts: sun8i: h3: Enable USB OTG on the Beelink X2 codekipper-Re5JQEeQqe8AvxtiuMwx3w
  2017-07-23 14:49   ` [PATCH 2/2] ARM: dts: sun8i: h3: Enable dwac-sun8i " codekipper-Re5JQEeQqe8AvxtiuMwx3w
@ 2017-07-24  8:02   ` Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2017-07-24  8:02 UTC (permalink / raw)
  To: codekipper-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

On Sun, Jul 23, 2017 at 04:49:48PM +0200, codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> From: Marcus Cooper <codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 
> Hi all,
> as support for sun8i H3 usb otg and ethernet patches has made it into mainline
> then these patches extend the functionality of the device.
> BR,
> CK 

Applied both, thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-24  8:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-23 14:49 [linux-sunxi][PATCH 0/2] Beelink X2 updates codekipper-Re5JQEeQqe8AvxtiuMwx3w
     [not found] ` <20170723144950.29330-1-codekipper-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-23 14:49   ` [PATCH 1/2] ARM: dts: sun8i: h3: Enable USB OTG on the Beelink X2 codekipper-Re5JQEeQqe8AvxtiuMwx3w
2017-07-23 14:49   ` [PATCH 2/2] ARM: dts: sun8i: h3: Enable dwac-sun8i " codekipper-Re5JQEeQqe8AvxtiuMwx3w
2017-07-24  8:02   ` [PATCH 0/2] Beelink X2 updates Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).