pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   thorpej
Date:           Wed Jun  5 05:43:16 UTC 2019

Modified Files:
        pkgsrc/sysutils: Makefile
        pkgsrc/sysutils/u-boot: Makefile distinfo
Added Files:
        pkgsrc/sysutils/u-boot-bananapi-m2-zero: DESCR Makefile PLIST
        pkgsrc/sysutils/u-boot-bananapi-m2-zero/files: installboot.plist
        pkgsrc/sysutils/u-boot-bananapi-p2-zero: DESCR Makefile PLIST
        pkgsrc/sysutils/u-boot-bananapi-p2-zero/files: installboot.plist
        pkgsrc/sysutils/u-boot/patches: patch-arch_arm_dts_Makefile
            patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts
            patch-arch_arm_dts_sun8i-h2-plus-bananapi-p2-zero.dts
            patch-configs_bananapi_m2_zero_defconfig
            patch-configs_bananapi_p2_zero_defconfig

Log Message:
Add u-boot for the Banana Pi BPI-M2 Zero and BPI-P2 Zero.


To generate a diff of this commit:
cvs rdiff -u -r1.815 -r1.816 pkgsrc/sysutils/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/sysutils/u-boot/Makefile
cvs rdiff -u -r1.22 -r1.23 pkgsrc/sysutils/u-boot/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/u-boot-bananapi-m2-zero/DESCR \
    pkgsrc/sysutils/u-boot-bananapi-m2-zero/Makefile \
    pkgsrc/sysutils/u-boot-bananapi-m2-zero/PLIST
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/u-boot-bananapi-m2-zero/files/installboot.plist
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/u-boot-bananapi-p2-zero/DESCR \
    pkgsrc/sysutils/u-boot-bananapi-p2-zero/Makefile \
    pkgsrc/sysutils/u-boot-bananapi-p2-zero/PLIST
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/u-boot-bananapi-p2-zero/files/installboot.plist
cvs rdiff -u -r0 -r1.5 \
    pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_Makefile
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts \
    pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-p2-zero.dts \
    pkgsrc/sysutils/u-boot/patches/patch-configs_bananapi_m2_zero_defconfig \
    pkgsrc/sysutils/u-boot/patches/patch-configs_bananapi_p2_zero_defconfig

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.815 pkgsrc/sysutils/Makefile:1.816
--- pkgsrc/sysutils/Makefile:1.815      Mon Jun  3 09:53:51 2019
+++ pkgsrc/sysutils/Makefile    Wed Jun  5 05:43:15 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.815 2019/06/03 09:53:51 prlw1 Exp $
+# $NetBSD: Makefile,v 1.816 2019/06/05 05:43:15 thorpej Exp $
 #
 
 COMMENT=       System utilities
@@ -619,7 +619,9 @@ SUBDIR+=    tsm8
 #SUBDIR+=      u-boot                  # only contains Makefile fragments
 SUBDIR+=       u-boot-a10-olinuxino-lime
 SUBDIR+=       u-boot-bananapi
+SUBDIR+=       u-boot-bananapi-m2-zero
 SUBDIR+=       u-boot-bananapi-m3
+SUBDIR+=       u-boot-bananapi-p2-zero
 SUBDIR+=       u-boot-bananapi-r2
 SUBDIR+=       u-boot-bananapro
 SUBDIR+=       u-boot-beagleboard

Index: pkgsrc/sysutils/u-boot/Makefile
diff -u pkgsrc/sysutils/u-boot/Makefile:1.14 pkgsrc/sysutils/u-boot/Makefile:1.15
--- pkgsrc/sysutils/u-boot/Makefile:1.14        Wed May 29 03:24:02 2019
+++ pkgsrc/sysutils/u-boot/Makefile     Wed Jun  5 05:43:15 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2019/05/29 03:24:02 thorpej Exp $
+# $NetBSD: Makefile,v 1.15 2019/06/05 05:43:15 thorpej Exp $
 #
 
 .include "../../sysutils/u-boot/u-boot-version.mk"
