head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.56 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.54 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.52 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.50 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.48 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.46 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.44 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.42 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.40 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.38 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.36 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.34 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.32 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.30 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.28 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.26 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.24 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.22 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.20 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.18 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.16 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.14 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.12 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.10 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.6 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.8 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.4 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.2 pkgsrc-2019Q2-base:1.1; locks; strict; comment @# @; 1.1 date 2019.06.05.05.43.16; author thorpej; state Exp; branches; next ; commitid qPsjNmzAAM5mCXpB; desc @@ 1.1 log @Add u-boot for the Banana Pi BPI-M2 Zero and BPI-P2 Zero. @ text @$NetBSD$ 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"; +}; @