Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4095211ybl; Tue, 20 Aug 2019 06:59:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqww1XHXuL+KK1ZQECi8scESpsOJIPb5xwW30KDCwrfEz7pCBOQsbbdTzA4MEFSOIztkSEbP X-Received: by 2002:a63:6f41:: with SMTP id k62mr24986217pgc.32.1566309578872; Tue, 20 Aug 2019 06:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566309578; cv=none; d=google.com; s=arc-20160816; b=KEXGKmX11i+BAUWO4eOAP/QbN4jIoTpbcMQfMvmHQoCYZ+cctZzgZPeeqUn1S/wy9r Rl2wuNwgpkdQr6qWqEJyZowMiHqM+gYNk8whmJJn6Lja6XXxRt8ynnj+x1bqbljbQVH5 jzTz8+ccvoANvS/R1u7ngdUwBCtyGORITCfHagnwAVuaLw2Ke7Ng2Lb3Rsc3k5DD2riB pXYLjq0RA3Hy78wh9w8zUijsEsTBFq5HMTOHymITdV/MtyyeWzaJJmaL3V2QEEHBgRPD dFnY9neOizRlc658I1dSDkGZNnR+U6Gsfj5qLocPI/tcDSQkP1/aUYHVVQEHoLqo+ufj 1Upw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=p0eWrEPgaBNiU1ULfuNufq1bzQEkFV9g/pjIL18QQIs=; b=QVAfCsFqPGWx84aml5bxnVyS04zGKr12xLQMzydA+pmhu1gGHDipTjgRaP4vOaCF/k mhteFYEpUmBxKdsoB3v/WrOAPwtatnV8XfUdBNcNGWP52gYW636iOjsEjdCwms5AgINx n8FjaL0snU1mPTwdBHsQU0Hpksfm7XnamjOfaymh9smdPV6aFesQ9W/N0MJ+FtsNQJnk A5XAQwKouDdQG1AWkmqrLfcP+N40zvTZ1lItpcCntpw9WHCMphYoqxuRcUhehu6ZmUk6 5UE5lTb4gCH+kRFU5HfqDsJeaFmrB05538KzN+HZ6bwlGJFeNctqxKIS2kapV2aW3O++ XAQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kuf5Os7m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v31si12460225plg.339.2019.08.20.06.59.23; Tue, 20 Aug 2019 06:59:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kuf5Os7m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730023AbfHTN6f (ORCPT + 99 others); Tue, 20 Aug 2019 09:58:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:50424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728283AbfHTN6f (ORCPT ); Tue, 20 Aug 2019 09:58:35 -0400 Received: from localhost (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3E57822CF7; Tue, 20 Aug 2019 13:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566309513; bh=pMvIz+mq6VWpne36UBpOsUaqU/dm/wPGQJ9oTJGXrvw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kuf5Os7msq5KuRaNHndumFwEM3gT2H3v3hnaBCW8oWAhOHF9glFEgLVilkCRmLhpy GMX37tmiMXQCNAjnMv/Ot8jrvZqDuykotUUA8HNbHdhH0N1duoHS4X19Y64ZAf5kbb 5BZP3K/gQ1cKpY+abqeVJDvug8mfyothe1J3XlwQ= Date: Tue, 20 Aug 2019 15:58:31 +0200 From: Maxime Ripard To: Corentin Labbe Cc: mark.rutland@arm.com, robh+dt@kernel.org, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board Message-ID: <20190820135831.hrvrgqhrvynntkbl@flea> References: <20190808084253.10573-1-clabbe.montjoie@gmail.com> <20190812094000.ebdmhyxx7xzbevef@flea> <20190814131741.GB24324@Red> <20190814133322.dawzv3ityakxtqs4@flea> <20190816093513.GA25042@Red> <20190816113650.hstbi5ntstx3wh4a@flea> <20190816115750.GA24545@Red> <20190816135206.pnf3iperzyhcbg4h@flea> <20190816140016.GA30445@Red> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iybud4mep663ygu6" Content-Disposition: inline In-Reply-To: <20190816140016.GA30445@Red> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --iybud4mep663ygu6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 16, 2019 at 04:00:16PM +0200, Corentin Labbe wrote: > On Fri, Aug 16, 2019 at 03:52:06PM +0200, Maxime Ripard wrote: > > On Fri, Aug 16, 2019 at 01:57:50PM +0200, Corentin Labbe wrote: > > > On Fri, Aug 16, 2019 at 01:36:50PM +0200, Maxime Ripard wrote: > > > > On Fri, Aug 16, 2019 at 11:35:13AM +0200, Corentin Labbe wrote: > > > > > On Wed, Aug 14, 2019 at 03:33:22PM +0200, Maxime Ripard wrote: > > > > > > On Wed, Aug 14, 2019 at 03:17:41PM +0200, Corentin Labbe wrote: > > > > > > > On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard wrote: > > > > > > > > On Thu, Aug 08, 2019 at 10:42:53AM +0200, Corentin Labbe wrote: > > > > > > > > > This patch adds the evaluation variant of the model A of the PineH64. > > > > > > > > > The model A has the same size of the pine64 and has a PCIE slot. > > > > > > > > > > > > > > > > > > The only devicetree difference with current pineH64, is the PHY > > > > > > > > > regulator. > > > > > > > > > > > > > > > > > > Signed-off-by: Corentin Labbe > > > > > > > > > --- > > > > > > > > > arch/arm64/boot/dts/allwinner/Makefile | 1 + > > > > > > > > > .../sun50i-h6-pine-h64-modelA-eval.dts | 26 +++++++++++++++++++ > > > > > > > > > 2 files changed, 27 insertions(+) > > > > > > > > > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-modelA-eval.dts > > > > > > > > > > > > > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile > > > > > > > > > index f6db0611cb85..9a02166cbf72 100644 > > > > > > > > > --- a/arch/arm64/boot/dts/allwinner/Makefile > > > > > > > > > +++ b/arch/arm64/boot/dts/allwinner/Makefile > > > > > > > > > @@ -25,3 +25,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb > > > > > > > > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb > > > > > > > > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb > > > > > > > > > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb > > > > > > > > > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-modelA-eval.dtb > > > > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-modelA-eval.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-modelA-eval.dts > > > > > > > > > new file mode 100644 > > > > > > > > > index 000000000000..d8ff02747efe > > > > > > > > > --- /dev/null > > > > > > > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-modelA-eval.dts > > > > > > > > > @@ -0,0 +1,26 @@ > > > > > > > > > +// SPDX-License-Identifier: (GPL-2.0+ or MIT) > > > > > > > > > +/* > > > > > > > > > + * Copyright (C) 2019 Corentin Labbe > > > > > > > > > + */ > > > > > > > > > + > > > > > > > > > +#include "sun50i-h6-pine-h64.dts" > > > > > > > > > + > > > > > > > > > +/ { > > > > > > > > > + model = "Pine H64 model A evaluation board"; > > > > > > > > > + compatible = "pine64,pine-h64-modelA-eval", "allwinner,sun50i-h6"; > > > > > > > > > + > > > > > > > > > + reg_gmac_3v3: gmac-3v3 { > > > > > > > > > + compatible = "regulator-fixed"; > > > > > > > > > + regulator-name = "vcc-gmac-3v3"; > > > > > > > > > + regulator-min-microvolt = <3300000>; > > > > > > > > > + regulator-max-microvolt = <3300000>; > > > > > > > > > + startup-delay-us = <100000>; > > > > > > > > > + gpio = <&pio 2 16 GPIO_ACTIVE_HIGH>; > > > > > > > > > + enable-active-high; > > > > > > > > > + }; > > > > > > > > > + > > > > > > > > > +}; > > > > > > > > > + > > > > > > > > > +&emac { > > > > > > > > > + phy-supply = <®_gmac_3v3>; > > > > > > > > > +}; > > > > > > > > > > > > > > > > I might be missing some context here, but I'm pretty sure that the > > > > > > > > initial intent of the pine h64 DTS was to support the model A all > > > > > > > > along. > > > > > > > > > > > > > > > > > > > > > > The regulator changed between modelA and B. > > > > > > > See this old patchset (supporting modelA) https://patchwork.kernel.org/patch/10539149/ for example. > > > > > > > > > > > > I'm not sure what your point is, but mine is that everything about the > > > > > > model A should be in sun50i-h6-pine-h64.dts. > > > > > > > > > > > > > > > > model A and B are different enough for distinct dtb, (see sub-thread > > > > > on HDMI difference for an other difference than PHY regulator) > > > > > > > > I don't mind having separate DTBs for model A and model B. > > > > > > > > > And clearly, the current dtb is for model B. > > > > > > > > That DTS was added almost a year before the model B was announced, and > > > > no commit to that file mention the model B, so it's definitely not > > > > clear. > > > > > > Normal it was added for model A (without any ethernet/HDMI support, > > > so nothing distinct from model B), and the modelB ethernet/HDMI > > > support cames after. > > > > Changing the board a DT is meant to halfway through the development is > > definitely not ok. > > > > > > > So do you mean that we need to create a new dtb for model B ? (and > > > > > hack the current back to model A ?) > > > > > > > > I'd prefer not to hack anything, but yes > > > > > > > > > > Since model A is not public (only evaluations boards exists), the > > > probability of a production model A is low and the current dtb is > > > perfect for model B , could you reconsider this ? > > > > I mean, you could buy it, so it's definitely public. > > Where ? official pineh64 site speaks only of modelB. It's not available anymore, but it used to be. > > > > Model A also had HDMI, and it doesn't look like there's anything > > particularly specific with that board. > > A subthread just say the opposite, modelA need something more for HDMI > https://lkml.org/lkml/2019/8/12/394 Right, but that's not in the DT at the moment. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --iybud4mep663ygu6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXVv8hwAKCRDj7w1vZxhR xUQVAQDpjE6pfwfq1hm5qCOte+Z0VwXncT+kH4FI/s3xOZN0sgD9HEAnSZc8ze3K abYpHqQPigZzROvWYaABjpSQ+WUcqgE= =qMN/ -----END PGP SIGNATURE----- --iybud4mep663ygu6--