Created
July 16, 2019 11:34
-
-
Save falsovsky/d79ec2e69581b45a2f36ee7301a9d708 to your computer and use it in GitHub Desktop.
h6 orange pi one plus enable ethernet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts | |
index 12e17567ab56..4897c3fab71c 100644 | |
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts | |
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts | |
@@ -1,6 +1,7 @@ | |
// SPDX-License-Identifier: (GPL-2.0+ or MIT) | |
/* | |
* Copyright (C) 2018 Amarula Solutions | |
+ * Copyright (C) 2018 Armbian | |
* Author: Jagan Teki <[email protected]> | |
*/ | |
@@ -9,4 +10,37 @@ | |
/ { | |
model = "OrangePi One Plus"; | |
compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6"; | |
+ | |
+ aliases { | |
+ ethernet0 = &emac; | |
+ }; | |
+ | |
+ reg_gmac_3v3: gmac-3v3 { | |
+ compatible = "regulator-fixed"; | |
+ regulator-name = "vcc-gmac-3v3"; | |
+ regulator-min-microvolt = <3300000>; | |
+ regulator-max-microvolt = <3300000>; | |
+ startup-delay-us = <100000>; | |
+ enable-active-high; | |
+ gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ | |
+ vin-supply = <®_aldo2>; | |
+ }; | |
+}; | |
+ | |
+&emac { | |
+ pinctrl-names = "default"; | |
+ pinctrl-0 = <&ext_rgmii_pins>; | |
+ phy-mode = "rgmii"; | |
+ phy-handle = <&ext_rgmii_phy>; | |
+ phy-supply = <®_gmac_3v3>; | |
+ allwinner,rx-delay-ps = <200>; | |
+ allwinner,tx-delay-ps = <200>; | |
+ status = "okay"; | |
+}; | |
+ | |
+&mdio { | |
+ ext_rgmii_phy: ethernet-phy@1 { | |
+ compatible = "ethernet-phy-ieee802.3-c22"; | |
+ reg = <1>; | |
+ }; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment