Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1396219rdb; Sat, 3 Feb 2024 04:56:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGasrZR2inhWYH/qWuw+eGx+CMGiIzZe3y0SLQT2m4m9C+AHh9Z0lAcpcg3gKgOyRu7taPT X-Received: by 2002:a17:906:d14b:b0:a36:7189:af7f with SMTP id br11-20020a170906d14b00b00a367189af7fmr8010077ejb.50.1706964994337; Sat, 03 Feb 2024 04:56:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706964994; cv=pass; d=google.com; s=arc-20160816; b=yBz2yMXWnTnLLt2CikATvRIPeQIA0b1NDarnAcII6fVaWw3YBKvqlf7CiXOcXc7dw1 ah+omWM60HChXEtsI2fXMgpdsUU4efjaxeq7ROD+rsVUhdQUqW38Ip4qZet7jjAwnHRe t5M/sqONR/U50MacxSm2zEnAfXbAZRpbpsVeToxZnxrnapKWxRyuNcv5tqnKEOu5gQng MuaIH3zSDOWFvMAmoOqkONn1sqRoxZOZPGPeYSNbStn87WDbvdSBzVmOtcphl7ye3WEx X2ylM7AJPZZ5HF8U0y9rZF9lbKWPmOq9II0dQHE01JNDw0kyI0ggwwW/HgJ54lk7Zll6 NQ4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GTvnxRGc8Tfs8zYNkhPTYoaS4PtmZLpXdRuzrt4s4y4=; fh=ZasI6Jcq+l1BBEBuZhDOhnb213/DQSnDxTjqAekVGpc=; b=S9MczxaiHGH7u6wGmJ3MYUPkjTS2eDE5jEu9Pbg0NwCxplVWI9yA39LjlHdYafxKnc q9cplYN0aDLWVVoabnSuAYve1/2ymdvZSp0GOuK2AnFESXhh7mffi1YHXzgXM4MtLnTA 6fXWTjWyYnu0G0nlJ0IOUIKaZZheJ3TAViQO7dpIHhaAuTy7ZQYf1cJbECoag15DUIBG lljiVZuZPDS2tyHGhYy9dsFW3O4zUC4uqg/PwarxJ8lhfOYDYJjL+uWfLorW8vju/qaa RlUrGGuoqcE6EK+bABDBYV/82WTvLvOjUBq0vhxyvKo7d8BEKajF3+8ONZae+eytSOty Qppw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WRQov7XJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51087-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUbPG7BbJMz60vPThmpR2UI6FOJ8uK+ybofqYuL1l2CzV+lKGYZhP+tPtQm/nvx092IO/CvZGJooRK5BUXoyoHDcQZUgcY3YHgT1hsl1Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gz2-20020a170906f2c200b00a37150c25adsi1453773ejb.487.2024.02.03.04.56.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 04:56:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51087-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WRQov7XJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51087-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51087-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 811301F2A8D3 for ; Sat, 3 Feb 2024 12:50:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 029342BAEF; Sat, 3 Feb 2024 12:49:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WRQov7XJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 129AC1AAD7; Sat, 3 Feb 2024 12:49:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706964581; cv=none; b=Us9n6GOTFWiUsWDxbAPS9hpS+MACJrXwDp+BvhqQEr6mS22YrW4VpvgJf5LGk5tx6E98k2XYI614ORA9zdVEaNg/F9ozp3LJxy89I15yBEDl2wDhgehfcI1KqsmauufLszG29a0oyxGIo0pRmysEnxnlpDOLfXKm+LCemqt4yjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706964581; c=relaxed/simple; bh=6kjbl1g7BDMcRDmouRbEqBe7/mwlwpaki1999XL76Ro=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JevQEGyQ8yTlWUvNw1Qw+OC1lmgJXglSST+SgWJFoC8zxEFHLbjWj5veTZ/f/g/hGdgtq8F+kLc1AT1dmNezTq/zfRYvwbNjh+LL89L7ij5j2DcZCbuzAjdPfXcANxZtXu1pa0oBHiZRYyaFdJz5kQ82G4GF1ihb0QdR+5nrEkw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WRQov7XJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A4C6C433F1; Sat, 3 Feb 2024 12:49:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706964580; bh=6kjbl1g7BDMcRDmouRbEqBe7/mwlwpaki1999XL76Ro=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WRQov7XJJaoO1pTdZYIANiPOhqu5OfpbYQjaxkhAssDFUdcEjK//Ayr0Zd3hgYElJ E4ran6/wk6VBGQnJZ58/uxbecM/YNLTY4daybqrZSKEoc0qC4rO0i0Voo5lQLwv9ro AGuCeNSOeXXIvVekI9F5PlxO+C960yMlWjx0syW6xnugsNM4rQsXpx/lwg6yZv3ard VA2n4uJAM3k0BM8LR/MG6baw5UBjdokk74RUVqot5cUL3pjpK6vqJQ4Sh1i+m9yL9n AuOGSF5lYGlt2hOeQEQ7k8FPcw11zKPk8U49UEyDpZuW8Sy+o9iuKDWskJl4Cms/Fh OnSQY66IPnyuQ== Date: Sat, 3 Feb 2024 20:36:42 +0800 From: Jisheng Zhang To: Jernej =?utf-8?Q?=C5=A0krabec?= Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Samuel Holland , Andre Przywara , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: dts: allwinner: h616: Add Sipeed Longan SoM 3H and Pi 3H board support Message-ID: References: <20231228145647.1470-1-jszhang@kernel.org> <20231228145647.1470-3-jszhang@kernel.org> <2589997.Lt9SDvczpP@jernej-laptop> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2589997.Lt9SDvczpP@jernej-laptop> On Tue, Jan 09, 2024 at 09:37:03PM +0100, Jernej Škrabec wrote: > Hi Jisheng, Hi Jernej, > > Andre gave you thorough review already, so just one additional comment > below. > > Dne četrtek, 28. december 2023 ob 15:56:47 CET je Jisheng Zhang napisal(a): > > The Sipeed Longan SoM 3H is a system on module based on the Allwinner > > H618 SoC. The SoM features: > > > > - Four ARM Cortex-A53 cores, Mali-G31 MP2 GPU > > - 2/4 GiB LPDDR4 DRAM SoMs > > - AXP313a PMIC > > - eMMC > > > > The Sipeed Longan PI 3H is a development board based on the above SoM. > > The board features: > > - Longan SoM 3H > > - Raspberry-Pi-1 compatible GPIO header > > - 2 USB 2.0 host port > > - 1 USB 2.0 type C port (power supply + OTG) > > - MicroSD slot > > - 1Gbps Ethernet port (via RTL8211 PHY) > > - HDMI port > > - WiFi/BT chip > > > > Add the devicetree file describing the currently supported features, > > namely PMIC, LEDs, UART, SD card, eMMC, USB and Ethernet. > > > > Signed-off-by: Jisheng Zhang > > --- > > arch/arm64/boot/dts/allwinner/Makefile | 1 + > > .../sun50i-h618-longan-module-3h.dtsi | 82 +++++++++++ > > .../dts/allwinner/sun50i-h618-longanpi-3h.dts | 133 ++++++++++++++++++ > > 3 files changed, 216 insertions(+) > > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-longan-module-3h.dtsi > > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts > > > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile > > index 3aca6787a167..00db504a9b8c 100644 > > --- a/arch/arm64/boot/dts/allwinner/Makefile > > +++ b/arch/arm64/boot/dts/allwinner/Makefile > > @@ -42,4 +42,5 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-cb1-manta.dtb > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-pi.dtb > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb > > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-longanpi-3h.dtb > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-longan-module-3h.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h618-longan-module-3h.dtsi > > new file mode 100644 > > index 000000000000..88a7d287b73c > > --- /dev/null > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-longan-module-3h.dtsi > > @@ -0,0 +1,82 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Copyright (C) Jisheng Zhang > > + */ > > + > > +/dts-v1/; > > + > > +#include "sun50i-h616.dtsi" > > + > > +/ { > > + model = "Sipeed Longan Module 3H"; > > + compatible = "sipeed,longan-module-3h", "allwinner,sun50i-h618"; > > +}; > > + > > +&mmc2 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&mmc2_pins>; > > + vmmc-supply = <®_dldo1>; > > + vqmmc-supply = <®_aldo1>; > > + bus-width = <8>; > > + non-removable; > > + cap-mmc-hw-reset; > > + mmc-ddr-1_8v; > > I think above is superfluous if hs200 is also defined. I read the mmc code again, IMHO, mmc-ddr-1_8v and mmc-hs200-1_8v are for different caps, the former is for MMC_CAP_1_8V_DDR and the later is for MMC_CAP2_HS200_1_8V_SDR, I must admit that mmc-hs200-1_8v does imply mmc-ddr-1_8v in normal host controllers but they are different, and I found other dts files also contain both, so I kept this as is in v2. Thanks > > > + mmc-hs200-1_8v; > > + status = "okay"; > > +}; > > +