@@ -18,7 +18,9 @@ META_PACKAGE= yes
 .include "../../mk/bsd.prefs.mk"
 
 DEPENDS+=      u-boot-a10-olinuxino-lime-[0-9]*:../../sysutils/u-boot-a10-olinuxino-lime
+DEPENDS+=      u-boot-bananapi-m2-zero-[0-9]*:../../sysutils/u-boot-bananapi-m3
 DEPENDS+=      u-boot-bananapi-m3-[0-9]*:../../sysutils/u-boot-bananapi-m3
+DEPENDS+=      u-boot-bananapi-p2-zero-[0-9]*:../../sysutils/u-boot-bananapi-m3
 DEPENDS+=      u-boot-bananapi-[0-9]*:../../sysutils/u-boot-bananapi
 DEPENDS+=      u-boot-bananapro-[0-9]*:../../sysutils/u-boot-bananapro
 DEPENDS+=      u-boot-beagleboard-[0-9]*:../../sysutils/u-boot-beagleboard

Index: pkgsrc/sysutils/u-boot/distinfo
diff -u pkgsrc/sysutils/u-boot/distinfo:1.22 pkgsrc/sysutils/u-boot/distinfo:1.23
--- pkgsrc/sysutils/u-boot/distinfo:1.22        Fri Apr 26 08:32:27 2019
+++ pkgsrc/sysutils/u-boot/distinfo     Wed Jun  5 05:43:15 2019
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2019/04/26 08:32:27 skrll Exp $
+$NetBSD: distinfo,v 1.23 2019/06/05 05:43:15 thorpej Exp $
 
 SHA1 (u-boot-2018.11.tar.bz2) = e58e86c633ad3e2613196e0c0b0a7760ae5966d6
 RMD160 (u-boot-2018.11.tar.bz2) = f63c67750951d0e2883935a5d4cc3252f51a5453
@@ -6,6 +6,11 @@ SHA512 (u-boot-2018.11.tar.bz2) = 1ea0bb
 Size (u-boot-2018.11.tar.bz2) = 13045125 bytes
 SHA1 (patch-Makefile) = 45f505041a586b75953c34c1ab6fffaa56b43601
 SHA1 (patch-arch_arm_cpu_armv8_Kconfig) = 63cbbf2e3cebd46793fc03cc8e62297f6dc01aa9
+SHA1 (patch-arch_arm_dts_Makefile) = 184fdb8b04b25c0c827823779874306ce1bc746d
+SHA1 (patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts) = aaa530a5f520eea0cb5dcece0b730e23db59eb40
+SHA1 (patch-arch_arm_dts_sun8i-h2-plus-bananapi-p2-zero.dts) = 8c78d0e0877aa9784fa209af2e16e80cb1110364
+SHA1 (patch-configs_bananapi_m2_zero_defconfig) = 5e4baef63f0e51cb8c94a1dc0c0e50ecb016807d
+SHA1 (patch-configs_bananapi_p2_zero_defconfig) = 6468b3246cbf35d10320c8a974fc06b794ae68dc
 SHA1 (patch-configs_jetson-tk1_defconfig) = e25d89b9440f9bb4486ac22fc47083ed24abdd95
 SHA1 (patch-configs_p2371-2180_defconfig) = 2a3f1ad4f9963af403c2c9f2f01b892bbe55188c
 SHA1 (patch-drivers_video_sunxi_sunxi__display.c) = 8e6a6a781cce25af5cba289fc2ca76e30b62aff6

Added files:

