From 8b74db943e6dc5591c3f81431b82e3305590a40a Mon Sep 17 00:00:00 2001 From: Marcus Cooper Date: Sun, 9 Jun 2019 11:38:44 +0200 Subject: [PATCH] Allwinner: Update uboot changes for Orange Pi 1+ --- ...ate-Orange-Pi-One-Plus-for-LibreELEC.patch | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 projects/Allwinner/patches/u-boot/0002-Update-Orange-Pi-One-Plus-for-LibreELEC.patch diff --git a/projects/Allwinner/patches/u-boot/0002-Update-Orange-Pi-One-Plus-for-LibreELEC.patch b/projects/Allwinner/patches/u-boot/0002-Update-Orange-Pi-One-Plus-for-LibreELEC.patch new file mode 100644 index 0000000000..396da014fb --- /dev/null +++ b/projects/Allwinner/patches/u-boot/0002-Update-Orange-Pi-One-Plus-for-LibreELEC.patch @@ -0,0 +1,82 @@ +diff --git a/arch/arm/dts/sun50i-h6-orangepi-one-plus.dts b/arch/arm/dts/sun50i-h6-orangepi-one-plus.dts +index 12e17567ab..4c3447417f 100644 +--- a/arch/arm/dts/sun50i-h6-orangepi-one-plus.dts ++++ b/arch/arm/dts/sun50i-h6-orangepi-one-plus.dts +@@ -9,4 +9,77 @@ + / { + model = "OrangePi One Plus"; + compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6"; ++ ++ aliases { ++ ethernet0 = &emac; ++ }; ++ ++ connector { ++ compatible = "hdmi-connector"; ++ type = "a"; ++ ddc-supply = <®_ddc>; ++ ++ port { ++ hdmi_con_in: endpoint { ++ remote-endpoint = <&hdmi_out_con>; ++ }; ++ }; ++ }; ++ ++ 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_gmac_2v5: gmac-2v5 { ++ compatible = "regulator-fixed"; ++ regulator-name = "gmac-2v5"; ++ regulator-min-microvolt = <2500000>; ++ regulator-max-microvolt = <2500000>; ++ startup-delay-us = <100000>; ++ enable-active-high; ++ gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ ++ ++ /* The real parent of gmac-2v5 is reg_vcc5v, but we need to ++ * enable two regulators to power the phy. This is one way ++ * to achieve that. ++ */ ++ vin-supply = <®_aldo2>; /* GMAC-3V3 */ ++ }; ++}; ++ ++&de { ++ status = "okay"; ++}; ++ ++&emac { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&ext_rgmii_pins>; ++ phy-mode = "rgmii"; ++ phy-handle = <&ext_rgmii_phy>; ++ phy-supply = <®_gmac_2v5>; ++ allwinner,rx-delay-ps = <1500>; ++ allwinner,tx-delay-ps = <700>; ++ 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>; ++ }; + };