Beelink X2 updates
Subsystems (2)
cover Beelink X2 updates
From: Marcus Cooper <[email protected]>
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(-)
Signature · 1 line
2.13.3
PATCH 1/2 ARM: dts: sun8i: h3: Enable USB OTG on the Beelink X2
From: Marcus Cooper <[email protected]>
This STB has a type A socket which acts as OTG.
--- arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)
arch/arm/boot/dts/sun8i-h3-beelink-x2.dts +22 -1
@@ -100,6 +100,10 @@ }; }; +&ehci0 { + status = "okay"; +}; + &ehci1 { status = "okay"; };
@@ -147,10 +151,19 @@ status = "okay"; }; +&ohci0 { + status = "okay"; +}; + &ohci1 { status = "okay"; }; +®_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 = <®_usb0_vbus>; };
Signature · 1 line
2.13.3
PATCH 2/2 ARM: dts: sun8i: h3: Enable dwac-sun8i on the Beelink X2
In reply to codekipper at gmail.comFrom: Marcus Cooper <[email protected]>
The dwmac-sun8i hardware is present on the Beelink X2. It uses the internal PHY.
This patch create the needed emac node.
--- arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
arch/arm/boot/dts/sun8i-h3-beelink-x2.dts +8 -1
@@ -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>;
Signature · 1 line
2.13.3
Maxime Ripard
Appliedcover Beelink X2 updates
In reply to codekipper at gmail.comQuoted 7 lines · codekipper at gmail.com
From: Marcus Cooper <[email protected]>
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
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170724/c6ab1e55/attachment.sig>