Index: pkgsrc/sysutils/u-boot-bananapi-m2-zero/DESCR
diff -u /dev/null pkgsrc/sysutils/u-boot-bananapi-m2-zero/DESCR:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot-bananapi-m2-zero/DESCR       Wed Jun  5 05:43:15 2019
@@ -0,0 +1,5 @@
+U-Boot is a bootloader for embedded boards based on PowerPC, ARM, MIPS and
+several other processors, which can be installed in a boot ROM and used to
+initialize and test the hardware or to download and run application code.
+
+This package provides U-Boot for the Sinovoip Banana Pi BPI-M2 Zero.
Index: pkgsrc/sysutils/u-boot-bananapi-m2-zero/Makefile
diff -u /dev/null pkgsrc/sysutils/u-boot-bananapi-m2-zero/Makefile:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot-bananapi-m2-zero/Makefile    Wed Jun  5 05:43:15 2019
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+
+UBOOT_TARGET=          bananapi-m2-zero
+UBOOT_CONFIG=          bananapi_m2_zero_defconfig
+UBOOT_BIN=             u-boot-sunxi-with-spl.bin
+
+UBOOT_INSTALLBOOT_PLIST=installboot.plist
+
+.include "../../sysutils/u-boot/u-boot-arm.mk"
Index: pkgsrc/sysutils/u-boot-bananapi-m2-zero/PLIST
diff -u /dev/null pkgsrc/sysutils/u-boot-bananapi-m2-zero/PLIST:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot-bananapi-m2-zero/PLIST       Wed Jun  5 05:43:15 2019
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+share/u-boot/bananapi-m2-zero/installboot.plist
+share/u-boot/bananapi-m2-zero/u-boot-sunxi-with-spl.bin

Index: pkgsrc/sysutils/u-boot-bananapi-m2-zero/files/installboot.plist
diff -u /dev/null pkgsrc/sysutils/u-boot-bananapi-m2-zero/files/installboot.plist:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot-bananapi-m2-zero/files/installboot.plist     Wed Jun  5 05:43:15 2019
@@ -0,0 +1,47 @@
+<!-- $NetBSD: installboot.plist,v 1.1 2019/06/05 05:43:15 thorpej Exp $ -->
+<!--
+  Copyright (c) 2019 The NetBSD Foundation, Inc.
+  All rights reserved.
+ 
+  This code is derived from software contributed to The NetBSD Foundation
+  by Jason R. Thorpe.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  POSSIBILITY OF SUCH DAMAGE.
+-->
+<plist>
+<dict>
+       <key>sinovoip,bpi-m2-zero</key>
+       <dict>
+               <key>description</key>
+               <string>Banana Pi BPI-M2-Zero</string>
+               <key>u-boot-install</key>
+               <array>
+                       <dict>
+                               <key>file-name</key>
+                               <string>u-boot-sunxi-with-spl.bin</string>
+                               <key>image-offset</key>
+                               <integer>8192</integer>
+                       </dict>
+               </array>
+       </dict>
+</dict>
+</plist>

Index: pkgsrc/sysutils/u-boot-bananapi-p2-zero/DESCR
diff -u /dev/null pkgsrc/sysutils/u-boot-bananapi-p2-zero/DESCR:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot-bananapi-p2-zero/DESCR       Wed Jun  5 05:43:15 2019
@@ -0,0 +1,5 @@
+U-Boot is a bootloader for embedded boards based on PowerPC, ARM, MIPS and
+several other processors, which can be installed in a boot ROM and used to
+initialize and test the hardware or to download and run application code.
+
+This package provides U-Boot for the Sinovoip Banana Pi BPI-P2 Zero.
Index: pkgsrc/sysutils/u-boot-bananapi-p2-zero/Makefile
diff -u /dev/null pkgsrc/sysutils/u-boot-bananapi-p2-zero/Makefile:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot-bananapi-p2-zero/Makefile    Wed Jun  5 05:43:15 2019
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+
+UBOOT_TARGET=          bananapi-p2-zero
+UBOOT_CONFIG=          bananapi_p2_zero_defconfig
+UBOOT_BIN=             u-boot-sunxi-with-spl.bin
+
+UBOOT_INSTALLBOOT_PLIST=installboot.plist
+
+.include "../../sysutils/u-boot/u-boot-arm.mk"
Index: pkgsrc/sysutils/u-boot-bananapi-p2-zero/PLIST
diff -u /dev/null pkgsrc/sysutils/u-boot-bananapi-p2-zero/PLIST:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot-bananapi-p2-zero/PLIST       Wed Jun  5 05:43:15 2019
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+share/u-boot/bananapi-p2-zero/installboot.plist
+share/u-boot/bananapi-p2-zero/u-boot-sunxi-with-spl.bin

