pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils Restore Ethernet support in u-boot-nanopi-neo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2add0c4a236b
branches:  trunk
changeset: 380946:2add0c4a236b
user:      jakllsch <jakllsch%pkgsrc.org@localhost>
date:      Fri May 25 20:49:52 2018 +0000

description:
Restore Ethernet support in u-boot-nanopi-neo-plus2.

diffstat:

 sysutils/u-boot-nanopi-neo-plus2/Makefile                                 |   4 +-
 sysutils/u-boot/distinfo                                                  |   3 +-
 sysutils/u-boot/patches/patch-arch_arm_dts_sun50i-h5-nanopi-neo-plus2.dts |  27 ++++++++++
 3 files changed, 32 insertions(+), 2 deletions(-)

diffs (63 lines):

diff -r 00c88e074423 -r 2add0c4a236b sysutils/u-boot-nanopi-neo-plus2/Makefile
--- a/sysutils/u-boot-nanopi-neo-plus2/Makefile Fri May 25 16:41:58 2018 +0000
+++ b/sysutils/u-boot-nanopi-neo-plus2/Makefile Fri May 25 20:49:52 2018 +0000
@@ -1,9 +1,11 @@
-# $NetBSD: Makefile,v 1.3 2018/05/25 10:45:23 jmcneill Exp $
+# $NetBSD: Makefile,v 1.4 2018/05/25 20:49:52 jakllsch Exp $
 
 UBOOT_TARGET=          nanopi-neo-plus2
 UBOOT_CONFIG=          nanopi_neo_plus2_defconfig
 UBOOT_BIN=             u-boot-sunxi-with-spl.bin
 
+PKGREVISION=           1
+
 # Switch to EL1 before booting kernel (required for 32-bit support)
 #PKG_DEFAULT_OPTIONS+= el1
 PKG_DEFAULT_OPTIONS+=  debug
diff -r 00c88e074423 -r 2add0c4a236b sysutils/u-boot/distinfo
--- a/sysutils/u-boot/distinfo  Fri May 25 16:41:58 2018 +0000
+++ b/sysutils/u-boot/distinfo  Fri May 25 20:49:52 2018 +0000
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.12 2018/05/25 10:45:22 jmcneill Exp $
+$NetBSD: distinfo,v 1.13 2018/05/25 20:49:52 jakllsch Exp $
 
 SHA1 (u-boot-2018.05.tar.bz2) = 605543501f7450ffa4e9c7fd98d2f36dbc0657b0
 RMD160 (u-boot-2018.05.tar.bz2) = b305357058feb875233c3a32f41e14548b97855d
 SHA512 (u-boot-2018.05.tar.bz2) = 218f71282c9d027b0faf210ce2d4d713779e0c61ea4a23f03d5dec0ca8836a3c26b46c5e258d583834f5b5a2f4663f98729ca4b0101a60f85457eb892f8370d2
 Size (u-boot-2018.05.tar.bz2) = 12469276 bytes
 SHA1 (patch-arch_arm_cpu_armv8_Kconfig) = 63cbbf2e3cebd46793fc03cc8e62297f6dc01aa9
+SHA1 (patch-arch_arm_dts_sun50i-h5-nanopi-neo-plus2.dts) = 5aae66cd400e7d48312fdf3399d44ec9a5c51aaf
 SHA1 (patch-drivers_video_sunxi_sunxi__display.c) = 8e6a6a781cce25af5cba289fc2ca76e30b62aff6
 SHA1 (patch-include_configs_tegra-common.h) = 4cda8f9df2c7fc2b9cd9d4139ec679a42648e4f8
 SHA1 (patch-lib_bch.c) = b1f1c7418f1004c151b9e5e06ab7047a1736ae47
diff -r 00c88e074423 -r 2add0c4a236b sysutils/u-boot/patches/patch-arch_arm_dts_sun50i-h5-nanopi-neo-plus2.dts
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot/patches/patch-arch_arm_dts_sun50i-h5-nanopi-neo-plus2.dts Fri May 25 20:49:52 2018 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-arch_arm_dts_sun50i-h5-nanopi-neo-plus2.dts,v 1.3 2018/05/25 20:49:52 jakllsch Exp $
+
+Enable use of the NanoPi Neo Plus2's onboard Ethernet.
+
+Templated from the orangepi-pc2.dts.
+
+--- arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts.orig   2018-05-07 15:32:36.000000000 +0000
++++ arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts
+@@ -104,3 +104,18 @@
+ &usbphy {
+       status = "okay";
+ };
++
++&emac {
++      pinctrl-names = "default";
++      pinctrl-0 = <&emac_rgmii_pins>;
++      phy-mode = "rgmii";
++      phy-handle = <&ext_rgmii_phy>;
++      status = "okay";
++};
++
++&external_mdio {
++      ext_rgmii_phy: ethernet-phy@7 {
++              compatible = "ethernet-phy-ieee802.3-c22";
++              reg = <7>;
++      };
++};



Home | Main Index | Thread Index | Old Index