Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C9B7C433EF for ; Tue, 14 Dec 2021 21:00:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E11DF82C88; Tue, 14 Dec 2021 22:00:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=mailbox.org header.i=@mailbox.org header.b="HoJGrpa7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6B5CE8203C; Tue, 14 Dec 2021 21:59:56 +0100 (CET) Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050::465:202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 27291810F3 for ; Tue, 14 Dec 2021 21:59:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dwagenk@mailbox.org Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4JD9jz5JW7zQjgk; Tue, 14 Dec 2021 21:59:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1639515590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oWSh8EQy8PzJBcNF8zaE+uwwUYsxImv7p2QaisBaCtc=; b=HoJGrpa7HiFuHk3VjI0P9OLsJptuFGASinCBWuyY/EFuK1IkNw9A+Lb4k/0s+TGK0f5BQ7 WjrUhFab/eAOAJ0oDKuHh/J2cb9NnSzXkeUdRAbtVck59okGh/TczQc6GFMC5doh+xA0YP Pjrk6UCD9k8/ObxPsXWhtEw4YU9EAmEMJIpZGukZxXfbkCdBMLM/2To4euNdb5LZdoEstK b/PgL3+4/X9EykCNg/77z+Ou1MQKFEymvk+Yb/UGyMAUEaoTVJ7KpctW646IaIpxnxFzsZ Rp7TljaG6S/C+TTOtLt4Q4WpfvXjcuuUq6+pI/DDSM01Ar3GwKdGL2/tun1tTA== From: Daniel Wagenknecht To: u-boot@lists.denx.de Cc: Daniel Wagenknecht , Andre Przywara , Jagan Teki , Icenowy Zheng Subject: [PATCH 1/2] sunxi: dts: add device-tree for pine H64 model B Date: Tue, 14 Dec 2021 21:59:31 +0100 Message-Id: <20211214205932.57429-2-dwagenk@mailbox.org> In-Reply-To: <20211214205932.57429-1-dwagenk@mailbox.org> References: <20211214205932.57429-1-dwagenk@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Add the device-tree for pine H64 model B from 5.15 mainline linux. The differences between the pine H64 boards model A and model B are irrelevant inside u-boot, but the device-tree name is relevant as default for selecting the correct device-tree when booting linux. Signed-off-by: Daniel Wagenknecht --- arch/arm/dts/Makefile | 1 + arch/arm/dts/sun50i-h6-pine-h64-model-b.dts | 51 +++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 arch/arm/dts/sun50i-h6-pine-h64-model-b.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 7f622fedbd..a9618d80ca 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -658,6 +658,7 @@ dtb-$(CONFIG_MACH_SUN50I_H6) += \ sun50i-h6-orangepi-lite2.dtb \ sun50i-h6-orangepi-one-plus.dtb \ sun50i-h6-pine-h64.dtb \ + sun50i-h6-pine-h64-model-b.dtb \ sun50i-h6-tanix-tx6.dtb dtb-$(CONFIG_MACH_SUN50I_H616) += \ sun50i-h616-orangepi-zero2.dtb diff --git a/arch/arm/dts/sun50i-h6-pine-h64-model-b.dts b/arch/arm/dts/sun50i-h6-pine-h64-model-b.dts new file mode 100644 index 0000000000..686f58e770 --- /dev/null +++ b/arch/arm/dts/sun50i-h6-pine-h64-model-b.dts @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2019 Corentin LABBE + */ + +#include "sun50i-h6-pine-h64.dts" + +/ { + model = "Pine H64 model B"; + compatible = "pine64,pine-h64-model-b", "allwinner,sun50i-h6"; + + /delete-node/ reg_gmac_3v3; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */ + post-power-on-delay-ms = <200>; + }; +}; + +&hdmi_connector { + /delete-property/ ddc-en-gpios; +}; + +&emac { + phy-supply = <®_aldo2>; +}; + +&mmc1 { + vmmc-supply = <®_cldo3>; + vqmmc-supply = <®_aldo1>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; + status = "okay"; + + bluetooth { + compatible = "realtek,rtl8723bs-bt"; + device-wake-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */ + host-wake-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */ + enable-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */ + max-speed = <1500000>; + }; +}; -- 2.31.1