Index: pkgsrc/sysutils/u-boot-bananapi-p2-zero/files/installboot.plist
diff -u /dev/null pkgsrc/sysutils/u-boot-bananapi-p2-zero/files/installboot.plist:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot-bananapi-p2-zero/files/installboot.plist     Wed Jun  5 05:43:15 2019
@@ -0,0 +1,47 @@
+<!-- $NetBSD: installboot.plist,v 1.1 2019/06/05 05:43:15 thorpej Exp $ -->
+<!--
+  Copyright (c) 2019 The NetBSD Foundation, Inc.
+  All rights reserved.
+ 
+  This code is derived from software contributed to The NetBSD Foundation
+  by Jason R. Thorpe.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  POSSIBILITY OF SUCH DAMAGE.
+-->
+<plist>
+<dict>
+       <key>sinovoip,bpi-p2-zero</key>
+       <dict>
+               <key>description</key>
+               <string>Banana Pi BPI-P2-Zero</string>
+               <key>u-boot-install</key>
+               <array>
+                       <dict>
+                               <key>file-name</key>
+                               <string>u-boot-sunxi-with-spl.bin</string>
+                               <key>image-offset</key>
+                               <integer>8192</integer>
+                       </dict>
+               </array>
+       </dict>
+</dict>
+</plist>

Index: pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_Makefile
diff -u /dev/null pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_Makefile:1.5
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_Makefile  Wed Jun  5 05:43:15 2019
@@ -0,0 +1,17 @@
+$NetBSD: patch-arch_arm_dts_Makefile,v 1.5 2019/06/05 05:43:15 thorpej Exp $
+
+Add device tree files for:
+- Banana Pi BPI-M2 Zero
+- Banana Pi BPI-P2 Zero
+
+--- arch/arm/dts/Makefile.orig 2019-06-02 17:45:33.522314609 -0700
++++ arch/arm/dts/Makefile      2019-06-02 17:46:19.143587602 -0700
+@@ -365,6 +365,8 @@ dtb-$(CONFIG_MACH_SUN8I_A83T) += \
+       sun8i-a83t-cubietruck-plus.dtb \
+       sun8i-a83t-tbs-a711.dts
+ dtb-$(CONFIG_MACH_SUN8I_H3) += \
++      sun8i-h2-plus-bananapi-m2-zero.dtb \
++      sun8i-h2-plus-bananapi-p2-zero.dtb \
+       sun8i-h2-plus-libretech-all-h3-cc.dtb \
+       sun8i-h2-plus-orangepi-r1.dtb \
+       sun8i-h2-plus-orangepi-zero.dtb \

