diff --git a/projects/Allwinner/devices/H6/patches/linux/01-add-mali-node.patch b/projects/Allwinner/devices/H6/patches/linux/01-add-mali-node.patch index d7ca31aae1..c71fa76284 100644 --- a/projects/Allwinner/devices/H6/patches/linux/01-add-mali-node.patch +++ b/projects/Allwinner/devices/H6/patches/linux/01-add-mali-node.patch @@ -35,3 +35,18 @@ diff -Nur a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/bo &hdmi { status = "okay"; }; + +diff -Nur a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts 2018-03-28 20:27:22.000000000 +0200 ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts 2018-04-14 15:34:15.545094216 +0200 +@@ -89,6 +89,10 @@ + status = "okay"; + }; + ++&gpu { ++ mali-supply = <®_dcdcc>; ++}; ++ + &hdmi { + status = "okay"; + }; diff --git a/projects/Allwinner/devices/H6/patches/linux/10-beelink-gs1-enable-usb3.patch b/projects/Allwinner/devices/H6/patches/linux/10-beelink-gs1-enable-usb3.patch new file mode 100644 index 0000000000..057b7c0b41 --- /dev/null +++ b/projects/Allwinner/devices/H6/patches/linux/10-beelink-gs1-enable-usb3.patch @@ -0,0 +1,40 @@ +From 37354fa373d0eba8adaeb594f7c0b78436e5dc1a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= +Date: Sat, 10 Aug 2019 13:21:55 +0200 +Subject: [PATCH] arm64: allwinner: dts: h6: enable USB3 port on Beelink GS1 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Clément Péron +--- + arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +index 0dc33c90dd60..ef595e6a0cd6 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +@@ -57,6 +57,10 @@ + status = "okay"; + }; + ++&dwc3 { ++ status = "okay"; ++}; ++ + &ehci0 { + status = "okay"; + }; +@@ -258,3 +262,8 @@ + usb0_vbus-supply = <®_vcc5v>; + status = "okay"; + }; ++ ++&usb3phy { ++ vbus-supply = <®_vcc5v>; ++ status = "okay"; ++}; +-- +2.20.1 + diff --git a/projects/Allwinner/devices/H6/patches/linux/11-beelink-gs1-enable-ddc-reg.patch b/projects/Allwinner/devices/H6/patches/linux/11-beelink-gs1-enable-ddc-reg.patch new file mode 100644 index 0000000000..2c3d2f0f78 --- /dev/null +++ b/projects/Allwinner/devices/H6/patches/linux/11-beelink-gs1-enable-ddc-reg.patch @@ -0,0 +1,40 @@ +From ad3b90a4e8009cc87cfdaf1bf08ba7fd85422b17 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= +Date: Sun, 11 Aug 2019 19:34:25 +0200 +Subject: [PATCH] ARM: dts: allwinner: Beelink GS1 enable DDC regulator + +--- + .../arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +index 680dc29cb089..bc67dda37690 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +@@ -25,6 +25,7 @@ + connector { + compatible = "hdmi-connector"; + type = "a"; ++ ddc-supply = <®_ddc>; + + port { + hdmi_con_in: endpoint { +@@ -43,6 +44,15 @@ + }; + }; + ++ reg_ddc: ddc-io { ++ compatible = "regulator-fixed"; ++ regulator-name = "ddc-io"; ++ regulator-min-microvolt = <5000000>; ++ regulator-max-microvolt = <5000000>; ++ enable-active-high; ++ gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ ++ }; ++ + reg_vcc5v: vcc5v { + /* board wide 5V supply directly from the DC jack */ + compatible = "regulator-fixed"; +-- +2.20.1 + diff --git a/projects/Allwinner/devices/H6/patches/u-boot/005-beelink-gs1-rsync-kernel.patch b/projects/Allwinner/devices/H6/patches/u-boot/005-beelink-gs1-rsync-kernel.patch new file mode 100644 index 0000000000..8b6e8e1311 --- /dev/null +++ b/projects/Allwinner/devices/H6/patches/u-boot/005-beelink-gs1-rsync-kernel.patch @@ -0,0 +1,129 @@ +From 70035a8599a28775de8850b0c88099f9b0428e94 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= +Date: Sun, 11 Aug 2019 19:23:31 +0200 +Subject: [PATCH] arm: dts: beelink gs1 rsync with kernel + +--- + arch/arm/dts/sun50i-h6-beelink-gs1.dts | 76 ++++++++++++++++++++++++++ + 1 file changed, 76 insertions(+) + +diff --git a/arch/arm/dts/sun50i-h6-beelink-gs1.dts b/arch/arm/dts/sun50i-h6-beelink-gs1.dts +index 54b0882bed..0dc33c90dd 100644 +--- a/arch/arm/dts/sun50i-h6-beelink-gs1.dts ++++ b/arch/arm/dts/sun50i-h6-beelink-gs1.dts +@@ -14,6 +14,7 @@ + compatible = "azw,beelink-gs1", "allwinner,sun50i-h6"; + + aliases { ++ ethernet0 = &emac; + serial0 = &uart0; + }; + +@@ -21,6 +22,17 @@ + stdout-path = "serial0:115200n8"; + }; + ++ connector { ++ compatible = "hdmi-connector"; ++ type = "a"; ++ ++ port { ++ hdmi_con_in: endpoint { ++ remote-endpoint = <&hdmi_out_con>; ++ }; ++ }; ++ }; ++ + leds { + compatible = "gpio-leds"; + +@@ -41,6 +53,40 @@ + }; + }; + ++&de { ++ status = "okay"; ++}; ++ ++&ehci0 { ++ status = "okay"; ++}; ++ ++&emac { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&ext_rgmii_pins>; ++ phy-mode = "rgmii"; ++ phy-handle = <&ext_rgmii_phy>; ++ phy-supply = <®_aldo2>; ++ status = "okay"; ++}; ++ ++&hdmi { ++ status = "okay"; ++}; ++ ++&hdmi_out { ++ hdmi_out_con: endpoint { ++ remote-endpoint = <&hdmi_con_in>; ++ }; ++}; ++ ++&mdio { ++ ext_rgmii_phy: ethernet-phy@1 { ++ compatible = "ethernet-phy-ieee802.3-c22"; ++ reg = <1>; ++ }; ++}; ++ + &mmc0 { + vmmc-supply = <®_cldo1>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; +@@ -57,6 +103,15 @@ + status = "okay"; + }; + ++&ohci0 { ++ status = "okay"; ++}; ++ ++&pio { ++ vcc-pd-supply = <®_cldo1>; ++ vcc-pg-supply = <®_aldo1>; ++}; ++ + &r_i2c { + status = "okay"; + +@@ -177,8 +232,29 @@ + }; + }; + ++&r_pio { ++ /* ++ * PL0 and PL1 are used for PMIC I2C ++ * don't enable the pl-supply else ++ * it will fail at boot ++ * ++ * vcc-pl-supply = <®_aldo1>; ++ */ ++ vcc-pm-supply = <®_aldo1>; ++}; ++ + &uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; + status = "okay"; + }; ++ ++&usb2otg { ++ dr_mode = "host"; ++ status = "okay"; ++}; ++ ++&usb2phy { ++ usb0_vbus-supply = <®_vcc5v>; ++ status = "okay"; ++}; +-- +2.20.1 +