Index: pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts
diff -u /dev/null pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts        Wed Jun  5 05:43:15 2019
@@ -0,0 +1,128 @@
+$NetBSD: patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+
+Add device tree for the Banana Pi BPI-M2 Zero.
+
+--- /dev/null  2019-06-01 20:20:12.000000000 +0000
++++ arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts
+@@ -0,0 +1,121 @@
++// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
++/*
++ * Copyright (C) 2017 Icenowy Zheng <icenowy%aosc.io@localhost>
++ *
++ * Based on sun8i-h3-bananapi-m2-plus.dts, which is:
++ *   Copyright (C) 2016 Chen-Yu Tsai <wens%csie.org@localhost>
++ */
++
++/dts-v1/;
++#include "sun8i-h3.dtsi"
++#include "sunxi-common-regulators.dtsi"
++
++#include <dt-bindings/gpio/gpio.h>
++#include <dt-bindings/input/input.h>
++
++/ {
++      model = "Banana Pi BPI-M2-Zero";
++      compatible = "sinovoip,bpi-m2-zero", "allwinner,sun8i-h2-plus";
++
++      aliases {
++              serial0 = &uart0;
++              serial1 = &uart1;
++      };
++
++      chosen {
++              stdout-path = "serial0:115200n8";
++      };
++
++      leds {
++              compatible = "gpio-leds";
++              pinctrl-names = "default";
++
++              pwr_led {
++                      label = "bananapi-m2-zero:red:pwr";
++                      gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
++                      default-state = "on";
++              };
++      };
++
++      gpio_keys {
++              compatible = "gpio-keys";
++              pinctrl-names = "default";
++
++              sw4 {
++                      label = "power";
++                      linux,code = <BTN_0>;
++                      gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
++              };
++      };
++
++      wifi_pwrseq: wifi_pwrseq {
++              compatible = "mmc-pwrseq-simple";
++              pinctrl-names = "default";
++              reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
++      };
++};
++
++&ehci0 {
++      status = "okay";
++};
++
++&mmc0 {
++      vmmc-supply = <&reg_vcc3v3>;
++      bus-width = <4>;
++      /*
++       * On the production batch of this board the card detect GPIO is
++       * high active (card inserted), although on the early samples it's
++       * low active.
++       */
++      cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
++      status = "okay";
++};
++
++&mmc1 {
++      vmmc-supply = <&reg_vcc3v3>;
++      vqmmc-supply = <&reg_vcc3v3>;
++      mmc-pwrseq = <&wifi_pwrseq>;
++      bus-width = <4>;
++      non-removable;
++      status = "okay";
++
++      brcmf: wifi@1 {
++              reg = <1>;
++              compatible = "brcm,bcm4329-fmac";
++              interrupt-parent = <&pio>;
++              interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */
++              interrupt-names = "host-wake";
++      };
++};
++
++&ohci0 {
++      status = "okay";
++};
++
++&uart0 {
++      pinctrl-names = "default";
++      pinctrl-0 = <&uart0_pins_a>;
++      status = "okay";
++};
++
++&uart1 {
++      pinctrl-names = "default";
++      pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
++      status = "okay";
++};
++
++&usb_otg {
++      dr_mode = "otg";
++      status = "okay";
++};
++
++&usbphy {
++      usb0_id_det-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
++      /*
++       * There're two micro-USB connectors, one is power-only and another is
++       * OTG. The Vbus of these two connectors are connected together, so
++       * the external USB device will be powered just by the power input
++       * from the power-only USB port.
++       */
++      status = "okay";
++};
Index: pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-p2-zero.dts
diff -u /dev/null pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-p2-zero.dts:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-p2-zero.dts        Wed Jun  5 05:43:16 2019
@@ -0,0 +1,94 @@
+$NetBSD: patch-arch_arm_dts_sun8i-h2-plus-bananapi-p2-zero.dts,v 1.1 2019/06/05 05:43:16 thorpej Exp $
+
+Add device tree for the Banana Pi BPI-P2 Zero.
+
+--- /dev/null  2019-06-04 22:24:46.150237483 -0700
++++ arch/arm/dts/sun8i-h2-plus-bananapi-p2-zero.dts    2019-06-04 22:26:58.470669831 -0700
+@@ -0,0 +1,87 @@
++/*-
++ * Copyright (c) 2019 Jason R. Thorpe
++ * All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ * 1. Redistributions of source code must retain the above copyright
++ *    notice, this list of conditions and the following disclaimer.
++ * 2. Redistributions in binary form must reproduce the above copyright
++ *    notice, this list of conditions and the following disclaimer in the
++ *    documentation and/or other materials provided with the distribution.
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
++ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
++ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
++ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
++ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
++ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
++ * SUCH DAMAGE.
++ */
++
++/*
++ * Device tree for Banana Pi BPI-P2 Zero.  The P2 Zero is essentially an
++ * M2 Zero with the following additions:
++ *
++ * - On-board Ethernet (with PoE capability available as an
++ *   optional module).
++ * - On-board eMMC module.
++ */
++
++#include "sun8i-h2-plus-bananapi-m2-zero.dts"
++
++/ {
++      model = "Banana Pi BPI-P2-Zero";
++      compatible = "sinovoip,bpi-p2-zero", "allwinner,sun8i-h2-plus";
++
++      aliases {
++              /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
++              ethernet0 = &emac;
++      };
++
++      leds {
++              pwr_led {
++                      label = "bananapi-p2-zero:red:pwr";
++              };
++      };
++};
++
++&emac {
++      phy-handle = <&int_mii_phy>;
++      phy-mode = "mii";
++      allwinner,leds-active-low;
++      status = "okay";
++};
++
++&mmc0 {
++      /*
++       * There seems to be a discrepancy between how the card-detect
++       * signal is wired up between the P2 Zero and the M2 Zero, on
++       * which the P2 Zero is based.
++       *
++       * The M2 Zero device tree file claims that early samples of
++       * the M2 Zero were wired active-low, but that the production
++       * of the board is wired active-high; as such, the M2 Zero
++       * device tree uses an active-high signal for card-detect.
++       *
++       * However, the P2 Zero has been observed in the wild to have
++       * an active-low card-detect signal.  I don't know if this is
++       * an early-vs-late situation like the M2 Zero, but for now we
++       * will configure the card-detect signal to active-low to match
++       * known samples of the board that exist in the wild.
++       */
++      cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;  /* PF6 */
++};
++
++&mmc2 {
++      pinctrl-names = "default";
++      pinctrl-0 = <&mmc2_8bit_pins>;
++      bus-width = <8>;
++      non-removable;
++      status = "okay";
++};
Index: pkgsrc/sysutils/u-boot/patches/patch-configs_bananapi_m2_zero_defconfig
diff -u /dev/null pkgsrc/sysutils/u-boot/patches/patch-configs_bananapi_m2_zero_defconfig:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot/patches/patch-configs_bananapi_m2_zero_defconfig     Wed Jun  5 05:43:16 2019
@@ -0,0 +1,20 @@
+$NetBSD: patch-configs_bananapi_m2_zero_defconfig,v 1.1 2019/06/05 05:43:16 thorpej Exp $
+
+Add bananapi_m2_zero_defconfig.
+
+--- /dev/null  2019-06-01 20:20:12.000000000 +0000
++++ configs/bananapi_m2_zero_defconfig
+@@ -0,0 +1,13 @@
++CONFIG_ARM=y
++CONFIG_ARCH_SUNXI=y
++CONFIG_SPL=y
++CONFIG_MACH_SUN8I_H3=y
++CONFIG_DRAM_CLK=408
++CONFIG_DRAM_ZQ=3881979
++CONFIG_DRAM_ODT_EN=y
++CONFIG_MMC0_CD_PIN=""
++# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
++# CONFIG_CMD_FLASH is not set
++# CONFIG_SPL_DOS_PARTITION is not set
++# CONFIG_SPL_EFI_PARTITION is not set
++CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-bananapi-m2-zero"
Index: pkgsrc/sysutils/u-boot/patches/patch-configs_bananapi_p2_zero_defconfig
diff -u /dev/null pkgsrc/sysutils/u-boot/patches/patch-configs_bananapi_p2_zero_defconfig:1.1
--- /dev/null   Wed Jun  5 05:43:16 2019
+++ pkgsrc/sysutils/u-boot/patches/patch-configs_bananapi_p2_zero_defconfig     Wed Jun  5 05:43:16 2019
@@ -0,0 +1,22 @@
+$NetBSD: patch-configs_bananapi_p2_zero_defconfig,v 1.1 2019/06/05 05:43:16 thorpej Exp $
+
+Add bananapi_p2_zero_defconfig.
+
+--- /dev/null  2019-06-01 20:20:12.000000000 +0000
++++ configs/bananapi_p2_zero_defconfig
+@@ -0,0 +1,15 @@
++CONFIG_ARM=y
++CONFIG_ARCH_SUNXI=y
++CONFIG_SPL=y
++CONFIG_MACH_SUN8I_H3=y
++CONFIG_DRAM_CLK=408
++CONFIG_DRAM_ZQ=3881979
++CONFIG_DRAM_ODT_EN=y
++CONFIG_MMC0_CD_PIN=""
++CONFIG_MMC_SUNXI_SLOT_EXTRA=2
++# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
++# CONFIG_CMD_FLASH is not set
++# CONFIG_SPL_DOS_PARTITION is not set
++# CONFIG_SPL_EFI_PARTITION is not set
++CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-bananapi-p2-zero"
++CONFIG_SUN8I_EMAC=y



Home | Main Index | Thread Index | Old Index